We used to blog more before twitter came along.
Load image into Flash - without the loader!
Flex/Flash question for today!
We want to load an image in to our Flex app. That's simple if the images are in a web-accessible directory. We don't want to do that for "security" reasons.
So we thought we'd just do a little CFFILE manipulation on the server side and return the contents of the image file over the wire in a remoteObject call.
Flash has a bytestream class that we can clearly dump the file contents into...but where we're stuck is getting the data out of the bytestream and into a rendered image in Flash.
Can anyone help?


This may be accomplished using the setPixels() function of the BitmapData class. It requires a rect and a ByteArray.
Hope this helps.
You may not need to do this if you can get at it from your ASP. Simply set the Image source property to the same one that your img tags in ASP are pointing to and it should load the image on its own at runtime.