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

Event

Description

onData = function() {}

Invoked when a movie clip receives data from a MovieClip.loadVariables() call or a MovieClip.loadMovie() call.

onDragOut = function() {}

Invoked when the mouse button is pressed and the pointer rolls outside the object.

onDragOver = function() {}

Invoked when the pointer is dragged outside and then over the movie clip.

onEnterFrame = function() {}

Invoked repeatedly at the frame rate of the SWF file.

onKeyDown = function() {}

Invoked when a movie clip has input focus and user presses a key.

onKeyUp = function() {}

Invoked when a key is released.

 

 

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: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis
Sent: Monday, 20 March 2006 4:23 PM
To: CFAussie Mailing List
Subject: [cfaussie] FLASH object events

 

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 cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---


Reply via email to