PDA

View Full Version : progressBar component not working in osx fplayer 6



dragonfly
December 23rd, 2005, 05:34 PM
According to flash's docs, I should be able to use any v2 component and still export to flash player version 6, as2.

However, I have not been able to get this to work on a mac running flash player version 6 (rev 79).

My preloader uses this script:



this.createClassObject(mx.controls.ProgressBar, "my_pb", 10);
with (my_pb) {
_x = Stage.width/2-my_pb._width/2;
_y = Stage.height/2-my_pb._height/2;
}
my_pb.mode = "polled";
my_pb.source = "loader_mc";
my_pb._visible = true;
var pbListener:Object = new Object();
pbListener.complete = function(evt_obj:Object) {
loader_mc.gotoAndPlay(2);
my_pb.removeMovieClip();
};
my_pb.addEventListener("complete", pbListener);
loadSWF(movieToLoad, loader_mc);

my movie loads external swfs, and does so by creating "loader_mc", sending the playhead to a frame with the above code, and then loading the chosen swf with the "loadSWF" function.

Shouldn't this work for a user with Mac OSX, Flashplayer 6 r79?

TheCanadian
December 23rd, 2005, 06:29 PM
It might have something to do with your loadSWF function since this works fine published to Windows Flash Player 6 AS2.0.



this.createClassObject(mx.controls.ProgressBar, "my_pb", 10);
this.createEmptyMovieClip("loader_mc", 0);
with (my_pb) {
_x = 0;
_y = 0;
}
my_pb.mode = "polled";
my_pb.source = loader_mc;
my_pb._visible = true;
var pbListener:Object = new Object();
pbListener.complete = function(evt_obj:Object) {
loader_mc.gotoAndPlay(2);
my_pb.removeMovieClip();
};
my_pb.addEventListener("complete", pbListener);
var movieToLoad:String = "http://www.artlex.com/ArtLex/s/images/studio.straet.woodct.jpg?num=" + Math.random();
loader_mc.loadMovie(movieToLoad);


Either that or it's the Mac, sorry I can't be of much help.

dragonfly
December 23rd, 2005, 06:38 PM
Thanks for the reply.

yea, i verified that it works fine in windows. I've tested with two macs now, and it just isn't working on either mac.

i'll just need to simplifiy and test...blah....