hello
trouble with gotoandplay and roll out functions
basically i have an after effects movieclip (followed a tutorial) that i have made into a button.
it works ok on rollover and rollout i use tweener which works a treat and when i click it goes to another frame and plays a small sequence of smoke exploding.
problem:
its a look problem really. when i rollout of the smoke click sequence it tweens back to frame 0 as per my rollover / rollout instructions
IS there a way for me to have the click smoke sequence play all the way through before going back to frame on my rollout ?
would an if statement help perhaps ?
here is code im using
Code:
import caurina.transitions.*;
import caurina.transitions.properties.DisplayShortcuts;
DisplayShortcuts.init();
butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);
butt.addEventListener(MouseEvent.ROLL_OUT, butt_ROLLOUT);
butt.addEventListener(MouseEvent.CLICK, butt_CLICK);
function butt_ROLLOVER(event:MouseEvent):void {
Tweener.addTween(home_button, {_frame:29, time:0.3, transition:“linear”});
}
function butt_ROLLOUT(event:MouseEvent):void {
Tweener.addTween(home_button, {_frame:0, time:0.8, transition:“easeInOutCubic”});
}
function butt_CLICK(event:MouseEvent) {
home_button.gotoAndPlay(“129”);
var request:URLRequest = new URLRequest(“http://someweb.com”);
navigateToURL(request);
}