...타임 라인이나 스테이지를 통해 레이어의 모든 무비 클립에 액세스 할 수 있습니까? 반환 나는 코드가
var selection:Array = new Array();
var diplayObjCont:* = stage;
// The rectangle that defines the selection in the containers coordinate space.
// Loop throught the containers children.
for(var a:int; a<diplayObjCont.numChildren; a++){
// Get the childs bounds in the containers coordinate space.
var child:DisplayObject = diplayObjCont.getChildAt(a);
selection.push(child);
}
trace(selection);
단지
[객체 MainTimeline]
그래서, 나는 모든 무비 클립을 얻기 위해이 MainTimeline에 레이어에 액세스 할 수 있습니다 이 층? 그래서 간단한 조작 "A_1_2.buttonMode = true;"를 할 수 있습니다. 모든 라인을 작성하지 않고 (예를 들어, 배열에서) 모든 MC에 (많은 MC가 레이어와 많은 라인에) 있습니다. 예 당신이 할 수있는
코드가 플래시 IDE 타임 라인에 있으면 '스테이지'를 바꿔야한다고 생각합니다. 'this'by your code ... – OXMO456