I am trying to get this to work for ages but doesnt seem to work out quite well
this is my code:
import flash.display.MovieClip;
import flash.events.Event;
import flash.display.Loader;
import flash.net.URLRequest;
var cola:Loader;
cola = new Loader()
cola.load(new URLRequest("resources/colabar.swf"));
this.addChild(cola);
//cola.currentLabel = "frame1";
This works. The .swf is in my stage now. Moving from frame to frame.
Obiously, when deleting the // its not working. And ill get this error message: 1119: Access of possibly undefined property currentLabel through a reference with static type flash.display:Loader.
Try this:
i.e. wait for the SWF to load, then set the label.