How are you adding the listeners? A.k.a, what is the rest of the code? I believe this should work but can't tell for sure without context.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: woensdag 22 november 2006 16:18 To: [email protected] Subject: [Flashcoders] Q;Pass an array as event object? Anyone know why this doesn't work? a_presets1=[5,6,1,6,4,8,5,6]; this.dispatchEvent({target:this, type:"Presets", o_presets:a_presets1}); //my listener function: function Presets(evtob){ var a_presets=evtob.o_presets; trace(a_presets); //a_presets traces out undefined } [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca -------------------------------------------- "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

