You mean Loading it using the path from resolvePath()?

On Thu, May 1, 2008 at 6:20 PM, Glen Pike <[EMAIL PROTECTED]> wrote:

> 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
>



-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to