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?