0 Replies Latest reply on Nov 21, 2006 3:48 PM by QuickStick

    Runtime Button Icons

      Hi Ladies and Gents,

      Just hoping someone out there can point me in the direction of what I want.

      I was trying to load a PNG Button Icon into the button at runtime.

      Something to this effect, would be lovely.



      public var logo:Image = new Image();

      //When the system starts...
      public function startFlex():void {

      //Load the logo...
      logo.source = "logo.png";



      <mx:Button id="button" x="0" y="0" width="150" height="60" icon="{logo}"/>