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
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
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.
...@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
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
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:
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
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
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
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
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])
...@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
]
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
...@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
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;
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
16 matches
Mail list logo