Why do you write : Create3D.getChildIndex(object) and not :Create3D.getChildIndex(objectIndex)? If I get your code correctly the objectIndex is the nested object of the Create3D? What is "object"? Where it comes from ? Check your code better it seems you have got some variables targeting inconsistency .
On Mon, Apr 5, 2010 at 5:54 AM, Evandro Eisinger <[email protected]>wrote: > Hello Guys! > I have a very annoying problem. I want to get the index value of > object3d (Cube), when i roll over that. But i can't do it! > The object's are inside of a conteiner3D. > > That's my code: > > public static function start():void { > //CUBOS > Create3D.cube1.addOnMouseOver(indexValue); > Create3D.cube2.addOnMouseOver(indexValue); > Create3D.cube3.addOnMouseOver(indexValue); > } > > public static function indexValue(evento:MouseEvent3D):void > { > var objectIndex:Object3D = evento.object; > trace(Create3D.getChildIndex(object)); > } > > ... > > Please help me! > > Thx a lot guys! > > > -- > To unsubscribe, reply using "remove me" as the subject. > -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com Tel:054-4962254 [email protected] [email protected] skype:sasmaster1980
