No, that isn't how it is used at all. Put this code in your main timeline:
And put this in your button:PHP Code:_root.clicked = false;
_root.onEnterFrame = function(){
if(_root.clicked){
if(button._currentframe == button._totalframes){
gotoAndPlay("Homepage", 1);
}
}
}
This is assuming your button is named button. Change the line:PHP Code:on(release){
_root.clicked = true;
}
So your button instance name is there instead of the word button. That code will work provided the blur is done with frames and not with AS.PHP Code:if(button._currentframe == button._totalframes){




Reply With Quote
