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!

Preload 1

Status
Not open for further replies.

boatguy

Programmer
Oct 22, 2001
153
US
I am trying to preload a movie using the following script loaded into actions at frame 224;

{ifFrameLoaded (850)
'gotoAndPlay (225)'
elseif
gotoAndPlay ( 1);}

It never plays the movie, it hangs on the loading graphic. What am I doing wrong?

Thanks
 
why frome 224? shoulden't you want it one frame 1? anyway, see if this helps:

ifFrameLoaded (850){
gotoAndPlay (225)
}elseif{
gotoAndPlay (1);
}
 
Why is everybody still insisting in using a deprecated action since Flash 5?

Regards,
new.gif
 
deprecated action? how would you prepose he preload? i'm not familiar with any other way.
 
Thank you TheocraticMind.

oldnewbie, what do you suggest?
 
oldnewbie where am i wrong with that <img> tag???
 
I get this error in the output wundow when I try that


Scene=Scene 1, Layer=Layer 1, Frame=223: Line 3: ';' expected
}elseif{
 
Bubu...
Code:
[img]http://iquebec.ifrance.com/Francoisgill/new.gif[/img]
Will print the following, (as a signature in your profile):
new.gif


As for Boatguy... Just don't quite understand, what you're trying to do on your frame 224! Preload the rest of the movie before it moves on? If you already have a preloader on your main movie, those frames should already be loaded, unless you're not loading them all at the beginning.
Otherwise, you should be loading this movie on a nother level, and have it play only when it's loaded.

Regards,
new.gif
 
Newbie!!!
Why when i visit my site the cpu using is 100% and when accessing another web site made also in flash and with much content than mine the cpu is not that solicitated.My swf is 360kb .

dragos.gif
 
Then don't visit your site!

Don't know what to answer to that really!

Regards,
new.gif
 
360 kb is a big size???

How can i add an mp3 that has 3:30 min without taking forever to load the web site?

 
try this:

ifFrameLoaded (850){
gotoAndPlay (225)
}else{
gotoAndPlay (1);
}


i'm not sure why i left the if in the first time a posted the code. that dosen't account for a missing semicolen, i have no clue what that is about, but try this.
 
Bubu...
Stream it with a 10 second _soundbuftime at the start!

Regards,

new.gif
 
Can you explain me how to do this pls!
I have an idea of how it works but i don't realy know how to do it.
If is to long or you don't have time ... send me an e-mail tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top