내가 this.swapDepths를 사용 (깊이) 이 작동하지 않습니다
코드 :
this.onPress = function(){ this.swapDepths(100);enter code here } this.onRelease = function(){this.swapDepths(-100);}
나에게
도와주세요3210내가 this.swapDepths를 사용 (깊이) 이 작동하지 않습니다
코드 :
this.onPress = function(){ this.swapDepths(100);enter code here } this.onRelease = function(){this.swapDepths(-100);}
나에게
도와주세요3210이를 사용할 수 있습니다 :
this.onRelease = function() {
this.swapDepths(mc1);
};
this.onRelease = function() {
this.swapDepths(mc2);
};
MC1과 MC2는이 동영상 클립의 인스턴스 이름입니다.
동영상 클립이 버튼 객체 안에있는 경우 "this.mc1"/ "this.mc2"를 사용하십시오.
그런 식으로 그들은 각각의 깊이가 어느 정도인지 알지 못해도 Depth를 서로 교환하기 만하면됩니다.
는 화면 (안 동적으로 생성)에 배치이 "문자"개체가 있다고 가정하자 다음과 같은 코드로 부착이 "적"개체가 있습니다
이var enemy = _root.attachMovie("enemyBmp","enemyBmp",1);
이제 문제는 "적이다를 "개체가"char "개체의 맨 위에 나타납니다. 지금해야 할 일은 다음과 같습니다.
enemy.swapDepths(char);