RES: [flexcoders] Creating Events

2006-12-17 Thread Marlos Carmo | 5clicks.com.br
Can you do a use example? Thanks. _ De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de John C. Bland II Enviada em: sexta-feira, 15 de dezembro de 2006 02:02 Para: flexcoders@yahoogroups.com Assunto: Re: [flexcoders] Creating Events Here is a custom event

RE: [flexcoders] Creating Events

2006-12-17 Thread Stephen Gilson
PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Creating Events Here is a custom event class. Just change LevelEvent to whatever you want and the public var level to whatever custom data you want/need. But...you only need this if you need to pass some sort of data with your event

[flexcoders] Creating Events

2006-12-14 Thread marloscarmo2004
I need create a personalized event in my class in AS3. In AS2 I use the dispatchEvent comand. this.dispatchEvent( { type : onResult, target : this, data : result_arr } ); How do I do in AS3? See my code below. package as3.db { import flash.net.NetConnection; import

Re: [flexcoders] Creating Events

2006-12-14 Thread John C. Bland II
Here is a custom event class. Just change LevelEvent to whatever you want and the public var level to whatever custom data you want/need. But...you only need this if you need to pass some sort of data with your event. You could easily do dispatchEvent(new Event(myEventName)) and it'll work fine.