主题:  用D控制flash的快进问题

mike6996

职务:普通成员
等级:1
金币:0.0
发贴:5
#12004/2/12 10:30:13
用D控制flash的swf文件快进用了这个命令:
nowPos=sprite(x).Frame
sprite(x).goToFrame(nowPos+1)
但在快进中swf是循环的,能不能让swf文件在快进后停在最后一帧??



我就是我

职务:版主
等级:6
金币:14.0
发贴:5466
#22004/2/13 15:21:41
加上一个判断,判断flash是否到了结尾
on exitFrame
if sprite(X).frame < sprite(X).member.frameCount then
go to the frame
end if
end



bluesprite_5d

职务:普通成员
等级:1
金币:0.0
发贴:5
#32004/2/17 18:42:13
on mousedown me
nowPos=sprite(x).Frame
sprite(x).goToFrame(nowPos+1)
end

作用在一个Director 自带的button上来控制通道sprite(x)上的flash,为什么不可以实现。
但是用on mouseenter 或者 on movewithin 都可以,为什么?



大烧卖

职务:普通成员
等级:1
金币:0.0
发贴:73
#42004/2/18 9:47:24
在我这里没有问题啊?
是不是你想要按下不放时一直向前快进??

那么只响应一次的 mouseDown 事件并不合适,更改成为如下脚本可以的:
on exitFrame me
if the mouseDown then
nowPos = sprite(x).frame
sprite(x).gotoFrame(nowPos + 1)
end if
end



bluesprite_5d

职务:普通成员
等级:1
金币:0.0
发贴:5
#52004/2/18 10:35:51
Thanks

难道我的软件有问题?

我的意思是作用在director自带的button上不可以实现 On MouseDown Me,但是用外部导入的按纽就可以上面的Lingo脚本。可以实现On MouseDown Me。

是不是存在冲突,需要如何设置才可以。



大烧卖

职务:普通成员
等级:1
金币:0.0
发贴:73
#62004/2/18 14:01:59
可能是冲突吧,我也是用的 Director MX 自己的按钮,你看看在你的按钮上是否重叠了其他脚本??