flex - Converting button Icon back to Image -


I want to remove the button icon image as a flex image component, then change it to filter it Apply to / white and then apply the image to another button as an icon. Any ideas how can I do this? So far, I can get this as an object in the form of an object:

  var iconImg: Object = myBtn.getStyle ("icon");  

It is not certain how to convert that object into an image.

IconImage object type is DisplayObject so you can draw in a bitmap data object, then apply the transformation You can do this and set the 'icon' style of the second button in this new transfiled object.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -