Packagegs.util
Classpublic class FrameUtils

The FrameUtils class contains utilities for movie clip frames.

Examples are in the guttershark repository.



Public Methods
 MethodDefined by
  
addFrameScript(target:MovieClip, frame:Function, callback:*):Boolean
[static] Adds a frame script to a clip.
FrameUtils
  
getFrameNumberForLabel(target:MovieClip, label:String):int
[static] Returns the frame number of a label.
FrameUtils
  
removeFrameScript(target:MovieClip, frame:*):void
[static] Remove a frame script from a clip.
FrameUtils
Method detail
addFrameScript()method
public static function addFrameScript(target:MovieClip, frame:Function, callback:*):Boolean

Adds a frame script to a clip.

Parameters
target:MovieClip — The movie clip.
 
frame:Function — A frame number or frame label.
 
callback:* — A function callback.

Returns
Boolean
getFrameNumberForLabel()method 
public static function getFrameNumberForLabel(target:MovieClip, label:String):int

Returns the frame number of a label.

Parameters
target:MovieClip — The movie clip.
 
label:String — The frame label.

Returns
int
removeFrameScript()method 
public static function removeFrameScript(target:MovieClip, frame:*):void

Remove a frame script from a clip.

Parameters
target:MovieClip — The movie clip.
 
frame:* — A frame number or frame label.