Pay for Hesitation: Dispatch Custom Values via DeluxeSignal

Pages

2010年12月2日 星期四

Dispatch Custom Values via DeluxeSignal

http://groups.google.com/group/as3-signals/msg/474cc2ec4e122be1?pli=1

Yes ,that works. 
Thank you Robert for a fast response. 
On Sep 17, 1:50 am, Robert Penner  wrote: 
> Try new DeluxeSignal(this, IEvent, String,int); 
> Sorry this isn't well-documented. 
> Robert 
> On Sep 16, 4:17 pm, iki_xx  wrote: 
> > How can I dispatch custom values via DeluxeSignal? 
> > Meaning: 
> > new DeluxeSignal = new DeluxeSignal(this,String,int); 
> > deluxeInstance.dispatch(new GenericEvent(),'"foo",999); 
> > it doesnt work , I get runtime errors : Value object <[object 
> > GenericEvent]> is not an instance of <[class String]>. 
> > how can I dispatch/catch those parameters ? 
> > Do I have to extend the GenericEvent class, and add those parameters 
> > to the subclass of the GenericEvent class? 
> > Thanks 

沒有留言: