라이브러리의 AS2를 사용하여 무대에 무비 클립을로드하려면 어떻게해야합니까? 그리고 언로드하는 방법. 내가 도와 줄 수 있니? 고마워요AS 2를 사용하여 라이브러리의 무비 클립을 무대에로드하십시오.
2
A
답변
2
라이브러리에서 Linkage (th mc에서 마우스 오른쪽 버튼으로 클릭)를 지정하고 Actionscript로 내보내기를 선택하고 이름 (예 : myMovieClip)을 설정해야합니다. 이 이름은 attachMovie 메소드에서 사용됩니다.
this.attachMovie('myMovieClip', 'myMovieClipNewName', depth);
this.removeMovieClip('myMovieClipNewName');
chaus
-1
depth = 1;
while(depth<100){
this.attachMovie('bullet','bullet' + depth,depth);
this["bullet" + depth]._x = random(550);
this["bullet" + depth]._y = random(400);
depth++;}
// 화면에 무작위로 100 개 총알을 만들 수