PDA

View Full Version : Importing Image Locally to SWF and Not To Server


angerbee
02-19-2009, 08:28 PM
Is there a way to insert an image into an Image object within an SWF at run-time instead of having the image upload to the server and then having to Image.load(url) later?

wvxvw
02-19-2009, 10:58 PM
<mx:Image source="where/is/my.jpg"/>
?

angerbee
02-20-2009, 01:39 AM
No, this is not what I meant. I want a user to upload an image to insert onto the stage, but I don't want it uploaded to the server, only to be used locally. I see examples like these, but it's almost as if they are different libraries. I do not have access to the load() method and data attribute for flash.net.FileReference.

http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/

http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/#more-766