director常用命令.txt台湾一日不收复,我一日不过4级!如果太阳不出来了,我就不去上班了;如果出来了,我就继续睡觉!.
director
常用命令集 标签: 电影 播放 nbsp 图片 画面 分类: director(lingo) 2006-10-28 08:50
光标效果
on mouseUp me
cursor 280
go to
end
On mousewithin
cursor 280
end
On mouseleave
cursor 0
end
打印 printStage(精灵脚本)
分别是1.7 和1.6版本的
注册代码(电影脚本)
on startmovie
register xtra"printomatic","PMAT170-923-38748"
end startmovie
on startmovie
register xtra"printomatic","pmat156-239-45411"
end startmovie
打开
文档 (精灵脚本) baOpenFile(the moviepath&;"aa.doc","minimize")
on startmovie
baRegister("DiABLO [ORiON]",3157792 )
end startmovie
电影脚本
通道隐藏显现效果
on mouseUp me
cursor 280
go to 11
end
On mousewithin
cursor 280
Sprite(14).visible=true
end
On mouseleave
cursor 0
Sprite(14).visible=false
end
附:
on beginsprite me
sprite(me.spritenum).visible=false
end beginsprite
在 director 的 exe , 如何解除 esc 功能鍵
on startmovie me
set the exitLock to TRUE
end
关于电影窗口最小化: appMinimize
打开文件
1.当打开应用程序的时候,格式类如:Open+空格+程序路径
*当目标程序和director项目文件在同级目录下的时候,我们可直接简写项目文件的名称
2.当打开一个非可执行文件的时候,就必须指明运行这个非可执行文件的应用
程序。格式类如:Open +空格+文件路径+with+应用程序路径
如:Open “C:\Abc.doc” with "D:\Program Files\Microsoft Office\Office\WINWORD.EXE"
怎样让avi文件播完之后自动跳转到另一个dir文件?
多数情况下AVI都是有声音的,这样你就可以通过判断声道是否忙来间接判断AVI文件播放完了没有!(加在视频文件上)
判断当前播放的时间与AVI文件的长度,以决定跳转与否,X为AVI通道号
on exitFrame me
if the movietime of sprite X < the duration of (the member of sprite X) then
go to the frame
else
GOTO*****
end if
如何让光盘放入光驱后自动启动光盘中的程序文件?
制作一个包含以下内容的inf文件,文件名为autorun.inf
[autorun]
open=file.exe
icon=icon.ico
更改file使之与你制作的exe名称一样,也可加上路径如
open=program\file.exe
常用命令
1 输入 alert "00000" 然后直接回车.一个弹出窗口就做好了
2 打开5dmedia的首页.在Message窗口中输入 gotoNetPage "5dmedia" 然后回车,
3 Quit --退出Directorrestart --重启动机器shutDown --关机
4
On exitframe me --当退出帧的时候
go the frame --停止在这帧画面上
end --该段程序结束
9 On mousedown (鼠标按下)on mouseUp(鼠标抬起)On mouseleave(鼠标离开) On mousewithin(鼠标在对象内)
10 On startMovie --电影一开始
11 On enterFrame --当播放头进入一帧
12 On beginsprite--第一次播放这个sprite的时候
13 On keydown --当键盘按下键的时候
14 on enterframe --当播放头进入该帧的时候
15 on exitframe --当播放头移处该帧的时候
16 On startmovie 电影开始的时候
17 On StopMovie. 电影结束的时候
18 go frame 20,播放头跳到第20帧
19 go the frame --播放头停在某个画面
20 go "标记" --跳到某个有标记的画面go “ok”
21 go movie "hello" 跳转到名字叫hello的电影中
22 go <帧数> of movie <电影名字> --跳转到另外一个电影的某个画面
23 go <标记> of movie <电影名字> --跳转到另外一个电影的某个标记
24 play frame 20, 播放头跳到第20帧
25 play the frame - -播放头停在某个画面
26 play <标记> --跳到某个有标记的画面
27 go movie "hello" 跳转到名字叫hello的电影中
28 play done --跳回上一次play的地方.比如在20帧执行了play 30.在30帧执行play done就会跳回20帧
40 sprite(1).rotation=sprite(1