첫번째 scene에 psd파일을 불러왔구요 그 안에 버튼(b01)이 하나 있습니다.

scene1에 b01이 addchild를 하게 했구요

그래서 라이브러리에서 파일 세 개를 불러왔습니다.

그 중 하나가 버튼이고, 이 버튼에 removechild를 걸었는데

Call to a possibly undefined method addEventListener through a reference with static type Clas.

라고 뜨면서 안됩니다 ㅜㅜ

 

scene 1 에 있는 액션

 

b01.addEventListener(MouseEvent.CLICK.f02);

function f02 (event:MouseEvent):void

{

<blockquote dir="ltr" style="margin: 0px; padding: 0px; color: rgb(64, 64, 64); font-family: gulim, sans-serif; font-size: 13px; line-height: 22px;">

var 02 : firstscene = new firstscene ();

var 02.x=0

var 02.y=0

var.name="02"

addChild(v02);

}

</blockquote>

b01.addEventListener(MouseEvent.CLICK.f01);

function f01 (event:MouseEvent):void

{

<blockquote dir="ltr" style="margin: 0px; padding: 0px; color: rgb(64, 64, 64); font-family: gulim, sans-serif; font-size: 13px; line-height: 22px;">

var 01: selfscene= new selfscene ();

var 01.x=0

var 01.y=0

var.name="01"

addChild(v01);

}

</blockquote>

b01.addEventListener(MouseEvent.CLICK.f03);

function f03 (event:MouseEvent):void

{

<blockquote dir="ltr" style="margin: 0px; padding: 0px; color: rgb(64, 64, 64); font-family: gulim, sans-serif; font-size: 13px; line-height: 22px;">

var 03: backb = new backb ();

var 03.x=0

var 03.y=0

var.name="03"

addChild(v03);

}

 

</blockquote>

-> 여기까지가 scene1에 있는 psd파일 안에 있는 버튼에게 걸린 액션이구요

firstscene, selfscene이라는 무비클립 두개와 그리고 backb라는 버튼을 불러왔습니다.

 

그 다음은 backb에게 걸린 액션입니다. (마찬가지로 scene1에 있는 액션 아래에 바로

같이 써 두었습니다)

 

backb.addEventListener(MouseEVent.CLICK.f04);

function f04 (event:MouseEvent):void

{

removeChild(getChildByName("v01"));

}

 

backb.addEventListener(MouseEVent.CLICK.f05);

function f05 (event:MouseEvent):void

{

removeChild(getChildByName("v02"));

}

 

backb.addEventListener(MouseEVent.CLICK.f06);

function f06(event:MouseEvent):void

{

removeChild(getChildByName("v03"));

}

 

 

이렇게 되어있는데 그랬더니 backb에 걸린 액션들에서

Call to a possibly undefined method addEventListener through a reference with static type Class.

라는 말이 나오는 겁니다 ㅜㅜ

 

scene1에 있는 버튼들로 계속 라이브러리에서 차일드들을 불러올거구요,

그리고 scene1에 있는 버튼들이 가려지고 아예 새로운 버튼들로(얘 또한 불러와진것) 그 이후 불러온 차일드들을

다시 없애야 합니다ㅜ

 

어떻게 방법이 없을까요?ㅠㅠ

그리고 새로 불러오는 차일드 애들이 무비클립으로 되어잇긴 하지만 더블클릭해서

씬 안으로 들어가면, 여러가지 요소들이 레이어로 나누어져있는데

그 레이어 안에서 특정 무비클립을 버튼으로 설정을 해 놓은다음에

밖으로 나와서 그 버튼에 차일드를 없애는 액션은 줄 수 없나요?

 

 

아, 일단 라이브러리에 있는 큰 파일들은 psd이며 그 안에 있는 레이어들이 무비클립으로 이루어져있습니다.ㅠㅠㅠㅠ

답변 부탁드립니다