Sorry, no, eval has never been a full eval like in javascript.  It has only 
ever been able to resolve references.  Its replacement is ["bracket notation"].

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David 
Pariente
Sent: Monday, June 16, 2008 10:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: string to actual actionscript code?

 

They answer u about eval() cause that was what eval() was for. I used it so 
often in AS1 and AS2. Lost now in AS3 without it :(

----- Mensaje original ----
De: mariovandeneynde <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: lunes, 16 de junio, 2008 12:08:26
Asunto: [flexcoders] Re: string to actual actionscript code?

No, I'm just wondering if there is a way to convert a string to actual
actionscriptcode. ..

--- In [EMAIL PROTECTED] ups.com <mailto:flexcoders%40yahoogroups.com> , 
"Michael Schmalle"
<teoti.graphix@ ...> wrote:
>
> Hi,
> 
> There is no eval() in actionscript if that is what you are wondering.
> 
> Mike
> 
> On Mon, Jun 16, 2008 at 5:33 AM, mariovandeneynde <
> mariovandeneynde@ ...> wrote:
> 
> > Greetings,
> >
> > I was wondering if the following situation would be possible:
> >
> > imagine having a string like
> >
> > var query:String = "Object.property. toString( ) ==
somevalue.toString( )";
> >
> > and that the string somehow could be converted to actual actionscript
> > code...
> >
> > if(query){
> > trace("your actionscriptquery worked");
> > }
> > else{
> > trace("your actionscriptquery did not worked");
> > }
> >
> > 
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigra phix.com <http://www.teotigraphix.com> 
> 
> Teoti Graphix Blog
> http://www.blog. teotigraphix. com <http://www.blog.teotigraphix.com> 
> 
> You can find more by solving the problem then by 'asking the question'.
>

 

________________________________


Enviado desde Correo Yahoo! 
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52431/*http:/es.docs.yahoo.com/mail/overview/index.html>
 
La bandeja de entrada más inteligente.

 

Reply via email to