|
Ok But how do you know its “click” and not “mousedown”
or “press” ? From: In Flash Help, under Actionscript
language reference or Components Dictionary (which ever u want to investigate)
it lists what events each component or class fires. Example Event summary
And then the best way to
listen is like this Import mx.utils.Delegate Class myClass extends
MovieClip { Var myButton_btn :
mx.controls.Button; Public function
myClass() {
myButton_btn.addEventListener( “click”, Delegate.create( this, onClickHandler )
); } Public function
onPressHandler() : Void { // do something }; } Hope it helps BTW there are better
Delegate classes then the mx.utils one.. Bjorn From: Is there anywhere I can get a list of what objects
fire what events so I know what to put into even listeners? like a button has "click" but movie clips
use "press" or "mousedown" or what ever Steve
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~--- |
- [cfaussie] Re: FLASH object events grant
- [cfaussie] Re: FLASH object events Bjorn Schultheiss
- [cfaussie] Re: FLASH object events Steve Onnis
