You will probably need to load your file as an image/MC/similar first, then draw that into your bitmap.

Omar Fouad wrote:
Hi list,
In an Air - Flash CS3 application I am trying to Import an image with
browseForOpen() and getting the event.currentTarget of the File Object and
converting it to a BitmapData like this:

private function OnFileSelect(e:Event):void {
   var BD:BitmapData = new BitmapData(300, 400, false);
   var B:Bitmap = new Bitmap();
   BD.draw(B);
   addChild(B);// just in case

  }
It is not working... Have I missed something?

Thanks


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to