Re: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread T. Michael Keesey

Out of curiosity, what is "presets"? If it's a constant array, why not
just make it a static var of a class? If it's unique to the dispatcher
instance, why not use it as a property and access it in the listener
as MyDispatcherClass(event.target).presets? (If neither is the case,
forget I said anything.)

On 11/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


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'
___
Flashcoders@chattyfig.figleaf.com
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




--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread Ben Smeets
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: flashcoders@chattyfig.figleaf.com
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'
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread Julien Vignali

I've tried it and it works fine and as expected.. you must have an error
somewhere else... Can you post more of your code ?

2006/11/22, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:



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'
___
Flashcoders@chattyfig.figleaf.com
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





--
Julien Vignali
___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread moveup

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'
___
Flashcoders@chattyfig.figleaf.com
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