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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

?Run flash movie during page load, then autoexit? 1

Status
Not open for further replies.

MrKovacic

IS-IT--Management
Nov 5, 2002
213
US
I am trying to make a small flash movie that runs while a page is loading, but I want the move to close once the page is loaded. Anyone know how I can do this??

Thank you!!

Mike
 
you need some way to detect that the page is loaded.

to kill the flash movie

getURL("javascript: window.opener=self; window.close();");
 
In the code, (am new to this code, I am an old BASIC guy)Would this be on the webpage, or in the flash movie control? Also, where should I put the variables? I am ok at manipulating code, but it takes me forever...

Thank you very much for the info, I didnt think anyone would be able to crack this one :) :) :)
 
if you place the code in the last frame of the flash movie then the movie window will automatically close at that point but that may not be precise enough for your needs. The page may/may not have loaded.
 
I think for that I might just put the FSCommand at the last frame. I guess if I time it right, I can get it to close. I know the FSCommand quit should work. Do you know of a way for the flash movie to detect the persentage of the page loaded and display it in the movie?

If so, I can do a

if movie% = 100
FScommand (quit)

or somthing to that effect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top