DeluxeSignal question

18 views
Skip to first unread message

iki_xx

unread,
Sep 16, 2010, 7:17:51 PM9/16/10
to as3-signals
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

Robert Penner

unread,
Sep 16, 2010, 7:50:59 PM9/16/10
to as3-signals
Try new DeluxeSignal(this, IEvent, String,int);

Sorry this isn't well-documented.

Robert

iki_xx

unread,
Sep 17, 2010, 6:38:19 AM9/17/10
to as3-signals

Yes ,that works.

Thank you Robert for a fast response.
Reply all
Reply to author
Forward
0 new messages