While I agree that eval still had a use or two, you can easily write
the function yourself and just add it to your code Library.. almost
as good
On Mar 4, 2006, at 5:40 PM, Boon Chew wrote:
The problem is when you get an entire string (the
target name), you just want to get to the refer
ers mailing list"
Sent: Sunday, March 05, 2006 12:40 AM
Subject: Re: [Flashcoders] eval gone in AS3,how to get reference to mc via
target name?
The problem is when you get an entire string (the
target name), you just want to get to the reference in
one shot (e.g. "mc1.mc2.mc3").
The problem is when you get an entire string (the
target name), you just want to get to the reference in
one shot (e.g. "mc1.mc2.mc3"). The collection method
requires parsing before you can get to the reference.
I was hoping Macromedia would provide at least a
similar way to get to it when they r
The problem is when you get an entire string (the
target name), you just want to get to the reference in
one shot (e.g. "mc1.mc2.mc3"). The collection method
requires parsing before you can get to the reference.
I was hoping Macromedia would provide at least a
similar way to get to it when they
With the eval being gone in AS3, does anyone know how to get to the
reference of a movieclip (via the target name string) without using eval?
I know we can instantiate the class via the _global namespace but not
positive about mc's.
Using the object collection, like you should've been doing
Boon Chew wrote:
Will getChildByName work with a nested target name (e.g. "_level0.mc1.mc2.mc3")?
No, it gets the child with the particular name in the display object
container. You'll want to split the string apart:
// Not tested - but you get the basic idea
var parts:Array = name.split( '
Will getChildByName work with a nested target name (e.g. "_level0.mc1.mc2.mc3")?
- boon
"Darron J. Schall" <[EMAIL PROTECTED]> wrote: Boon Chew wrote:
> With the eval being gone in AS3, does anyone know how to get to the reference
> of a movieclip (via the target name string) without using eval
Boon Chew wrote:
With the eval being gone in AS3, does anyone know how to get to the reference
of a movieclip (via the target name string) without using eval? I know we can
instantiate the class via the _global namespace but not positive about mc's.
Use getChildByName( name):
http://livedocs
Hi all,
With the eval being gone in AS3, does anyone know how to get to the reference
of a movieclip (via the target name string) without using eval? I know we can
instantiate the class via the _global namespace but not positive about mc's.
- boon
---
9 matches
Mail list logo