• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wsph123
V2EX  ›  程序员

ActionScript3 求助! TypeError: Error #1010 一般是哪里出的问题?

  •  
  •   wsph123 ·
    itorr · Feb 18, 2012 · 8025 views
    This topic created in 5207 days ago, the information mentioned may be changed or developed.
    TypeError: Error #1010: 术语尚未定义,并且无任何属性。
    at MP3_fla::MainTimeline/getLocation()
    at MP3_fla::MainTimeline/frame1()

    以上是错误提示,code好多 求教修正方向,然后自己去改... 刚刚开始学习AS 亚历山大
    4 replies    1970-01-01 08:00:00 +08:00
    daisuda
        1
    daisuda  
       Feb 18, 2012
    getLocation()函数中的某个变量的值为null。比如foo这个变量为null,你却要再去使用它foo.bar,就会报“术语尚未定义,并且无任何属性”。
    不用Flash IDE的表示可能就是这个意思吧。
    89si
        2
    89si  
       Feb 18, 2012
    同意LS,getLocation()中某个变量还未实例化就被使用了。
    初学+1 我也有出这些问题。
    wsph123
        3
    wsph123  
    OP
       Feb 18, 2012
    @89si @daisuda 感谢指导! Actionscript的Error提示实在是让人摸不到头脑
    francis
        4
    francis  
       Feb 18, 2012 via iPhone
    要用debug啊亲~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2637 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    ♥ Do have faith in what you're doing.