all groups > flash actionscript > october 2006 >
You're in the

flash actionscript

group:

Ending Flash Files with Actionscript



Re: Ending Flash Files with Actionscript David Stiller
10/16/2006 3:45:38 PM
flash actionscript: Captain Elgy,

[quoted text, click to view]

No worries. :) Every one of us was new at some point.

[quoted text, click to view]

What do you mean by "end a flash file"? Do you mean stop? If so, a
stop() action may be all you need -- that will stop the timeline. Do you
mean quit and close the browser window? If so, you'll be stepping outside
the realm of Flash, so you'd have to trigger JavaScript to close the window.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Ending Flash Files with Actionscript Captain Elgy
10/16/2006 7:01:14 PM
Hi there folks,

Unfortunately I'm new to flash so you'll have to forgive this question,

Q) What is the correct script to end a flash file once it reaches a specific
frame (e.g If you want to end a Flash presentation when it reaches a certain
point!?).

If anyone can help with this, it would be much appreciated!! :)
Re: Ending Flash Files with Actionscript Captain Elgy
10/16/2006 8:15:10 PM
Thanks for responding to my question,

Re: Ending Flash Files with Actionscript David Stiller
10/16/2006 11:06:58 PM
Captain Elgy,

[quoted text, click to view]

Sure thing.

[quoted text, click to view]

If by "window" you mean the browser that contains the Flash movie (that
is, the SWF), then yes, you'll have to use JavaScript. The window.close()
method does what you want. In order to trigger JavaScript from
ActionScript, take a look at the ExternalInterface class in the ActionScript
2.0 Language Reference. If your version of Flash is earlier than 8, let me
know.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Re: Ending Flash Files with Actionscript ggshow
10/17/2006 12:00:00 AM
add this line to the frame where you want your flash to exit

fscommand("quit", "");
Re: Ending Flash Files with Actionscript AnandMX
10/17/2006 12:00:00 AM
AddThis Social Bookmark Button