Current Position:Home > GotoAndStop error 1120:Access of undefined property on MC's loaded from .swc

GotoAndStop error 1120:Access of undefined property on MC's loaded from .swc

Update:11-30Source: network consolidation
Advertisement
I am trying to tell a MovieClip added from a .swc library to do simple things like "gotoAndStop()" and all I get is a red X error message 1120: Access of undefined property whenever I do.
I can add the MovieClip to the application and position it without any problem. I cannot make it do anything. In my Flash IDE library the CustomCheckBox()'s base class is
import flash.display.MovieClip;
import mx.flash.UIMovieClip;
     //  **** TRIED EACH IMPORT STATEMENT AND BOTH**** (NEITHER of which work at all).
private var _checkPlaylist:MovieClip = new CustomCheckBox();
private var _checkClassroom:MovieClip = new CustomCheckBox();
_checkPlaylist.gotoAndStop(1);
_checkClassroom.gotoAndStop(2);
I can declare my CustomCheckBox as a MovieClip and in my Symbol Properties panel it's base class is — mx.flash.UIMovieClip — and it shows up just fine. I just can't make the thing stop or do anything else a MovieClip is supposed to be able to do.
One of the other developers here who is way more advanced than I am also cannot get a ******* movie clip to stop either.
I am new to Flash Builder — yet have been using Flash and AS3 for years and I have never had a more difficult time getting up to speed with a new technology than Flex / Flash Builder has become for me. I feel stupid that I keep spending days on end just trying to figure out basic things like this.

The Best Answer

Advertisement
I keep answering my own questions. When I added a gotoAndStop command to the referenced MC inside of the init function it stopped throwing that error at me. I was trying to initialize the button states after declaring them as MC variables, but the compiler did not like that.
  • GotoAndStop error 1120:Access of undefined property on MC's loaded from .swc Update:11-30

    I am trying to tell a MovieClip added from a .swc library to do simple things like "gotoAndStop()" and all I get is a red X error message 1120: Access of undefined property whenever I do. I can add the MovieClip to the application and position i

  • Error, please help? 1120: Access of undefined property event Update:11-30

    I have ActionScript 3 in two frames of my piece. In this 2nd frame, I get an error: "1120: Access of undefined property event" for "myXML=XML(event.target.data);" Can anyone help? I am not sure how to fix this. var myloader:URLLoader=n

  • Flash CS3 Compiler in Strict Mode errors out 1120: Access of undefined property Update:11-30

    Hi, I am following a code example in a book and have the final fla and as files, so I know the project works when fully coded. This is my problem: In the book, it tells me I can test the movie to make sure that it is working so far. When I do that, I

  • Error Code 1120 access of undefined property...help please Update:11-30

    I am fairly new to Flash - I have CS4 and am not sure if I am in the right place to get help. I am trying to build a click through gallery with small buttons that you click on and it switches the larger image out as you click through. I copied over a

  • Need help with error msg 1120: Access of undefined property Update:11-30

    I am not a coder, so I need coding help. Any help would be greatly appreciated. I'm doing a Flash banner that has clickTAG instructions from Google. The code they said to put on the button is: ClickTAG parameter code for ActionScript 3: import flash.

  • Getting the very lovely 1120: Access of undefined property... Update:11-30

    Hi Guys n Gals, I'm getting the "1120: Access of undefined property texttwo_mc." error I've done this code before and no issue. What I'm doing is simple, click a button and it will go to a movie clip within a movie clip to start the label named

  • 1120: Access of undefined property myTest Update:10-11

    I am learning Actionscript 3.0 and Flex 3 but am having a very hard time trying to understand error 1120. I come from a c++ background so OOP is not new to me. I create the object instance of the imported class but then I cannot call those object fun

  • 1120: Access of undefined property contact. Update:10-11

    Hey Im currently in the middle of designing a flash wesbite.. ive even followed a tutorial and im stillll having problems...when i create buttons and i want action script for those buttons to go to like home page and stuff i get that error message..

  • 1120: Access of undefined property but4. Update:10-11

    stop(); import flash.events.MouseEvent; but3.enabled; but3.addEventListener(MouseEvent.CLICK, pla); but4.enabled; but4.addEventListener(MouseEvent.CLICK, sto); function pla(e:MouseEvent):void { gotoAndPlay(1); function sto(e:MouseEvent):void { stop()

  • 1120: Access of undefined property Update:10-11

    hello to all. am also new to as3 and am sure that this error i've got is quite silly. i did a research on the net about this error but any answer could solve my prob. [CODE] package      import flash.events.MouseEvent;      public class displayNumber