data:image/png;base64,R0lGODlhDwAPAKEC...(more chars here)
the function associated will be **setImage(base64_string);**
The component will support all the images format or at least png/jpg/gif.
The component will fill the enclosing html( let's say a div) element 100% width and height, so will not have a predefined size.?
I need the image to resize inside to be full displayed, but keeping it's aspect ratio, but if the image is smaller then the elements dimensions, NOT to expand.
so let's say movie has 300x300, and the image 600x400 - in this case the image will be displayed 300x200
if the image will have 16x16, then it will remain 16x16
If this is not clear let me know and I'll explain better.
I need this in as3 and compiled with flash, because I made this with flex, and the resulting movie is huge. I can provide the flex code I made if necessary but I prefer you to make this.