-
Preloader issues for movies loaded into targets
Hello all,
I am having issues with getting preloaders to work on movies that are loaded into another movies blank placeholder. If anyone can help me with this I would be very grateful. Thanks
Duncan
-
Senior Member
Any code in the external swf that refers to the _root will point at the wrong timeline, as the external swf is regarded as the movieclip its loaded into ( and movieclips dont have a _root ).
So you have to adjust your paths accordingly, or use a general preloader in the main swf for the external files...like... ON the place holder...
onClipEvent (enterFrame) {
tb = math.round(this.getBytesTotal()/1024);
lb = math.round(this.getBytesLoaded()/1024);
perc = math.round((lb/tb)*100);
if (lb>=tb) {
_parent.loadBar._visible = 0;
} else {
_parent.perc = perc;
_parent.loadBar._width = perc;
_parent.loadBar._visible = 1;
}
}
loadBar being a small movieclip on the main timeline.( or the same timeline the container clip is at ).
-
Help with the path
Thank you for the ultra fast response!! When I test the movie that is to be loaded into a placeholder, run the bandwidth profiler, debug at 56k and then stream the movie it works fine... But once up on the webpage the preloader fly’s and loads even though the photo album is not fully loaded. It is like you said pointing at the wrong timeline. When I try to adjust my path I have no choice it seems but to use _root. Are the actions you posted referring to using a general preloader or for adjusting the path? Sorry I am a newb who at times requires a bit of spoon feeding. Thanks,
Duncan
you can see the problem in action at http://www.thesouzas.net
photos>January 2004
-
Senior Member
My code is a general preloader in the main swf.
The optÃ*ons to _root are _parent ( one timeline up ) and this. ( current timeline )
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|