| Package | jp.nium.utils |
| Class | public final class StageUtil |
| Inheritance | StageUtil Object |
| Method | Defined By | ||
|---|---|---|---|
getDocument(stage:Stage):Sprite [static]
SWF ファイル書き出し時にドキュメントとして設定されたクラスを返します。
Returns the class that set as document when writing the SWF file.
| StageUtil | ||
getMarginLeft(stage:Stage):Number [static]
ステージの左マージンを取得します。
Get the left margin of the stage.
| StageUtil | ||
getMarginTop(stage:Stage):Number [static]
ステージの上マージンを取得します。
Get the top margin of the stage.
| StageUtil | ||
toSWFBasePath(stage:Stage, url:String):String [static]
指定された URL ストリングを SWF ファイルの設置されているフォルダを基準とした URL に変換して返します。
絶対パスが指定された場合には、そのまま返します。
Translate the specified URL string to the URL based on the folder where the SWF file is setting. | StageUtil | ||
| getDocument | () | method |
public static function getDocument(stage:Stage):SpriteSWF ファイル書き出し時にドキュメントとして設定されたクラスを返します。 Returns the class that set as document when writing the SWF file.
Parameters
stage:Stage — ドキュメントを保存している stage インスタンスです。
The stage instance which save the document.
|
Sprite —
ドキュメントとして設定された表示オブジェクトです。
The display object that set as document.
|
var documentRoot:Sprite = getDocument( stage );
trace( documentRoot.root == documentRoot ); // true
| getMarginLeft | () | method |
public static function getMarginLeft(stage:Stage):Numberステージの左マージンを取得します。 Get the left margin of the stage.
Parameters
stage:Stage — マージンを取得したい stage インスタンスです。
The stage instance to get the margin.
|
Number —
左マージンです。
The left margin.
|
| getMarginTop | () | method |
public static function getMarginTop(stage:Stage):Numberステージの上マージンを取得します。 Get the top margin of the stage.
Parameters
stage:Stage — マージンを取得したい stage インスタンスです。
The stage instance to get the margin.
|
Number —
上マージンです。
The top margin.
|
| toSWFBasePath | () | method |
public static function toSWFBasePath(stage:Stage, url:String):String指定された URL ストリングを SWF ファイルの設置されているフォルダを基準とした URL に変換して返します。 絶対パスが指定された場合には、そのまま返します。 Translate the specified URL string to the URL based on the folder where the SWF file is setting. In case it specified the absolute path, it will return as is.
Parameters
stage:Stage — 基準となる SWF ファイルの stage インスタンスです。
The Stage instance of the SWF file to be the baseine.
| |
url:String — 変換したい URL のストリング表現です。
The URL string representation to translate.
|
String —
変換された URL のストリング表現です。
The URL string representation which translated.
|