外部调用swf on (release) { loadMovieNum("service.swf", 1); } 外部调用数据 loadVariablesNum("about.txt", 0); System.useCodepage = true;//中文 音乐加入 mySound = new Sound(); mySound.attachSound("1"); mySound.start(); 关闭指定音乐 mySound.stop("1"); 外部调用音乐 mySound=new Sound(); mySound.loadSound("music.mp3",true); mySound.start(0,100) 关闭音乐 mySound.stop(); 链接场景: on (release) { gotoAndStop("猫的历史",1); } 外部调用 on (release) { loadmovienum("a.swf",1) } 清空文本框 _root.text="" On(Release) Set Variable:"input" = "" Set Variable:"output" = "" End On 轻松实现Flash的全屏播放 许多人都看过这样的效果:把光盘放入光驱后,光盘自动运行,接着便是一段Flash制作的开场动画,动画是全屏播放的,且右键点击无效,动画播放结束后,出现“关闭”按钮,单击该按钮后,全屏动画关闭。 其实上面提到的全屏播放以及取消右键菜单等效果都是靠Fscommand指令在发挥作用。 Fscommand指令主要是用来控制Flash影片播放器的,但也可以用来打开其它的应用程序。 Fscommand指令只有在Flash影片播放器执行时才有效(.swf和.exe),在Flash制作过程中 ,按“Ctrl+Enter”预览动画,以及把动画发布成网页文件时,此指令无法发挥它的功能 。 Fscommand指令使用的语法是:Fscommand("command","arguments") Command是指令的相关命令,arguments是命令的参数。 了解更多进入adobe之家 http://www./flash/ |
|