Re: [flexcoders] Re: string to actual actionscript code?

2008-06-20 Thread David Pariente
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-20 Thread David Pariente
: 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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-20 Thread dev
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-20 Thread Josh McDonald
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-20 Thread dev
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]

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread David Pariente
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Josh McDonald
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread David Pariente
: 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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Joseph Balderson
] 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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Josh McDonald
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

RE: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Tracy Spratt
@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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Josh McDonald
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Josh McDonald
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Joseph Balderson
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

RE: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Gordon Smith
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-19 Thread Joseph Balderson
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread Michael Schmalle
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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread Scott Melby
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) {

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread David Pariente
: 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

RE: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread Gordon Smith
@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

RE: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread Tracy Spratt
: 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

Re: [flexcoders] Re: string to actual actionscript code?

2008-06-16 Thread Josh McDonald
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