flash as3,代码,鼠标点击跳转帧
package{importflash.display.MovieClip;importflash.events.MouseEventpublicclass前后连接ext...
package {
import flash.display.MovieClip;
import flash.events.MouseEvent
public class 前后连接 extends MovieClip {
public function 前后连接() {
// constructor code
last1.addEventListener(MouseEvent.CLICK,clicking1)
next1.addEventListener(MouseEvent.CLICK,clicking2)
quit1.addEventListener(MouseEvent.CLICK,clicking3)
public function clicking1(event:MouseEvent) {
gotoAndPlay(prevFrame)
}
private function clicking2(event:MouseEvent) {
gotoAndPlay(nextFrame)
}
protected function clicking3(event:MouseEvent) {
gotoAndPlay(2)
}
}
}
}
帮忙改一下错 展开
import flash.display.MovieClip;
import flash.events.MouseEvent
public class 前后连接 extends MovieClip {
public function 前后连接() {
// constructor code
last1.addEventListener(MouseEvent.CLICK,clicking1)
next1.addEventListener(MouseEvent.CLICK,clicking2)
quit1.addEventListener(MouseEvent.CLICK,clicking3)
public function clicking1(event:MouseEvent) {
gotoAndPlay(prevFrame)
}
private function clicking2(event:MouseEvent) {
gotoAndPlay(nextFrame)
}
protected function clicking3(event:MouseEvent) {
gotoAndPlay(2)
}
}
}
}
帮忙改一下错 展开
2个回答
展开全部
你这样,下一贞的按钮不会响应的,用addFrameScript试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class 前后连接 extends MovieClip {
public function 前后连接() {
// constructor code
last1.addEventListener(MouseEvent.CLICK,clicking1);
next1.addEventListener(MouseEvent.CLICK,clicking2);
quit1.addEventListener(MouseEvent.CLICK,clicking3);
}//你的少了这个
public function clicking1(event:MouseEvent) {
gotoAndPlay(prevFrame);
}
private function clicking2(event:MouseEvent) {
gotoAndPlay(nextFrame);
}
protected function clicking3(event:MouseEvent) {
gotoAndPlay(2);
}
}
}
//最后多了个{,已经去掉
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class 前后连接 extends MovieClip {
public function 前后连接() {
// constructor code
last1.addEventListener(MouseEvent.CLICK,clicking1);
next1.addEventListener(MouseEvent.CLICK,clicking2);
quit1.addEventListener(MouseEvent.CLICK,clicking3);
}//你的少了这个
public function clicking1(event:MouseEvent) {
gotoAndPlay(prevFrame);
}
private function clicking2(event:MouseEvent) {
gotoAndPlay(nextFrame);
}
protected function clicking3(event:MouseEvent) {
gotoAndPlay(2);
}
}
}
//最后多了个{,已经去掉
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询