PDA

View Full Version : Can i create a button in a flash movie to close the movie itself?


bncl
04-23-2002, 09:37 AM
I have created a flash movie to play in flash player, rather than closing the player by clicking on the cross "x" on top right hand corner, is it possible for me to create a button inside the movie which perform the same function -- closing the movie itself? If yes, how?

Will be much appreciated if someone can tell me the answer, thank you :)

farafiro
04-23-2002, 10:08 AM
I think if u do so, u published it as *.exe
so make yr button
attach that code:
on(release){
fscommand("quit")
}

zai
04-23-2002, 10:14 AM
I hope this will help.
button actionscript:
onRelease()
{
unloadMovieNum (0);
}
remove the movie on level 0.

farafiro
04-23-2002, 10:21 AM
The guy want to close the whole movie widow not to unload it

bncl
04-23-2002, 12:58 PM
This is quick!!

Thank you Farafiro, your method works, and Zai, thank you for trying too.

Btw, Farafiro, i like the footnote comes after your signiture: "No One Can Go Back And Make A New Begining BUT Anyone Can Start From Now And Make A Happy Ending" I will remember it and tell my friends who need it. ;)

farafiro
04-23-2002, 01:59 PM
Originally posted by bncl
Btw, Farafiro, i like the footnote comes after your signiture

:D