|
Posted by Onideus Mad Hatter on 03/18/06 16:23
On Sat, 18 Mar 2006 13:55:21 GMT, Oli Filth <catch@olifilth.co.uk>
wrote:
>> DUM DUM DUM DUM...
>>
>> square._x = eval("dates._"+i+"._x") + 566;
>>
>> If you're trying to assign a property of a variable variable to
>> another objects property you sure as fuck need it (well in
>> Actionscript anyway).
>Except that the eval() function in Actionscript is fundamentally
>different to the eval() in say JavaScript or PHP
Oh really? Are you sure? I mean PHP I can see, but with Javascript
you can directly access CSS property paths and those properties
values. I haven't tested it, but since Actionscript and Javascript
are kind of from the same family tree so to speak it wouldn't surprise
me if it held true.
>- it can *only* be used
>to reference variables/objects via a string; it can't evaluate arbitrary
>code.
Are you saying this from experience or did you just read it somewhere?
>And the only reason you have to do it this way is because older
>versions of Flash didn't have proper arrays, etc.
Uh, I'm using SwishMax actually, not Flash and I'm exporting as
Flash8, Kiddo. And how would an array change anything...that doesn't
even make sense. The reason for the eval function in Actionscript is
if you need to switch from the object properties path (that's what I
call it, it might have some other name) to the object properties
value.
>P.S.
>As to your subject line, if you're referring to that time when you were
>attempting to justify:
>
> eval(a + b)
I wasn't attempting to justify anything. You were the one making the
claim that the eval function had absolutely no use. I was simply
stating that I thought you were full of shit on that point and that
there was a use for it (otherwise why would they have even bothered
making it). I found proof that refutes your claim and now you're all
like, "Oh wait, no wait...it's just in PHP and Javascript that it
doesn't do anything."
--
Onideus Mad Hatter
mhm ¹ x ¹
http://www.backwater-productions.net
http://www.backwater-productions.net/hatter-blog
Hatter Quotes
-------------
"I'm not a professional, I'm an artist."
"The more I learn the more I'm killing my idols."
"Is it wrong to incur and then use the hate ridden, vengeful stupidity
of complete strangers in random Usenet froups to further my art?"
"Freedom is only a concept, like race it's merely a social construct
that doesn't really exist outside of your ability to convince others
of its relevancy."
"Next time slow up a lil, then maybe you won't jump the gun and start
creamin yer panties before it's time to pop the champagne proper."
"Reality is directly proportionate to how creative you are."
"People are pretty fucking high on themselves if they think that
they're just born with a soul. *snicker*...yeah, like they're just
givin em out for free."
"Quible, quible said the Hare. Quite a lot of quibling...everywhere.
So the Hare took a long stare and decided at best, to leave the rest,
to their merry little mess."
"There's a difference between 'bad' and 'so earth shatteringly
horrible it makes the angels scream in terror as they violently rip
their heads off, their blood spraying into the faces of a thousand
sweet innocent horrified children, who will forever have the terrible
images burned into their tiny little minds'."
"How sad that you're such a poor judge of style that you can't even
properly gauge the artistic worth of your own efforts."
"Those who record history are those who control history."
"Is my .sig delimiter broken? Really? You're sure? Awww,
gee...that's too bad...for YOU!" `, )
[Back to original message]
|