![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
flash MC控制
我导入了一个影片剪辑,但是我想让这个剪辑在播放的时候停在最后一zhen,也就是不停的播放最后一zhen,该怎么弄...
我导入了一个影片剪辑,但是我想让这个剪辑在播放的时候停在最后一zhen,也就是不停的播放最后一zhen,该怎么弄
展开
2个回答
展开全部
你说的貌似很简单,在导入那个影片剪辑的最后一帧加个
stop();
就ok了,是停止在最后一帧,不是重复播放最后一帧(单帧是静态的)
还有,楼上的,what are you doing ?
stop();
就ok了,是停止在最后一帧,不是重复播放最后一帧(单帧是静态的)
还有,楼上的,what are you doing ?
![](https://ecmb.bdimg.com/kmarketingadslogo/fc48c2040562611dd976dfc267a3114a_60_60.jpg)
2023-06-12 广告
STM32是一款广泛应用于消费类电子、汽车、工业和物联网领域的低功耗嵌入式系统芯片。ST公司推出了多个STM32系列,以满足不同应用需求。以下是ST公司主要的STM32系列:1. STM32WB系列:这是ST公司推出的第一款支持2.4GHz...
点击进入详情页
本回答由意法半导体(中国)投资有限公司提供
展开全部
var stage_height=100;//范围高度
this.up=0;
this.down=0;
this.spd=5;//移动速度
this.onEnterFrame=function(){
if(this.up==1){
if(this.mc._y-this.spd<=0){
this.mc._y=0;
}else{
this.mc._y-=this.spd;
}
}
if(this.down==1){
if(this.mc._y+this.spd>=stage_height){
this.mc._y=stage_height;
}else{
this.mc._y+=this.spd;
}
}
this.b1.onRollOver=function(){
this._parent.up=1;
}
this.b1.onRollOut=function(){
this._parent.up=0;
}
this.b2.onRollOver=function(){
this._parent.down=1;
}
this.b2.onRollOut=function(){
this._parent.down=0;
}
试一试吧 把代码放在帧上
this.up=0;
this.down=0;
this.spd=5;//移动速度
this.onEnterFrame=function(){
if(this.up==1){
if(this.mc._y-this.spd<=0){
this.mc._y=0;
}else{
this.mc._y-=this.spd;
}
}
if(this.down==1){
if(this.mc._y+this.spd>=stage_height){
this.mc._y=stage_height;
}else{
this.mc._y+=this.spd;
}
}
this.b1.onRollOver=function(){
this._parent.up=1;
}
this.b1.onRollOut=function(){
this._parent.up=0;
}
this.b2.onRollOver=function(){
this._parent.down=1;
}
this.b2.onRollOut=function(){
this._parent.down=0;
}
试一试吧 把代码放在帧上
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询