var arr:Array = new Array();

firstSet();

function firstSet():void{
    var mc:MovieClip = new MovieClip();
    mc.name = 0 + "_" + 1 + "_" + 2;
    arrSet(mc.name);
}

function arrSet(_sT:String):void{
    arr = _sT.split("_", 3);
    trace(arr[0], arr[1], arr[2])
}


출력값 : 0, 1, 2

'ActionScript3.0 > 기초' 카테고리의 다른 글

Sprite  (0) 2010.02.09
mouseEnabled  (0) 2010.02.04
Object()  (0) 2010.02.03
Array.SortOn();  (0) 2010.02.03
Switch  (0) 2010.01.26

+ Recent posts