com.GameInterface.Utils

com.GameInterface.Utils
Summary
com.GameInterface.Utils
Functions
ParseHTMLColor
ParseHTMLFont
ParseHTMLFontFinal
CreateResourceString
SetupHtmlHyperLinks
TruncateTextShortens the mission name if it does not fit inside the window, then appends an ellipsis to the mission name to visually indicate to the user that more text is available.
TruncateHTMLText
CreateHTMLString

Functions

ParseHTMLColor

public static function ParseHTMLColor(name: String):flash.geom.ColorTransform

ParseHTMLFont

public static function ParseHTMLFont(name: String):Object

ParseHTMLFontFinal

public static function ParseHTMLFontFinal(name: String):HTMLFont

CreateResourceString

public static function CreateResourceString(resourceId: com.Utils.ID32):String

SetupHtmlHyperLinks

public static function SetupHtmlHyperLinks(htmlText: String,
hyperLinkFunction: String,
addFormat: Boolean):String

TruncateText

public static function TruncateText(textField: TextField):Void

Shortens the mission name if it does not fit inside the window, then appends an ellipsis to the mission name to visually indicate to the user that more text is available.

Parameters

textField- the textfield to truncate, does only work on textfields where autoSize = true Example: “This is my text” could become “this is m...”.

TruncateHTMLText

public static function TruncateHTMLText(textField: TextField) : Void

CreateHTMLString

public static function CreateHTMLString(text: String,
parameters: Object)
public static function ParseHTMLColor(name: String):flash.geom.ColorTransform
public static function ParseHTMLFont(name: String):Object
public static function ParseHTMLFontFinal(name: String):HTMLFont
public static function CreateResourceString(resourceId: com.Utils.ID32):String
public static function SetupHtmlHyperLinks(htmlText: String,
hyperLinkFunction: String,
addFormat: Boolean):String
public static function TruncateText(textField: TextField):Void
Shortens the mission name if it does not fit inside the window, then appends an ellipsis to the mission name to visually indicate to the user that more text is available.
public static function TruncateHTMLText(textField: TextField) : Void
public static function CreateHTMLString(text: String,
parameters: Object)
Close