com.GameInterface.ProjectUtils

com.GameInterface.ProjectUtils
Summary
com.GameInterface.ProjectUtils
Functions
SetMovieClipMaskCreates and sets a mask for a movieclip,, matching size and position
Variables
s_ResolutionScaleMonitor
Functions
Show2DTextShows a text on the screen, behind the gui.
Remove2DText

Functions

SetMovieClipMask

public static function SetMovieClipMask(mc: MovieClip,
parent: MovieClip,
overrideHeight: Number,
overrideWidth: Number,
nomask: Boolean) : MovieClip

Creates and sets a mask for a movieclip,, matching size and position

Parameters

mc:MovieClip - the movieclip to mask
parent:MovieClip - the context, where to create the mask
nomask:Boolean - Debug, draws the clip, but does not set it as a mask

Returns

mask:Movieclip - the newly created mask;

Variables

s_ResolutionScaleMonitor

private static var s_ResolutionScaleMonitor

Functions

Show2DText

public static function Show2DText(text: String,
duration: Number,
x: Number,
y: Number,
style: Number,
align: String,
fadeIn: Number,
fadeOut: Number,
transition: String) : Number

Shows a text on the screen, behind the gui.  It will show onscreen for the duration given.  A handle is returned so you can removed before the time is up via Remove2DText.

Remove2DText

public static function Remove2DText(handle: Number)
public static function SetMovieClipMask(mc: MovieClip,
parent: MovieClip,
overrideHeight: Number,
overrideWidth: Number,
nomask: Boolean) : MovieClip
Creates and sets a mask for a movieclip,, matching size and position
private static var s_ResolutionScaleMonitor
public static function Show2DText(text: String,
duration: Number,
x: Number,
y: Number,
style: Number,
align: String,
fadeIn: Number,
fadeOut: Number,
transition: String) : Number
Shows a text on the screen, behind the gui.
public static function Remove2DText(handle: Number)
Close