Re: [Flashcoders] targeting mc

2010-06-11 Thread allandt bik-elliott (thefieldcomic.com)
also - have you set mouseChildren = false on the items that fire the event if you don't need mouseevents from the children On 11 June 2010 15:12, allandt bik-elliott (thefieldcomic.com) < alla...@gmail.com> wrote: bugger e.target.name not e.target.name.name On 11

Re: [Flashcoders] targeting mc

2010-06-11 Thread Henrik Andersson
Lehr, Theodore wrote: Basically: function parseSumXML(e:Event):void { //looping through the xml for (var n:int=0; n I got it! You are assuming that the named children results in corresponding properties on the container. This is not the case. That is only for timeline instances. Cod

RE: [Flashcoders] targeting mc

2010-06-11 Thread Merrill, Jason
om: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Friday, June 11, 2010 11:14 AM To: Flash Coders List Subject: RE: [Flashcoders] targeting mc Basically: function parseSumXML(e:Event):void { //looping through the xml for (var n

RE: [Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
] Sent: Friday, June 11, 2010 11:01 AM To: Flash Coders List Subject: Re: [Flashcoders] targeting mc Can you post more of your code? Specifically the code that creates the intended target in the first place. .m On Fri, Jun 11, 2010 at 10:43 AM, Lehr, Theodore wrote: > I think it is a matter of sc

RE: [Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
Basically: function parseSumXML(e:Event):void { //looping through the xml for (var n:int=0; nwrote: > I think it is a matter of scope the mc I am trying to affect > (this["details"+e.currentTarget.name]) is a texfield created in a function > - so I am guessing it is not accesible outsi

Re: [Flashcoders] targeting mc

2010-06-11 Thread Matt S.
Can you post more of your code? Specifically the code that creates the intended target in the first place. .m On Fri, Jun 11, 2010 at 10:43 AM, Lehr, Theodore wrote: > I think it is a matter of scope the mc I am trying to affect > (this["details"+e.currentTarget.name]) is a texfield created

Re: [Flashcoders] targeting mc

2010-06-11 Thread Matt S.
whats the basic structure? is there an MC named "details", and within that is the MC you're trying to target? the concatenation of "details"+ e.currentTarget.name seems bizarre, since you're taking an already existing name and then modifying the name by adding "details" on the front. .m On Fri,

RE: [Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
I think it is a matter of scope the mc I am trying to affect (this["details"+e.currentTarget.name]) is a texfield created in a function - so I am guessing it is not accesible outside of that function... there are multiple instances of these textfields... they are created in a loop like: var

Re: [Flashcoders] targeting mc

2010-06-11 Thread Henrik Andersson
allandt bik-elliott (thefieldcomic.com) wrote: things to trace Screw tracing! Just fire up the debugger and see exactly what the value is! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/fla

Re: [Flashcoders] targeting mc

2010-06-11 Thread allandt bik-elliott (thefieldcomic.com)
bugger e.target.name not e.target.name.name On 11 June 2010 15:11, allandt bik-elliott (thefieldcomic.com) < alla...@gmail.com> wrote: > things to trace > > this > e.currentTarget.name > e.target.name.name > (e.currentTarget as DisplayObje

Re: [Flashcoders] targeting mc

2010-06-11 Thread allandt bik-elliott (thefieldcomic.com)
things to trace this e.currentTarget.name e.target.name.name (e.currentTarget as DisplayObject).name best a On 11 June 2010 15:06, Henrik Andersson wrote: > Cor wrote: > >> Not sure what or how your object which fires the event looks like? >> But try: >> ["details"+e.currentTarget.name].visib

RE: [Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
11, 2010 10:06 AM To: Flash Coders List Subject: Re: [Flashcoders] targeting mc Cor wrote: > Not sure what or how your object which fires the event looks like? > But try: > ["details"+e.currentTarget.name].visible=true; > > Or > > this.["details"+e.cur

RE: [Flashcoders] targeting mc

2010-06-11 Thread Cor
lto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: vrijdag 11 juni 2010 15:54 To: Flash Coders List Subject: [Flashcoders] targeting mc So I am rolling over one mc to impact another and I am trying: function showDetails(e:Event):void { this["details"+e.currentTarget.n

Re: [Flashcoders] targeting mc

2010-06-11 Thread Henrik Andersson
Cor wrote: Not sure what or how your object which fires the event looks like? But try: ["details"+e.currentTarget.name].visible=true; Or this.["details"+e.currentTarget.name].visible=true; Both of those are syntax errors. The original code was fine.

Re: [Flashcoders] targeting mc

2010-06-11 Thread allandt bik-elliott (thefieldcomic.com)
trace this that calls detailsname.visible = true; a On 11 June 2010 14:53, Lehr, Theodore wrote: > So I am rolling over one mc to impact another and I am trying: > > function showDetails(e:Event):void > { > this["details"+e.currentTarget.name].visible=true; > } > > why does this not work?

[Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
So I am rolling over one mc to impact another and I am trying: function showDetails(e:Event):void { this["details"+e.currentTarget.name].visible=true; } why does this not work? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://c