idus
%Europe/Berlin %551 %2007, 13:14
Kan iemand mij uitleggen wat het "if" en "else" gedeelte in de function RollOut() gedeelte doet. ?
Dit is de script.
this.onEnterFrame = function(){
if(RollOut()){
//this.gotoAndStop(1);
this.prevFrame();
//if(this._currentframe == 1) delete this.onEnterFrame;
}else{
//this.gotoAndStop(2);
this.nextFrame();
//delete this.onEnterFrame;
}
}
function RollOut():Boolean{
if(this.hitTest(_root._xmouse, _root._ymouse, true)){
return false;
}else{
return true;
}
}
stop();
gr,
Idus
Dit is de script.
this.onEnterFrame = function(){
if(RollOut()){
//this.gotoAndStop(1);
this.prevFrame();
//if(this._currentframe == 1) delete this.onEnterFrame;
}else{
//this.gotoAndStop(2);
this.nextFrame();
//delete this.onEnterFrame;
}
}
function RollOut():Boolean{
if(this.hitTest(_root._xmouse, _root._ymouse, true)){
return false;
}else{
return true;
}
}
stop();
gr,
Idus