主题:  一个关于将flash调入dir中后的问题

沧浪

职务:普通成员
等级:1
金币:0.0
发贴:61
注册:2001/10/23 17:15:46
#12002/4/23 21:36:11
将flash调入dir8.5后若想播完后再往下走,就必须将它拖拽到足够长的贞数才行吗?
若是的话,一个10秒的动画岂不是要280贞才行?
有别的办法吗?



bluebox

职务:普通成员
等级:1
金币:1.0
发贴:290
注册:2001/7/27 21:42:33
#22002/4/24 0:32:19
你可以在director当前帧加个“go the frame”的命令让当前帧停止,flash就会一直播下去,在flash最后一帧加个跳转"geturl:lingo:go to frame xx";或者你做一个flash检测,当检测到flash播放的哪个地方时,就跳转



5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
注册:2000/11/14 12:10:50
#32002/4/24 9:30:08
有三种方法可以做到这一点:
一、在flash里用geturl:lingo:go to frame xx 或 geturl:lingo:go to marker xx, 控制你的跳转,在director当前帧加个“go the frame”的命令让当前帧停止。

二、在 director里控制,判断是否在播放

on exitFrame me

if sprite(1).playing then ----sprite(1)为你放flash的通道,
go the frame
else
if the mouseDown then go the frame+1
go the frame+1
end if
end

三判断flash的总帧数

on exitFrame
if sprite(1).frame < sprite(1).member.frameCount then
go to the frame
else
go to the frame+1
end if
end


閑闪互动多媒体

沧浪

职务:普通成员
等级:1
金币:0.0
发贴:61
注册:2001/10/23 17:15:46
#42002/4/24 21:28:52
多谢了



bluebox

职务:普通成员
等级:1
金币:1.0
发贴:290
注册:2001/7/27 21:42:33
#52002/4/24 22:49:28
snowypeng在上个帖子中说
引用:
有三种方法可以做到这一点:
一、在flash里用geturl:lingo:go to frame xx 或 geturl:lingo:go to marker xx, 控制你的跳转,在director当前帧加个“go the frame”的命令让当前帧停止。

二、在 director里控制,判断是否在播放

on exitFrame me

if sprite(1).playing then ----sprite(1)为你放flash的通道,
go the frame
else
if the mouseDown then go the frame+1
go the frame+1
end if
end

三判断flash的总帧数

on exitFrame
if sprite(1).frame < sprite(1).member.frameCount then
go to the frame
else
go to the frame+1
end if
end



跟偶的差不多一样,也得谢谢偶,毕竟偶是第一个回答问题的,呵呵



5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
注册:2000/11/14 12:10:50
#62002/4/25 10:30:45
哈哈,客气了,


閑闪互动多媒体

满眼金星

职务:普通成员
等级:2
金币:1.0
发贴:441
注册:2000/12/15 21:17:37
#72002/4/29 20:14:33
判断flash是在playing如果是 go to the frame
如果动画在组件中,这个方法好像不管用,他只按判断flash的长度,判断是否播完

编辑历史:[这消息被满眼金星编辑过(编辑时间2002-04-29 20:14:57)]
[这消息被满眼金星编辑过(编辑时间2002-04-29 20:28:28)]