On 13/11/2010 16:44, Cor wrote:
OK, I think I figured it out.function findIndex (psdArray:Array, psdButton:Object, psdLevel:uint):void { for (var i:uint=0; i< psdArray[psdLevel].length; ++i){ var curBtn:uint = psdArray.indexOf(psdButton); if(curBtn == -1){ ++psdLevel; //recursie findIndex (psdArray[psdLevel], psdButton, psdLevel); } } trace(psdArray[psdLevel], psdButton, psdLevel); }
LOL, that's ten minutes of my life wasted because you didn't try before asking...
Regards Cor
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

