我有一个脚本,一旦点击(按钮)一些其他的东西隐藏然后一旦再次点击它重新显示。问题是一旦隐藏它再也没有显示这里是脚本:Flash AS3切换可见
menu_start.addEventListener(MouseEvent.CLICK, myClickFunction);
function myClickFunction(event:MouseEvent) {
// Hide the first and show the next here
if (menu_menu.visible == true){
menu_menu.visible = false;
}
if (menu_menu.visible == false) {
menu_menu.visible == true;
}
}
非常感谢。
还有什么事发生在menu_menu的DisplayObject单击该按钮时? – Jordan 2010-11-07 01:05:33