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:

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.

-- 
______________________________________________________________ 

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
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