I *think*
it’s myButton.getStyle(“mouseDownEffect”) but that will just
return the name of the effect. You’ll need to then instantiate the
effect yourself and if you had defined the effect in your <mx:effects>
tag this is not really possible. It might be easier to go ahead and do
myButton.dispatchEvent({type: “mouseDown”})…
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of owls_yang
Sent: Wednesday, October 19, 2005
8:03 PM
To: [email protected]
Subject: [flexcoders] How to
trigger an Effect in ActionScript code?
Hello All:
I want to trigger the mouseDownEffect of a Button
in as functions. I
read the doc that "mouseDownEffect"
could be referenced as a property
in MXML tag or as functions. Thus, I
tried
"myButton.mouseDownEffect.playEffect();" to trigger it, but it
failed.
Thanks very much,
Owls Yang
--
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
YAHOO! GROUPS LINKS
|