Finding an object's position in an array in actionscript
Posted
by Comma
on Stack Overflow
See other posts from Stack Overflow
or by Comma
Published on 2010-06-09T00:17:20Z
Indexed on
2010/06/09
0:22 UTC
Read the original article
Hit count: 543
actionscript-3
var array1:Array = new Array();
var array2:Array = new Array();
var obj1:Object = new Object();
array1.push(obj1);
array2.push(obj1);
How can I do this what command should I use? //obj1's position in array1 //result: 0 //obj1's position in array2 //result: 0
© Stack Overflow or respective owner