junio, 2008 22:22:32
Asunto: Re: [flexcoders] Re: string to actual actionscript code?
The array accessor [] does not quite duplicate what eval() used to. From
my recollection you could actually run code with eval, which of course
is impossible to do with []. I know there's a way to do code injection
: Thursday, June 19, 2008 7:18
AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Re:
string to actual actionscript code?
Wow, that answer will
really help me! :)
What if it's not movies, but some other object that i wanna create 20 times?
I thought it should get inside some kind of Array
Wow .. how did they manage to make the D.eval function?
Any adobe people out there who care to comment?!
Regards
Devdatta
2008/6/19 Joseph Balderson [EMAIL PROTECTED]:
And I stand corrected, you cannot use eval to evaluate an expression, or
use it on the left side of an equation as of Flash
It just looks like a simple interpreter to me. A fair bit of work no doubt,
but no voodoo.
-Josh
On Fri, Jun 20, 2008 at 1:44 PM, dev [EMAIL PROTECTED] wrote:
Wow .. how did they manage to make the D.eval function?
Any adobe people out there who care to comment?!
Regards
Devdatta
Yeah I realised that later on ... saw it somewhere that they just used
the Tamarin code! :)
2008/6/20 Josh McDonald [EMAIL PROTECTED]:
It just looks like a simple interpreter to me. A fair bit of work no doubt,
but no voodoo.
-Josh
On Fri, Jun 20, 2008 at 1:44 PM, dev [EMAIL PROTECTED]
to access them later.
Thnx, u guys are kind ;)
- Mensaje original
De: Josh McDonald [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: martes, 17 de junio, 2008 0:50:17
Asunto: Re: [flexcoders] Re: string to actual actionscript code?
Gordon,
I can live without eval
important, how to access them later.
Thnx, u guys are kind ;)
- Mensaje original
De: Josh McDonald [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: martes, 17 de junio, 2008 0:50:17
Asunto: Re: [flexcoders] Re: string to actual actionscript code?
Gordon,
I can live
: Josh McDonald [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: jueves, 19 de junio, 2008 14:16:50
Asunto: Re: [flexcoders] Re: string to actual actionscript code?
No worries, the equivalent of
eval(movie_number_ + idNumber);
would be:
this[movie_number_ + idNumber];
To explain
]
Para: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
Enviado: martes, 17 de junio, 2008 0:50:17
Asunto: Re: [flexcoders] Re: string to actual actionscript code?
Gordon,
I can live without eval() and associated evilness, but I'd sell my
left testicle
I'm fairly certain that while you could run code with eval() it wouldn't
have any side effects. It was some sort of temporary scope that was thrown
out after execution or something, or you could only get side effects by
calling a function. But, last time I wrote AS2 code, it was on Flash MX so
my
@yahoogroups.com
Subject: Re: [flexcoders] Re: string to actual actionscript code?
I'm fairly certain that while you could run code with eval() it wouldn't
have any side effects. It was some sort of temporary scope that was
thrown out after execution or something, or you could only get side
effects
You could evaluate any single expression though, right? Like eval(4 / 2)
== 2. That worked? Maybe it's been longer than I thought :)
-Josh
On Fri, Jun 20, 2008 at 10:26 AM, Tracy Spratt [EMAIL PROTECTED]
wrote:
You could not run code with eval(), for sure in AS2. I can't say for
sure in
Guess it's been longer than I thought ;-)
Thanks for clearing that up tho!
-Josh
On Fri, Jun 20, 2008 at 10:57 AM, Tracy Spratt [EMAIL PROTECTED]
wrote:
No.
Since I still have 1.5 installed, I created a test app to be sure. It
errors with the message:
There is no property with the
And I stand corrected, you cannot use eval to evaluate an expression, or
use it on the left side of an equation as of Flash 5:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16187sliceId=2
http://www.senocular.com/flash/tutorials/faq/#varreference
BUT... looking through my bookmark
Pariente
Sent: Thursday, June 19, 2008 7:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: string to actual actionscript code?
Wow, that answer will really help me! :)
What if it's not movies, but some other object that i wanna create 20 times?
I thought it should get inside some
Pariente
*Sent:* Thursday, June 19, 2008 7:18 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Re: string to actual actionscript code?
Wow, that answer will really help me! :)
What if it's not movies, but some other object that i wanna create 20 times?
I thought
Like an interpreter?
Why do you want to do what you showed below?
Mike
On Mon, Jun 16, 2008 at 6:08 AM, mariovandeneynde
[EMAIL PROTECTED] wrote:
No, I'm just wondering if there is a way to convert a string to actual
actionscriptcode...
--- In flexcoders@yahoogroups.com
Seems like you could just pass in an Array of strings to check against.
Something like the following
public function isImageLocationKnown(location:String,
knownLocations:Array):Boolean
{
var ret:Boolean = false;
for each(var knownLocation:String in knownLocations)
{
: 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, Michael Schmalle
teoti.graphix@ ... wrote:
Hi,
There is no eval() in actionscript if that is what you are wondering.
Mike
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David
Pariente
Sent: Monday, June 16, 2008 7: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
: 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
Of *David Pariente
*Sent:* Monday, June 16, 2008 7: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
22 matches
Mail list logo