Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get event in component class?

Status
Not open for further replies.

vladibo

Programmer
Joined
Sep 14, 2003
Messages
161
Location
CA
Hello,

I want to make ActionScript 2 component. I have one movie clip (my component). Inside it I have ComboBox with instance name myMovieClip. The class associated with component is
Code:
class mypackage.MyComponent extends Object{
	
	static var symbolName:String = "parser.Deroulateur";
	static var symbolOwner:Object = parser.Deroulateur;
	
	
	private var myMovieClip:MovieClip;
	
	function MyComponent(){
	
	}
	
	function change():Void{
		trace("change");
	}
	
}

I want to work with event change of the ComboBox. If I put it on the ComboBOx instance like this:
Code:
on(change){
	trace("change");
}
it works OK but how to get it in my class? I tried with method
Code:
	function change():Void{
		trace("change");
	}

but it just doesn't work

Please help.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top