Package | com.cmiscm.utils.common |
Class | public class DisplayObjectUtilities |
Inheritance | DisplayObjectUtilities ![]() |
Method | Defined By | ||
---|---|---|---|
GetClassByName($str:String, $start:int, $end:int):Array [static]
this method retrieves the name of the DisplayObjectClass in the library. | DisplayObjectUtilities | ||
hitArea($mc:Sprite, $hit:Sprite, $btMode:Boolean = true):void [static]
this method allows you to create a hit area within a button. | DisplayObjectUtilities | ||
removeAllChildren($container:DisplayObjectContainer):void [static]
Remove all of children in a container
| DisplayObjectUtilities | ||
setParameters($stage:Stage, $name:String, $local:String):String [static]
Get HTML parameters
| DisplayObjectUtilities |
GetClassByName | () | method |
public static function GetClassByName($str:String, $start:int, $end:int):Array
this method retrieves the name of the DisplayObjectClass in the library. The first parameter is the name of the object in the library in the SWC. The start and end parameters set the number of images in the displayobject’s image collection to be retrieved. 라이브러리 등에 생성해 놓은 클래스 명이 A1,A2,A3....A100 인데 이 모두를 new 로 선언해서 배열에 담아서 리턴
Parameters
$str:String — Linkage Name
| |
$start:int — Start Number
| |
$end:int — End Number
|
Array —
|
hitArea | () | method |
public static function hitArea($mc:Sprite, $hit:Sprite, $btMode:Boolean = true):void
this method allows you to create a hit area within a button. The first argument is mc – this is of type Sprite and identifies a movie clip container. The second parameter is the HitArea sprite that defines the subset of space that will be the actual hit area for the cursor. The final parameter is the Button Mode flag which designates the cursor style when the cursor is in the hit area – the default value is true which changes the style of the cursor to its active state.
Parameters
$mc:Sprite — MC Sprite
| |
$hit:Sprite — HitArea Sprite
| |
$btMode:Boolean (default = true ) — Button Mode
|
removeAllChildren | () | method |
public static function removeAllChildren($container:DisplayObjectContainer):void
Remove all of children in a container
Parameters
$container:DisplayObjectContainer — DisplayObjectContainer
|
setParameters | () | method |
public static function setParameters($stage:Stage, $name:String, $local:String):String
Get HTML parameters
Parameters
$stage:Stage — Stage
| |
$name:String — Parameters Name
| |
$local:String — HTML에 Parameters가 없을때 불러올 경로
|
String —
|