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!

Any Good Tutorials on Loadmovie Action? 2

Status
Not open for further replies.

Kirderf

Technical User
Oct 4, 2000
183
US
Where can I find a few good tutorials on the loadMovie action. I have a website that takes about a minute to load, and I want to break it up into sections and load each page individually. Any tips? With loadmovie I think I can load the navigation and then pop the content into the page with smaller file loads. Does that make sense?

Thanks I'd gladly pay you on Thursday
for a hamburger today!
 
It is done using simple action scripting :

ifFrameLoaded ("end_frame") {
gotoAndPlay("start")
}else{
gotoAndPlay("loop")
} Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
loads instantly for me..pretty cool site..i like the way you tweened the mask for the text..nice..load movie is easy..but in your case i don't think it is needed..but if no one has helped you by the time i get in from school..i'll help ya walk through it..back in a few hours..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
You must have a faster connection than most. The company is thinking about changing the whole site to an html site if I can't think of a way to load it quicker. It takes about 40 sec to a minute on a 33,000 connection.

I would like to have the navigation load and then call the content in using a loadmovie. (I wonder if this is even the way to go?)

What do you think?
Kirderf I'd gladly pay you on Thursday
for a hamburger today!
 
Took me about 30 seconds on a 56k dial-up connected at 45.33kbps. A bit slow to my taste, but after only a quick look, your navigation part seems to be the heaviest, so loading the actual buttons' displays afterwards may not help that much, but could be worth a try.
Each button would have to call a seperate .swf loaded on another level (it should be the same one, one movie replacing the previous), with the loadmovie action.

You could try preloading only 50 to 60% of your current movie (I would do it in terms of bytes loaded and not frames loaded), but as I said earlier, that might not work!
Only testing it will tell!

A final note...
You shoudn't be using the ifFrameLoaded action, since it's deprecated in Flash 5. Use _framesloaded or _bytesloaded!

Regards,
mywink2.gif
ldnewbie
 
Is the _bytesloaded or _framesloaded in the normal mode actions? Where do you find out about the new stuff? I just saw a tutorial that used "frameselect" as an expression and for the life of me I can't find that expression in the books. There must be a source for this stuff. Thanks for the tips. I will try to create the file calling in the .swfs and see what happens.
Thanks Again I'd gladly pay you on Thursday
for a hamburger today!
 
and this whole pre-loader thing i don't get..i thought the purpose of this thread was for loadmovie..not _frames or _bytes loaded..i think maybe he is getting confused with what he really want's..ok, add the pre-loader to the movies your loading..but a pre-loader is not going to load a movie..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
I have a preloader in the movie, that is no problem(oldnewbie was giving me tips on my programming -a better way to code now for Flash5.)

My original problem stands on how to quicken the download time. I think the solution is to break the file up into seperate movies and load each one as the user clicks the buttons. Each button would have a code which would load a .swf file into _level1. Level0 would be the navigation buttons. (what that code is I havent figured out, but I will try with trial and error) I have never used loadmovie and I was looking for a tutorial or something on it.
I will try to wing it unless someone knows a quick code for me to pop into the buttons.
Thanks I'd gladly pay you on Thursday
for a hamburger today!
 
on (press) {
loadMovieNum (" 1);
}

this will load your movie into level 1..see that was my whole thing..the thread started out loadmovie..and turned into a preloader..was confusing to me because i was thinking that your actual problem was not being addressed..

anyways that will load your movie into level one..i reccomend that you make the loaded movies the same size as the original..so, in your original movie will be your navigation..in your second movie will be your body..but have it aligned in the loaded movie where you want it to show up in the original , make sense? if not i'll walk ya through..pretty simple though..have all your movies the same size as the original..your body content movies should have there objects aligned in the loaded movie where ya want them in the original..don't worry about the background of the 2nd, 3rd, and so on movies..once loaded there background becomes transparent..so no need to fuss over that..

good luck..if ya have more questions..ask
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Carl, you're wrong on one count. Yes a preloader can preload a movie on another level... Sort of defeats the purpose of using the loadMovie action to get the main movie to show up faster, but it is possible, and may sometimes be usefull.
As I said, from what I've seen of Kirderf's site (that could change!), I believe the heaviest part of his original movie is the navigation bar, and although the loading of individual movies for each button's display, may accelerate the appearance of this navigation bar, it could also end up not showing that a significant change in speed afterall.

As for _framesloaded, Kirderf, you'll find it in the Actionscript dictionary under "F". As for getBytesLoaded you'll find it under "M": MovieClip.getBytesLoaded

Regards,

mywink2.gif
ldnewbie
 
ok old i'm sorry , i meant a getbytes loaded action will not load a movie onto a level from a button..i understand that you can pre-load movies that are loaded onto a level..that is how i feel it should be anyways..if your gona take the time to break it up so it will load faster pre-loading each swf would be what i would do..atleast something is showing to the user letting them now what's going on..but i agree with you that it may not make it any faster..i felt 2 seconds on a cable modem was sweet..you said 30 seconds on your dial up..heck what more can you ask..

just pre-load the whole movie..30 seconds on dial up isn't bad at all (my opinion). and if they switch it to html does that guarantee them it will load instantly?..i don't think so..i've seen html sites that load over a minute on cable..
logo.gif


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

Part and Inventory Search

Sponsor

Back
Top