-
sortOn with arrays
Hey all quick question ... say I've got an array called activeArray
I've pushed various movieclips to the array and used sort to sort the array A-Z
If I now wanted to loop through the array and check if a property attached to each movieclip ... let's say that each movieclip looks something like player1.isOnline = true ... how would I loop through the array and bring the movieclips with the isOnline property = true to the front?
I'm guessing I need to use sortOn? Oh and I've already removed any duplicate movieclips so I need to avoid adding anymore duplicates
-
could you able to show some of your code?
poltuda
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|