Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : pop-up confirmation window & exit button



Greg_123
3/16/2004 9:37:39 PM
Can anyone help with the actionscript required to get a button to exit the
movie (i.e. close the movie altogether) when it is clicked? Stuck on this one!

Also, i need a "confirmation-style" window to pop-up when a user clicks the
exit button from the movie (standard yes/no type thing). is the only way to do
this with another scene? The problem was that i wanted the confirmation window
to be smaller than the background, so that the background is still partially
visible.
Can you help me with how to do this???

thanks.... greg
Laiverd.COM
3/16/2004 11:27:10 PM
For projector or for movie in browserenvironment. And do you have your own
exit-button or are you planning on a trigger by clicking the cross in the
upper right part of the window? (hope not the last, as that is not possible
AFAIK).

John
--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Greg_123
3/18/2004 7:49:25 PM
i wanted to have an exit button that when clicked exits the movie. i guess in
a way this would have asimilar function to the cross button in the corner of
the window.

also i don't really understand your reply about how to launch from a scene
from a button. The real rpoblem is how to create a scene that is smaller than
the one it is launched from so that you can still see the other scene behind
it. can you help?
Laiverd.COM
3/18/2004 9:43:59 PM
For giving any advise on how to create an exit/close button it is important
to know whetehr the swf will plat as a standalone projector file or within a
browserenvironment. As both require something different.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Laiverd.COM
3/18/2004 9:44:51 PM
Ps. As for second part of your reply > really do not understand what it is
you want.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Carl Fink
3/19/2004 2:25:38 PM
[quoted text, click to view]

To amplify what John wrote: you use getURL and JavaScript to close
a browser window, and fscommand("exit") to close a projector.

You can use _root._url to find out, by the way, if you need your movie to do
both. The first four characters of that string are "file" for projectors and
"http" for movies loaded from a web server.
Laiverd.COM
3/19/2004 4:45:01 PM
Good addition ;-)

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Greg_123
3/19/2004 9:46:35 PM
thanks for your help, thats great

the second part of the problem was a navigational problem. i have 6 scenes in
my movie that the user can navigate via buttons to each of the scenes.
However, when the user wants to leave the movie i want them to be able to click
an 'exit' button that on release launches a confirmation (are you sure you want
to leave: yes/no). However i wanted this confirmation to be almost like a
pop-up scene that is smaller than the scene it is launched from (so that the
user can still see the previous scene in the background). how would i go about
doing this? I can't get around the problem of keeping the previous scene in the
background that the new (smaller) scene is superimposed on.

thanks... greg
duuman
3/20/2004 6:47:23 AM
Carl Fink
3/30/2004 4:06:34 PM
Greg, if I understand you, you want to have a dialog box pop up
with a confirmation of the exit command.

You can do that with the MessageBox component that comes
AddThis Social Bookmark Button