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!

loadmovie with an embeded preloader

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
Guys,

I'm working on this project that just won't end. I'm loading a set of movies (swf) into and movieclip on the mainstage whenever the user asks for a specific clip. (press a button)

work great! on a fast connection and works great once each movie clip is downloaded. However on a slow connection the clip loads with the preloader, counts up to 100% and goes the the next frame of the clip, play the sound that is embeded in the clip, but doesn't show the animation?

if you select the clip again, it load right away (cause its already there)and play the animation.

you can check it out at:


let me know what you think.

each clip is 250k - 350k

so if you have a really slow connection it could a take a few sec to load.



jef
 
Jef,

I'm on a fast connection but I don't see any animation at all. Is that your problem?
 
yep,

if you click again it should display?

very strange

jef
 
Yes it showed when I clicked again. Does you preloader include an ifFrameLoaded command? Do you have a stop(); command on the movie that loads?

If you have a stop(); on the movie that loads take it out and replace it with an ifFrameLoaded command. I think that might take care of your problem.

You are loading an .swf and not an MC right?

How's that for a bunch of stuff?! LOL Wow JT that almost looked like you knew what you were doing!
 
very good I'll try that,

I am using stop on the first frame that has the counter and I'm using framesload and totalframes as the condition within the movieclip.

it'll be tomorrow before I can get to it.

I'll let ya know

thanks for the advice.
jef jef
 
this is the code I'm using:

onClipEvent (enterFrame) {
getProperty(_root.movieclipname, _currentframe);
getProperty(_root.movieclipname, _totalframes);
if (_root.movieclipname._framesLoaded == _root.movieclipname._totalframes) {
play;
}
}



on a movie clip in teh first frame of the loaded movie.

without a stop action on the first frame the movie starts to play at 16% not 100%

any ideas jef
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top