Error 1120: Access of Undefined Property

Asked By 30 points N/A Posted on -
qa-featured

I was using flash when I received an error prompt saying: Error 1120:

Access of Undefined Property "InstanceName"; however, from experience, nothing seems to be wrong with my settings.

The settings (as seen on the screenshot I posted) are as follows:

-Instance name: "back1" (note that the action and the instance exist on a single frame)

-Actions:

stop();

back1.addEventListener(MouseEvent.CLICK, goback);

function goback(e:MouseEvent):void
{
play();
}

-Error:

Scene 1, Layer 'Actions', Frame 11, Line 3 1120: Access of Undefined Property back1

I believe it should run properly in because the following seem to be in order:

1. Instance name properties and script are both correctly spelled.
2. The instance and the actions exist on the same single frame.
3. The instance is placed directly on the stage, and not nested in another.
4. Due to the command "stop ();” the timeline stops at the set frame until a new command is entered. Therefore,the script has unrestricted access to the instance.

If this is correct then what is the reason behind this error message?

Thanks a lot for any help on this matter.

SHARE
Answered By 0 points N/A #192297

Error 1120: Access of Undefined Property

qa-featured

It's a programming error and it means that you are using a false name for the object you are using with in your stage. May be you are using object name that is specified by the program and that's why it is showing you error message. You must defined separate name for all objects in flash also check that there is no extra object over the stage to work on.

 

Smith Thompson

Login/Register to Answer

Related Questions