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
---
_root["something"+i].onRollOut=function()
{
}
HTH,
Ian
On 11/4/05, Spiros Gerokostas <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> can you help with this line of code?
>
> eval("_root.something" + i + ".onRollOut") = function()
> {
> }
>
> well i know this is wrong in flash 6.
>
> Is this possible?
>
>
hi,
can you help with this line of code?
eval("_root.something" + i + ".onRollOut") = function()
{
}
well i know this is wrong in flash 6.
Is this possible?
this["_root.something" + i + ".onRollOut") = function()
{
}
thanks,
Spiros
___
Flashcoders
eval() is supposed to execute any script you pass to it, it never worked
that way in Flash, and since Flash is a "compact" implementation of
ECMAScript, it doesn't include the "compiler" part which makes eval()
possible.
Basically eval() has no much reason to exist in AS3, but you can still wr
Can you believe it? Is not eval() part of ECMA 4? I am heart-broken...
blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
13 matches
Mail list logo