Darkened Software

Flash Error #1056 Can not create property x on class y

by on Feb.06, 2009, under Programming

In Flash CS3 this error means that you have instances of symbols on the timeline with instance names on them.  But “Automatically declare stage instances” is turned off.  Goto  File->Publish Setting->Flash->Actionscript 3.0 settings and turn it back on.

Most un-helpful error message you will get:

ReferenceError: Error #1056: Cannot create property background on cg_heist.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at cg_heist()

You can also get the same exact error if you have

public class cg_heist


var background:ScreenWipe;


Where background is also the name of an exported symbol script.  This often happens when you have artists and programmers working on the same flash files at the same time.

Be Sociable, Share!
1 comment for this entry:
  1. Benoit Jadinon

    dude, I owe you my sanity, thanks for the tip, I was searching for a background property to MovieClip or something…

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...