今天在www.awflasher.com/和某公司合作时遇到的问题:

  1. 无法用 try … catch 来捕捉 object as CustomClass 不匹配的“错误”,ActionScript3会默认返回一个null给这个object,只能通过判断它是否为null来鉴别。
  2. 若在Flash CS3中某自定义类继承自flash.display.MovieClip或者flash.display.Sprite,最好在进行任何操作之前先调用一次super构造函数,否则无法使用舞台上的元素,狂汗!

转载请保留:http://as3blog.com

Still looking for something?

: http://as3blog.com/as3/some-as3-tips/

Post a comment now » Sorry, the comments are closed.

No comments yet.

Sorry, the comment form is closed at this time.