well... so far this project ranks the highest for frustration. My buttons work fine, aside from the fact that they do nothing. The different button states all work just fine, even with the nested movie clip and the sound on the red button, but try as I might, I could not get the actionscript to work for either of the buttons. The syntax contained no errors when I ran it, but it didn't do anything either. I even tried just copying and pasting directly from the tutorial site on the project instruction sheet and still got no results. This is what my ActionScript looked like:
stop();
stopBtn.addEventListener(MouseEvent.CLICK, onStopClick);
playBtn.addEventListener(MouseEvent.CLICK, onPlayClick);
gotoPlayBtn.addEventListener(MouseEvent.CLICK, onGotoPlayClick);
gotoStopBtn.addEventListener(MouseEvent.CLICK, onGotoStopClick);
function onStopClick(evt:MouseEvent):void {
stop();
}
function onPlayClick(evt:MouseEvent):void {
gotoAndStop( 1 );
play();
}
function onGotoPlayClick(evt:MouseEvent):void {
gotoAndPlay("start");
}
function onGotoStopClick(evt:MouseEvent):void {
gotoAndStop("start");
}
If anybody has any suggestions I would love to hear them. Anyways... below is my video if you want to see how the buttons work.
Watch Video
Friday, March 5, 2010
Subscribe to:
Post Comments (Atom)
sean, I am having the same problem. I think it is because I am trying to stop an IK animation. I think it works better if you create a mew motion tween and use the button to stop it.
ReplyDelete