1 Reply Latest reply on Sep 2, 2008 12:14 PM by Gregory Lafrance

    linkbutton using action script

    vikceo
      Hie

      I am trying to create a link button using action script. Everything is fine except the icon. I dont know how get it.
      Using mxml i can do that by just selecting the icon property and providing the image path.

      var closeText:LinkButton = new LinkButton();
      closeText.label = "Close";
      closeText.labelPlacement= "left";
      //closeText.setStyle("icon","images/close_ena.png"); ?? not sure how to do.. this doesnt work...