Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

created skip intro button, now to close the window

Status
Not open for further replies.

rarenet

IS-IT--Management
Jul 17, 2001
7
CA
I have created the skip intro button for my movie. However I want the movie to stop and the window to close once the button is clicked.
How do I do this? I do not want to go to any web site. I simply want the whole movie to close up, the window to close; basically dissappear.

THanks.


mike
mike@geomedia.ca
 
Attach a getURL action to your button as well and put the following code in the top box at the bottom

javascript:window.close() Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Wow! I gotta slow down and read these posts a little better! anyway... is the movie a popup window by any chance? If so it will close fine and no further ado with the script I gave earlier, if not that script will ask you if you really want to close the window and the user would have to select yes or no.

I don't know that you would even need to stop() the movie if you just want to shut it down and get it out of site. The close feature will do both. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
what do you mean by top box? Is that in flash?
 
sorry man, I am not good with programming. Do i put this is the actionscript of my movie on the last frame, or is it in the html page where the movie is located?

THe user clicks a button and window opens and the movie plays. I would like the window to close once it has played once or if the user clicks the button.

Thanks again.
 
This will be done on the Flash side... there is a FAQ in the faq area ( faq250-704 )that will walk you thru the steps of doing this. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
fscommand ("quit");

try that..
e.gif


carlsatterwhite@endangeredgraphics.com
 
thanks tulsajeff, your link was perfect.!!
 
Virt,

So the Fscommand ("quit"); works on swf movies online? For some reason...of course I have not used the Fscommand yet...I was thinking it was for projector files like something published to a CD.

Am I way off base on that? Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Have not read the help files on that either which might be a good idea if I was ever home....(working two jobs now) Ya' Gotta Love It!
sleepyangelsBW.jpg
 
actually it does not..i just tested it..should have before i posted..wasn't sure..if it did seemed like it would be a quick fix..but nothing ever is..so disregard my assumption..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top