Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

45 users online



Flash Player 6 and the movieClipLoader object

Flash Player 6 and the movieClipLoader object

Currently viewing this thread: 1 (0 members and 1 guests)


TripleFX

TripleFX

Neverside Newbie
Status: Offline!

Flash Player 6 and the movieClipLoader object

I've come into quite a predicament regarding users running Flash Player 6 not being able to load movie clips through the movieClipLoader object.

Can anyone confirm that this is a Flash Player 7.0 addition (ie. not in Flash Player 6) and provide any suggestions regarding preloading individual images for legacy players?

I can preload the entire movie just fine with _root.getBytesLoaded(); and _root.getBytesTotal(), but I need a way of doing individual clips..

Would using something like:

holder.loadMovie("image.jpg");
ploaded = 0;
holder._alpha = 0;
holder.onEnterFrame = function() {
lbytes = this.getBytesLoaded();
tbytes = this.getBytesTotal();
ploaded = lbytes/tbytes * 100;
if (ploaded < 100) {
//update loading bar
} else {
this.fadeIn();
}
}

Work?

___________________

http://www.triplefx.com/xbox/typo.jpg

devonair

devonair

Neverside Newbie
Status: Offline!

A quick peek in the help file or livedocs if you didn't get a copy of the help file - http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001574.html - will confirm that the MovieClipLoader class is available only in the Flash Player 7 (and 8, now).. What you posted, or something like it should work fine.. don't forget to delete your onEnterFrame when done..

___________________

obod | weapons of mass dysfunction

TripleFX

TripleFX

Neverside Newbie
Status: Offline!

Cool.. thanks dev

___________________

http://www.triplefx.com/xbox/typo.jpg

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0074 seconds.