尝试使用按钮从一个actionscript页面移动到另一个

时间:2015-05-13 22:32:22

标签: actionscript-3 flash

它所在的页面是CarSelect.as,aButton应该将它带到一个名为AClass.as的页面,但它不会加载它。

public static var aButton:MovieClip = new AButton();


        addChild (aButton);
        aButton.x = 65;
        aButton.y = 154;
        aButton.addEventListener(MouseEvent.MOUSE_DOWN, openAClass);

        function openAClass(e:MouseEvent):void
        {

            Mercedes.AClass.visible = true;
        }


    //pulling in car actionscript pages
    public var aClass:MovieClip = new AClass();
    public var bClass:MovieClip = new BClass();
    public var cClass:MovieClip = new CClass();

0 个答案:

没有答案