[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

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 ted_l...@federal.dell.com 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

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 Cor
...@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.name].visible=true; } why does

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.currentTarget.name].visible=true; Both of those

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 he...@henke37.cjb.net wrote: Cor wrote: Not sure what or how your object which fires the event looks like? But try:

Re: [Flashcoders] targeting mc

2010-06-11 Thread allandt bik-elliott (thefieldcomic.com)
bugger e.target.name http://e.target.name.name/ http://e.target.name.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 DisplayObject).name

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

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 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, Jun

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 ted_l...@federal.dell.comwrote: I think it is a matter of scope the mc I am trying to affect (this[details+e.currentTarget.name])

RE: [Flashcoders] targeting mc

2010-06-11 Thread Lehr, Theodore
...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S. [mattsp...@gmail.com] 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

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 ted_l...@federal.dell.comwrote: I think

RE: [Flashcoders] targeting mc

2010-06-11 Thread Merrill, Jason
...@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:int=0; ntotalChildren; n

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; ntotalChildren; n++) { obar.graphics.beginFill. (creating square); obar.name = Assigned+n;

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 http://e.target.name.name/ not e.target.name.name On 11