Skip to main content
Known Participant
January 19, 2010
Question

error 1120 --

  • January 19, 2010
  • 2 replies
  • 987 views

1120: Access of undefined property your_movieclip.  that is what i am getting...

under the AS code:

public function onSubClick(e:MouseEvent):void {
      your_movieclip.gotoAndPlay(Number(e.currentTarget.linkURL));

on my main fla:

i have an empty movie clip with the instance of :  your_movieclip

and this code on frame 5:

var imageRequest:URLRequest = new URLRequest("p2.swf");
var imageLoader:Loader = new Loader();
imageLoader.load(imageRequest);
addChild(imageLoader);

and the xml :

<menuItem name="About Us" linkURL="2" target="" subMenu="1">

   <subMenuItem name="Our Team" linkURL="5" target="" />
  

Any ideas what i am doing wrong?

thanks in advance for your time.

This topic has been closed for replies.

2 replies

July 23, 2010

Hello

i think i have exactlly the same probleme with the same menu

what's your solution ?

thanks a lot

kglad
Community Expert
Community Expert
July 23, 2010

start your own thread.


kglad
Community Expert
Community Expert
January 19, 2010

try casting as a movieclip:

pi09 wrote:

1120: Access of undefined property your_movieclip.  that is what i am getting...

under the AS code:

public function onSubClick(e:MouseEvent):void {
      MovieClip(your_movieclip).gotoAndPlay(Number(e.currentTarget.linkURL));

on my main fla:

i have an empty movie clip with the instance of :  your_movieclip

and this code on frame 5:

var imageRequest:URLRequest = new URLRequest("p2.swf");
var imageLoader:Loader = new Loader();
imageLoader.load(imageRequest);
addChild(imageLoader);

and the xml :

<menuItem name="About Us" linkURL="2" target="" subMenu="1">

   <subMenuItem name="Our Team" linkURL="5" target="" />

Any ideas what i am doing wrong?

thanks in advance for your time.

pi09Author
Known Participant
January 19, 2010

hey you!  thanks for replying.. 

nope.. didnt work....

kglad
Community Expert
Community Expert
January 19, 2010

IF the same 1120 error appeared, click file/publish settings/flash and tick "permit debugging".  retest.

in the error message a line number with the error will be appear.  post the line referenced by the error message.