Flash常用ActionScript控制语句基本用法

http://tech.ddvip.com   2007年01月04日    社区交流

本文详细介绍Flash常用ActionScript控制语句基本用法

  很多朋友经常询问关于Flash的ActionScript脚本语句的用法,有些很简单的命令就能实现某种功能,现在我就把一些Flash的常用Action语句的基本用法讲解一下。

  1、Goto:跳到一个指定的帧(Frame)

  Scene: 指定 Scene

  Frame:Number,Label,Expression,Next Frame,Previous Frame 可以选择 Frame 的编号,标号,通过表达式,下一帧,前一帧

  Expression: 定义表达式

  Control:Go to and Play,Go to and Stop 通过选择这个项目来确定到达指定的帧以后是继续播放还是停止

  例子:

  Go to and Play (1) 跳到第一帧播放

  Go to Next Frame 跳到下一帧播放

  Go to and Stop ("intro") 跳到标号为 intro 的帧播

  2、Play:播放

  Stop:停止

  Toggle High Quality:切换画面的细节程度

  Stop All Sounds:停止所有声音

  Get URL:打开指定的网址

  URL: 网址

  Windows:_self,_blank,_parent,_top 打开网址时使用的目标

  Variables on’t Send,Send use GET,Send use POST 变量的传递方式

  例子:

  Get URL ("next.asp", window="_blank", vars=POST) 在新窗口中打开 next.asp,并且传递参数

  3、FScommand:调用命令

  Command: 命令

  Arguments: 参数

  For standalone player:fullscreen,allowscale,showmenu,exec,quit 播放器使用的固定命令和参数

  例子:

  FS Command ("fullscreen", "true") 设置全屏幕播放

  4、Load/Unload Movie: 调入/释放外部的影片

来源:火星时代    作者:暗媚冷月    责编:豆豆技术应用

正在加载评论...