动作错误1119

时间:2009-11-10 20:16:50

标签: actionscript-3

我是动作脚本的新手,必须为作业创建类似DDR的游戏。我将所有箭头转换为符号并给它们一个实例名称。

到目前为止,我没有包含任何功能;只需将我的所有符号设置为visible = false或true。但无论如何,它无论如何都会播放一切。

我收到一个错误:1119:通过静态类型fl.motion的引用访问可能未定义的属性:AnimatorFactory。

2 个答案:

答案 0 :(得分:1)

在Flash中,如果存在代码错误,它基本上会忽略所有actionscript并自动循环舞台上存在的项目中的每个MovieClip(MovieClip的默认行为)

1119错误意味着说的是什么,你试图在没有该属性的类型的对象上设置属性(可见)(AnimatorFactory)

如果您仍需要,您需要发布代码示例以获得更具体的帮助。

答案 1 :(得分:1)

谢谢! 到目前为止还没有功能编码。我刚开始设置属性并查看是否有效......

包{ import flash.display.MovieClip;     import flash.events。*;

public class GameAS3 extends MovieClip{

public function GameAS3(){
    //visibility
    //background layer
        logo_mc.visible = true;
        lounge_mc.visible = true;
        line_mc.visible = true;
    //Welcome layer
        welcome_mc.visible = true;
    //Final Arrow layer: the arrows to hit at the top
        ArrowLeft_mc.visible = true;
        ArrowDown_mc.visible = true;
        ArrowUp_mc.visible = true;
        ArrowRight_mc.visible = true;
    //glow layer: glowing symbols that will activate every time you hit one
        glowLeft_mc.visible = false;
        glowDown_mc.visible = false;
        glowUp_mc.visible = false;
        glowRight_mc.visible = false;
    //the arrows that go to the beat 
        left_mc.visible = false;
        down_mc.visible = false;
        up_mc.visible = false;
        right_mc.visible = false;
    //menu invisible: after welcome you press next to see the menu
        easy_btn.visible = false;
        medium_btn.visible = false;
        hard_btn.visible = false;
        expert_btn.visible = false;
        career_btn.visible = false;
    //score: will pop according to how you hit it
        miss_mc.visible = false;
        okay_mc.visible = false;
        perfecto_mc.visible = false;
}

}