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
If you want to find the object position in the array stack,
You can use
indexOfhttp://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/Array.html#indexOf()
For proof of concept