그래서이 확장 가능한 배너가 있습니다. 그리고 모든 것은 괜찮습니다.하지만 시스템에서 테스트 할 때 확장되지 않습니다. 그리고 여기에 문제가 있습니다. 시스템에서이 자바 스크립트를 부동으로 사용하고 있기 때문에 : getURL("javascript:expandEaFloating('"+_level0.id+"')");
하지만 이것은 AS2이며 AS3에 필요합니다.AS3의 JavaScript 호출
import flash.external.ExternalInterface;
import flash.events.Event;
stop();
b1_btn.buttonMode = true;
b1_btn.addEventListener(MouseEvent.MOUSE_OVER, aBanner2);
b1_btn.addEventListener(MouseEvent.MOUSE_OVER, openBaner);
function openBaner(e:Event){
ExternalInterface.call("expandEaFloating('"+root.id+"')");
}
function aBanner2(e:Event){
this.gotoAndStop(2);
}
오류 로그가 작동하지 않습니다 - 정적 유형 flash.display : DisplayObject가있는 참조를 통해 정의되지 않은 속성 ID에 액세스 할 수 있습니다. –