When we need to load some any.jpg, and transform it into
BitmapMaterial, we write next code:

var picLoader:Loader=new Loader();
picLoader.load(new URLRequest("any.jpg");
picLoader.addEventListener(Event.COMPLETE, picLoadedFunc);

public function picLoadedFunc(e:Event):void
{
        var planeMaterial:BitmapMaterial = new
BitmapMaterial(Cast.bitmap(e.target.content), {smooth:true, precision:
2});
}

and how to transform loader into MovieMaterial??

var swfLoader:Loader=new Loader();
swfLoader.load(new URLRequest("any.swf");
swfLoader.addEventListener(Event.COMPLETE, swfLoadedFunc);

public function picLoadedFunc(e:Event):void
{
        //????????????????????????????????????????
}


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to