Reply to Re: Remember When Some Of You Retards Were Saying The Eval Function Doesn't Do Anything...

Your name:

Reply:


Posted by Michael Winter on 03/18/06 21:45

On 18/03/2006 12:59, Onideus Mad Hatter wrote:

[Subject:]
> Remember When Some Of You Retards Were Saying The Eval Function
> Doesn't Do Anything...

No-one wrote that, but it's not a surprise that you came to such a
ridiculous conclusion.

> DUM DUM DUM DUM...
>
> square._x = eval("dates._"+i+"._x") + 566;

Before we begin, I'd like to note that I can't comment with certainty on
ActionScript as I'm not in a position to test the expression below.
However, Macromedia's documentation[1] indicates support.

square._x = dates['_' + i]._x + 566;

Really, this should be pretty obvious as ActionScript is supposed to be
an implementation of ECMAScript.

> 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).

No, you don't.

Perhaps you should try learning the languages you want to use. It would
certainly seem wise to do so before slinging words like 'retard' around.

Try starting with the ActionScript documentation for array access[2]
(see usage 5) and the notes on square bracket notation[3] from the
comp.lang.javascript FAQ.

[snip]

Mike


[1] Macromedia ActionScript Dictionary
<http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/index.html>
[2] ActionScript Dictionary : [] (array access)
<http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary026.html>
[3] Javascript Square Bracket Notation, c.l.javascript FAQ Notes
<http://www.jibbering.com/faq/faq_notes/square_brackets.html>

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация