you could create another state with a different icon embedded and
toggle the state in the doPrint() clickhandler. public function doPrint():void { ... currentState='printed'; ... } <mx:states> <mx:State name="printed"> <mx:RemoveChild target="{}"/> <mx:AddChild > <mx:Link id="PrintedLink" icon="@Embed('images/Printed.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();"/> </mx:AddChild > </mx:State> </mx:states> Akash wrote:
-- ______________________________________________________________ Phil Marston Technology Enhanced Learning Centre for Learning & Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ ______________________________________________________________ The University of Aberdeen has been shortlisted in The Times Higher Awards 2006 for: - Higher Education Institution of the Year; and - Outstanding Contribution to the Local Community For full details, visit: http://www.thes.co.uk/Awards/2006/__._,_.___ -- 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
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 __,_._,___ |
- Re: [flexcoders] How to change the Link icon at run time Phil Marston