A question about conditional if
Hi guys
I have a function that checks if something is happening before keep on going...
Now, my question is, if I want it to check 3 conditions, instead of one only, how do I have to code it?
Here is what I have:
function hRelease(event:MouseEvent):void {
var item5:MovieClip=letritaH(event.target);
item5.stopDrag();
if (targeth.hitTestPoint(item5.x,item5.y)) {
item5.x=targeth.x;
item5.y=targeth.y;
myTween.stop();
addChild (flecha2);
var t1:Timer=new Timer(1000,1);
t1.addEventListener(TimerEvent.TIMER,removeFl);
t1.start();
function removeFl(e:TimerEvent):void{
if (flecha2.parent) {
flecha2.parent.removeChild(flecha2);}
}
} else {
item5.x=276;
item5.y=(stage.stageHeight - 100);
}
}
and what I want to do is: before the "myTween.stop();" I want it to check if i.x=273, letrao.x=447, and letral.x=575,50
Thanks once again for all your help