I got a Problem with a Movie Clip I add to the Stage in Flash CS4/AS3.
The Flash File consist of two MovieClips, \"Inside\" and \"Outside\". The \"Inside\" Clip
Try to declare a public
var
corresponding to the name of your inside clip into you outside clip:
package gui
{
import flash.display.MovieClip;
public class Outside extends MovieClip
{
public var insideClip:MovieClip; // here your declaration so the compiler can find it
public function Outside(){}
}
}
This error occurs when you uncheck the "Declare Stage Instances Automatically" checkbox in the "ActionScript 3.0 Settings" dialogbox and proceed to declare stage instances as private variables in the class associated with the containing MovieClip.
You cannot choose to simply always declare stage instances automatically without forging the use of inheritance in classes linked to MovieClip Symbols. If you have a class APrime which is derived from class A and APrime is linked to a MovieClip Symbol, all stage instances used in the base class A must be manually declared in class A.
OR
AS3 error 1056 appears when you have improperly referenced a property of an object. This will happen when you misspell something or when you reference variables in the AS2 fashion with a leading underscore ( _ ). AS3 error 1056 is actually pretty nice to work with because it tells you exactly what variable didn't work and it tells you which object it didn't work on.
You can also get this error if you try to dynamically assign a variable to an object that doesn't naturally accept one like a textField.