situation | |
how to make a image cache? | |
problem | |
adobe flex4 AS3.0 the image component how to load images save them to cache… and how apply them to Image components --- > page by dn | |
difficulty level | |
9/10 :( | |
solution | |
In order to make a cashe of the photos/images, I do the follow simple way: - With URLLoader I download the data… the "Complete" event gives me the "data" property… in this property the data of the image is in binary format (don't be afraid). I save this "data" to another variable (or array) of Object type. For this example, I named this variable "downloadData" you will see bellow. - In order to load the data on a visual component Image, I do the follow code: myImage.data=downloadData; | |
attention | |
no attentions! |
Flexache, is the pain you feel in your brain when you coding on Adobe’s Flex Builder, Flash builder with Flex SDK and Actionscript in general. The pain is starting from the eyes, as you can’t believe what you see and is getting deep in your head as you can’t fix. In this blog I‘ll give you painkiller to get out of a lot strange troubles showing solutions and techniques in Flex.
Sunday, 8 May 2011
Flex: how to make a image cache? (easier way) - REFdn4007673813
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment