|
控制 Flash Player 的 JavaScript 方法一覽表【收集糾正】 |
|
播放動畫:Play() 例:(網頁中的 Flash id).Play(); 停止動畫:StopPlay() 動畫是否正在播放:IsPlaying() 跳轉到某幀:GotoFrame(frame_number) 獲取動畫總幀數:TotalFrames() 回傳當前動畫所在幀數:CurrentFrame() 使動畫返回第一幀:Rewind() 放大指定區域:SetZoomRect(left,top,right,buttom) 改變動畫大小:Zoom(percent) 使動畫在 x,y 方向上平移:Pan(x_position,y_position,unit) 返回動畫被載入的百分比:PercentLoaded() 加載動畫:LoadMovie(level_number,path) 例:(網頁中的 Flash id).LoadMovie(0, "***/***.swf"); movie_clip 跳轉到指定幀數:TGotoFrame(movie_clip,frame_number) 例:(網頁中的 Flash id).TGotoFrame("_root.實例名.次實例名",幀數); movie_clip 跳轉到指定標籤:TGotoLabel(movie_clip,label_name) 例:(網頁中的 Flash id).TGotoLabel("_root.實例名.次實例名","標籤名"); 回傳 movie_clip 當前幀:TCurrentFrame(movie_clip) 回傳 movie_clip 當前標籤:TCurrentLabel(movie_clip) 播放 movie_clip:TPlay(movie_clip) 停止 movie_clip 的播放:TStopPlay(movie_clip) 獲取變量:GetVariable(variable_name) 變量賦值:SetVariable(variable_name,value) call 指定幀上的 action:TCallFrame(movie_clip,frame_number) call 指定標籤上的 action:TCallLabel(movie_clip,label) 獲取 movie_clip 的指定屬性:TGetProperty(movie_clip,property) 設置 movie_clip 的指定屬性:TSetProperty(movie_clip,property,number) |
|
|