0
여러 개의 무비 클립을로드하는 버튼이 여러 개 있습니다. 내 문제는 하나의로드가 사라지지 않을 때 버튼을 클릭 할 때 다른로드를 방지하는 것입니다. 여기에 내 코드가있다. 나는 "if"문장을 추가해야합니까? 어떤 도움이라도 대단히 감사하겠습니다. 감사.addChild and removeCurrent children
movieButton.addEventListener(MouseEvent.CLICK, gotoMovie);
webButton.addEventListener(MouseEvent.CLICK, gotoWeb);
mailButton.addEventListener(MouseEvent.CLICK, gotoMail);
function gotoMovie(event:Event):void {
var moviescene:MovieClip = new movie();
stage.addChild(moviescene);
}
function gotoWeb(event:Event):void {
var webscene:MovieClip = new web();
stage.addChild(webscene);
}
function gotoMail(event:Event):void {
var contactscene:MovieClip = new contact();
stage.addChild(contactscene);
}
사용중인 언어에 태그를 지정하면 도움이됩니다. – LarsTech
웁스! 고맙습니다. –