  | | | RE: AS 2.0 optimising.. | RE: AS 2.0 optimising.. 2004-03-16 - By ryanm
Back > so, what am i missing? because it seems to me that arrays are sort of > useless... > Well... yeah. The *AS implementation* of arrays are kind of useless if you know how to do it with objects instead. Like someone else said, they compile to the same bytecode as an object; they're just objects with some extra properties and methods. So, even though I said an array should be faster in a single lookup, even faster would be to use an object with an integer as an index. But then it is essentially an array from an AS perspective, since they're functionally the same.
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107120 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |