OZONE Asylum
Forums
Multimedia/Animation
Multi-Dimensional Arrays in AS
This page's ID:
22525
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
:confused: I've never coded an ActionScript myself, but I'm I thought the syntax for multi-dimensionnal arrays in AS was the same as in JS, C, C++, ... that is :[code]node = point_set[ [], [] ] for (j=0; j<height; j++) { for (i=0; i<width; i++) { node = point_set[[i],[j]]; // rest of the function... } }[/code]Are you sure, that the fact that you can access the last 5 items is not due to the fact that Flash allows the use of a "bastardized" syntax that actually only let you access the first item ( sub-array ) of the first dimension of your array ? Just my 0.02? [url=http://www.p01.org/] [img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »