In the private scope of the class embed the icon like,
 
[Embed(source="icons/printDown.png")]
var image_printDown :String;
 
 
In doPrint() event, assign the abouve icon to PrintLink like,
PrintLink.icon = image_printDown;
 
hope this helps.
 
dharmendran


Akash <[EMAIL PROTECTED]> wrote:
HI all,
           I  want to change the icon of this link at the run time say on the click event. Can anybody plz. Tell me how to do this?
<mx:Link id="PrintLink" icon="@Embed('images/PrintUp.png')"  x="10" y="468" width="59" height="25" fontWeight="bold" fontStyle="normal" fontSize="14" fontFamily="Courier" color="#FFFFFF" toolTip="Print Report" enabled="false" click="doPrint();"/>
Thanks & regards,
Akash
Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED]ness.com and destroy the original message. The recipient should check this email and any attachments for the presence of viruses. Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail. __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to