Hi everyone.
im still learning about this framework, and while i was doing some test, i got into a problem
i have an xml file, wich i load into my aplication, then i get an array, with the address of some images. (img/file1.jpg,img/file2.jpg.. etc)
once the images are loaded (with event.complete listener), i wanna create a plane and add this image to this plane.. but nothing i do seams to work out.
my code is:
var my_loader:Loader = new Loader();
my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,createPlane)
var fileRequest:URLRequest = new URLRequest(aDirArchivo[n]);//addres of imagen
my_loader.load(fileRequest);
}
//then in createplane function
public function createPlane(e:Event):void
{
var oPlane:PlaneGeometry = new PlaneGeometry(256,256,1,1,false);
var omPlane:BitmapTexture;
var tPlane:TextureMaterial;
// i cant have the clasicc
//omPlane = new BitmapTexture(new class().bitmapData);
//so this line, i dont know how it so create this objec material..
omPlane = new BitmapTexture( ???.bitmapData);
//:(
any ideas??
thx a lot