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