วันอังคารที่ 12 พฤษภาคม พ.ศ. 2552

ReferenceError: Error #1056: Cannot create property [property name] on [class name]

many things occur yesterday. As I re-start learning flash action script 3.
most occur error is this error.

ReferenceError: Error #1056: Cannot create property firstmon on mike.map1.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at mike::map1()

other thing I learned. I will write other day. maybe after my project rather finish.

this problem always occur when you did not declare variable in document class.
to solve this problem.
you should declare variable as many as you define object name in .fla file.
and don't forgot declare these variables to public.

for example
I have movie clip name "firstmon" in fla file.
and I map this fla with this class
I the class I should declare definition for firstmon to solve error.

think I should help you. thx.

ไม่มีความคิดเห็น: