|
主题: 关于DIRECTMEDIAXTRA?
|
 tangwei007
职务:普通成员
等级:1
金币:0.0
发贴:34
|
#12002/9/13 12:00:37
如何控制视频的播放和暂停? 不要用他自带的工具!
|
 我是小马
职务:普通成员
等级:3
金币:17.0
发贴:794
|
#22002/9/13 20:17:33
在DirectMedia Xtra的帮助文件中已经说得很详细了,而且在其例子中也有现成的代码
on DoControl me case ( the VideoCommand of me ) of: #Play: videoplay(sprite the videoSprite of me) #Pause: videopause(sprite the videoSprite of me) #Rewind: videoseek(sprite the videoSprite of me, the segmentstart of sprite the videoSprite of me) #StepForward: videopause(sprite the videoSprite of me) videoseek(sprite the videoSprite of me, the currenttime of sprite the videoSprite of me+30) #StepBackward: videopause(sprite the videoSprite of me) videoseek(sprite the videoSprite of me, the currenttime of sprite the videoSprite of me-30) #Seek: videoseek(sprite the videoSprite of me, the param1 of me) #PlaySegment: videoplaysegment(sprite the videoSprite of me, the param1 of me, the param2 of me) end case end
|
 tangwei007
职务:普通成员
等级:1
金币:0.0
发贴:34
|
#32002/9/15 19:40:24
多谢,我想用一个按扭控制可以吗?
|
 zsjjh
职务:普通成员
等级:1
金币:0.0
发贴:10
|
#42002/9/19 11:22:20
上面这段代码放在哪儿?
|
 tangwei007
职务:普通成员
等级:1
金币:0.0
发贴:34
|
#52002/9/19 14:02:52
可以用按钮控制 ---播放 on mouseup me videoplay(sprite x) end ----暂停 on mouseup me videopause(sprite x) end
|
 zsjjh
职务:普通成员
等级:1
金币:0.0
发贴:10
|
#62002/9/20 11:28:14
请问sprite x中的X要填什么?
|
 玉制小人
职务:普通成员
等级:1
金币:1.0
发贴:205
|
#72002/9/21 8:17:40
x是指你的视频的名称啊!题上去就可以了,呵呵。
|
 玉制小人
职务:普通成员
等级:1
金币:1.0
发贴:205
|
#82002/9/21 8:41:01
不过也可以用behavior特效动画
|