Search tutorials
Using the array
Ok, so now you have an array with variables. How do use this? You need to use a for loop.
for(k in Array1){
Array1[k].somevariable-=1
if(Array1[k].somevariable<1){
trace("Hallelujah!")
}
Array1[k].x+=5
this[Array1[k].clip]._x=Array1[k].x
Note the code for calling on the clip is different than the variables.
| » Level Intermediate |
|
Added: 2006-05-09 Rating: 2 Votes: 8 |
| » Author |
| Cornyanimation is about to post his first major flash project, and is learning javascript. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!