2 Replies Latest reply on May 10, 2011 2:10 AM by Mike_Dobs

    Flex 4.5 error when trying to set icon on Button from actionscript

    Mike_Dobs Level 1

      Hello, I have Flash Builder 4.5  and when I try to set icon property to a spark Button from acrionscript is displays the following message:
      1119: Access of possibly undefined property icon through a reference with static type spark.components:Button.

       

      I thought that the icon was supported in Flex Hero, and I think it is because I can set it fine from mxml...

       

      Anyone has any idea why this is?

       

      Thanks in advance.