|
主题: 版主,help me!!!
|
 sunangel_5d
职务:普通成员
等级:1
金币:0.0
发贴:85
注册:2002/8/6 12:47:45
|
#12002/8/23 11:49:24
版主,help me!!! 我现在遇到了这样一个问题,就是在D中,我用ActiveX中的WindowsMediaPlayer播放mpg(不让我用QT),例子具体如下: 1.打开一个新的电影; 2.加入ActiveX中的WindowsMediaPlayer(角色表的第一个); 3.将其放在排编表的第一个通道,并让它(go to the frame),加入行为 on beginsprite me sprite(me.spritenum).open("mpg文件路径") end 这样不行 on exitframe me sprite(me.spritenum).open("mpg文件路径") end 这样也不行 4.加入按钮,并加入行为 on mouseup sprite(1).open("mpg文件路径") end 这样它行 但是我将3中的改为 on beginsprite me sendallsprites(#mouseup) end 它还是不能激发它播放 请问版主,我怎样能让使其自身激发播放,而不需要使用其它精灵的鼠标事件激发!
|
 moueiki
职务:普通成员
等级:1
金币:0.0
发贴:44
注册:2002/3/22 9:38:10
|
#22002/8/23 13:18:29
为何不用DirectMediaXtra插件来控制?
|
 sunangel_5d
职务:普通成员
等级:1
金币:0.0
发贴:85
注册:2002/8/6 12:47:45
|
#32002/8/23 15:48:58
要花银子买的,要不人家要告你的!
|
 luvxf
职务:普通成员
等级:1
金币:0.0
发贴:11
注册:2000/12/18 20:27:35
|
#42002/8/24 5:16:06
open the properties of that ActiveX cast member. there should be a property to control playing automatically of the video.
|
 sunangel_5d
职务:普通成员
等级:1
金币:0.0
发贴:85
注册:2002/8/6 12:47:45
|
#52002/8/26 13:24:07
luvxf说的是windowsmediaplayer吧,我试过,但有一点不好的就是刚装载时白屏!!!
|
 我是小马
职务:普通成员
等级:3
金币:17.0
发贴:794
注册:2000/11/13 14:56:59
|
#62002/8/26 22:11:53
on exitFrame me sprite(gVideoSpriteNum).filename = the moviepath & "1.mpg" --播放影片目录下数字电影1.mpg end
播放视频: on mouseup me sprite(gVideoSpriteNum).play() end 暂停: on mouseup me sprite(gVideoSpriteNum).pause() end 全屏: on mouseup me sprite(gVideoSpriteNum).DisplaySize = 3 end 停止播放: on mouseup me sprite(gVideoSpriteNum).stop() end
gVideoSpriteNum为ActiveX控件所在的通道号
|