If its an Air application we can get the file url and load again...
and the option is in player 10 features...
otherwise upload the image to server and load it again using loader to
read the bitmap data..
--sara
On Nov 6, 3:48 am, sirarthurtarp <[EMAIL PROTECTED]> wrote:
> I need to create a system where the user browses for an image file,
> that image file is then passed as a bitmap to another part of the
> application.
>
> The only part I cannot find is how to convert the result of a
> file.browse to a bitmap data.
>
> var file:FileReference = new FileReference();
> file.addEventListener(Event.SELECT, fileSelected);
> file.browse( new Array( new FileFilter( "Images (*.jpg, *.jpeg,
> *.gif, *.png)", "*.jpg;*.jpeg;*.gif;*.png" ) ) );
>
> private function fileSelected(event:Event) {
> var file:FileReference = event.target as FileReference;
> //turn file into Bitmap here???
> //var b:BItmap = file.something()
>
> }
>
> Any help would be appreciated
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---