hitTest - goto target
Hey,
I seem to be going ova and ova this code trying to make it work in every situation. ![]()
I am trying to get the hit test on 8 targets to goto different frame labels.
Is there a way to set up a target name for each hit test?
//---Array_Chars---//
char.push(lal);
char.push(zim);
char.push(binx);
char.push(jiji);
char.push(dink);
char.push(oli);
char.push(kami);
char.push(alf);
stage.addEventListener(MouseEvent.MOUSE_MOVE,charMove);
function charMove(evt:MouseEvent)
{
addEventListener(Event.ENTER_FRAME, checkcharCollision);
}
function checkcharCollision(event:Event)
{
for (var i:uint=0; i<char.length; i++)
{
if (char.hitTestObject(cur))
{
target code here?
}
}
return;
}
any help or suggestions r welcome
thx pavel