dhina.techno
09-26-2007, 05:41 AM
Hi,
I am a newbie in flex 2.0 and action script 3.0.
When i press the button, i need two things to happen.
one is change my view state and other one is calling a inline actionscript function.
<mx:Button x="84" y="192" label="Button" id="Button1" click="getit()"/>
(where getit() is my inline function in actionscript).
i know how to create a new state and so on. But, i need to know, how can i make these two things happen in a single button click. I heard something called CurrentStateChange which handles this functionality. Kindly let me know how to use this CurrentStateChange, or if you have anything to say!
Your help is highly appreciated!
thanks,
Dhina
I am a newbie in flex 2.0 and action script 3.0.
When i press the button, i need two things to happen.
one is change my view state and other one is calling a inline actionscript function.
<mx:Button x="84" y="192" label="Button" id="Button1" click="getit()"/>
(where getit() is my inline function in actionscript).
i know how to create a new state and so on. But, i need to know, how can i make these two things happen in a single button click. I heard something called CurrentStateChange which handles this functionality. Kindly let me know how to use this CurrentStateChange, or if you have anything to say!
Your help is highly appreciated!
thanks,
Dhina