Change it to:
> var oMyObject:Object = this["myString" + myVar].
>
> Tracy
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of {reduxdj}
> Sent: Saturday, December 09, 2006 4:05 PM
> To: flexcoders@yahoog
j}
Sent: Saturday, December 09, 2006 4:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] eval() function removed in AS 3.0 ??
from an earlier post about this topic:
You need to roll it on your own. You could split the given path into
its parts and try to evaluate one piece after the o
from an earlier post about this topic:
You need to roll it on your own. You could split the given path into
its parts and try to evaluate one piece after the other until you come
to the end.
public function eval( scope : Object, path : String ) : Object
{
if( path == null ) return null;
a typed variable for it though…
Matt
From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Tom Bray
Sent: Saturday, March 04, 2006
5:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] eval
gone in AS3, how to get reference to movieclip via targ
Bray
Sent: Saturday, March 04, 2006
5:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] eval
gone in AS3, how to get reference to movieclip via target name?
I have a question that's
almost related.
In AS3, how can I instantiate a class, com.foo.MyClass, using the s
I have a question that's almost related.In AS3, how can I instantiate a class, com.foo.MyClass, using the string "com.foo.MyClass"? The reason I ask is that I'd like to load an XML file and use it to dynamically create components at runtime. Something like this:
Thanks,TomOn 3/3/06, Gordo
I am not using Flex, I am mostly curious what I would have to do to my existing Flash actionscript code when AS3 is out for Flash.Gordon Smith <[EMAIL PROTECTED]> wrote:Whoa not only is there no eval(), there's no _target, no _level0, and no _global! Plus, yo
Whoa not only is there no eval(),
there's no _target, no _level0, and no _global! Plus, you should almost always
use Sprite instead of MovieClip.
So what are you really trying to do? Are
you using Flex or just pure AS3? Where are you getting a string like "sprite1.sprite2.sprite3"
Yeah, [].
And good riddance to eval().
Jason
Merrill | E-Learning Solutions |
icfconsulting.com
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman
Sent: Tuesday, November 22, 2005
4:22 PM
To: flexcoders
9 matches
Mail list logo