Trouble with error

In an attempt to eliminate unnecessary classes I am trying to
combine 2 of them but no having much luck this is the error I am
getting:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at OButton/initializeMenu()
at OButton()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at ASMain()

Well, as it turns out I'm probably not the teaching type!
David Stiller, where are you! :-)
Ok, let's attempt to explain what you are doing here. My
reference is the example we discussed in the other thread so keep
that in mind.
In the example you have a button as a movieclip in the
library and linked that to a class - in the example the class is
called CategoryButton.as. The combination of that visual asset in
the library and the class defines ONE object. Think of it this way:
we could have used the drawing API's in the class to define the
visual aspects of the button, in which case we would just have a
class that makes up our button as a whole. Having a asset in the
library and linking that to a class is basically the same thing. In
the end you have ONE object.
So, let's look at that 'object' thing a bit more, a real life
comparison: the engine in your car is an object, but the parts that
make up the engine are also objects. Because every object in the
engine has certain properties the thing in the end does the job we
expect it to do. When the engine doesn't start, obviously something
is wrong and we need the car doctor. He/she analyzes the problem,
takes out a part (one of the objects in the system), fiddles with a
screwdriver and a piece of cloth, puts the part back in and there
you go again, happily polluting the air while you're at it. Now you
have to know, in the beginning the engine only had a few parts. But
it was hard to repair! So they decided to split up the system in
several subsystems and the subsystems in parts. Now it became very
easy to repair the thing. Back to programming. What do you know?
It's the same stuff all over again! We actually learned something
from history. In the beginning we wrote zillions of lines of code
in just one file. Then ancenstors of the famous engine builders
decided that they could do the same thing here! Smart guys... So
what exactly is there to learn here. Well, it's probably better to
have more classes than trying to cut down on classes. It's just
easier to repair something when you can isolate the problem to one
tiny part in the system!
Now looking at your class, here is what you are doing: you
create a part of the engine and are trying to stuff 5 of the exact
same parts in there! Highly creative and probably something that
David Copperfield could do but you are Big Mama In The Mud!
The buttons are individual parts that together (as a
collection) make up a subsytem, called Menu. The Menu is the casing
of the parts and we attach some wires to it to communicate with
other subsystems. The buttons are 'switches'. In the example, when
they are clicked they can switch themselves off but they just don't
know when to switch to 'on' again. That is where the Menu comes in.
It receives a signal from one of its parts so it can decide to
switch a button on again.
Good luck and now I'm gone because my copy of Flash CS4 has
downloaded!

Similar Messages

  • Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore.

    Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore. Please help!

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • Trouble with error message on desktop manager

    Hi,
    I am having some trouble with an error message I am getting when I try to sync my 8530 Curve with MS Outlook 2010.  It was working just fine and now I am receiving the error message "error code- 0x80043ade. Check documentation"  Any advice? 
    Thanks!
    Solved!
    Go to Solution.

    I had the same issue when I first tried to synchronize. The issue for me was when the BlackBerry Desktop Software had updated to Version 6, it left the older version - Version 5 - on my computer. If you go into the Control Panel on your computer and uninstall Version 5, and try re-synchronizing, it should work!
    Hope this helps!
    I hope my response helped you! If you like it, give me a kudo!

  • Trouble with Error 66 in LV 8.2.1

    I'm having a strange problem. I am trying to access LV 8.2.1 on one computer (windows) from a copy of LV 8.2.1 running on another computer (also windows). This is something I have done thousands of times in the past but now it's causing problems. All I get is an Error 66 which means that the LV application I'm talking to is rejecting the connection. In the VI Server Configuration page I have TCP/IP enabled and have the correct port set; and on the Machine Access page I have entries for the specific machine I am accessing it from as well as "*" (everybody). Still no joy...
    If I shut LV down I get a different error (56) which is a timeout and is what I would expect. In addition, if I boot-up LV7.1 on the remote computer I can connect to it just fine. Any ideas?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

    Craig D wrote:
    I'm not completely familiar with the server.tcp.acl token, but it seems to just be controlling machine access.  I'm guessing the reason you can't find much documentation on it is because, ideally, the end user should not have had to ever touch this token.  Also, I'm guessing the reason for the long hex string is for security reasons, but again, I'm not completely sure.  I'm going to check into this a bit more and let you know what I find.
    I might be wrong but the ACL seems to be structured just as the ACLs in Windows and as such the long Hex string has nothing to do with security in itself (it's use of course is for security here) but is just the representation of a GUID (globally unique identifier) which rely on an algorithme for creating them that is supposed to generate truelly globally unique values on every system. Seeing how they are used everywhere I start to doubt that they are still that, but for most purposes that is not a problem.
    The idea to shield any user from this mess is noble but I think it won't work completely. At least documenting it will help to understand how it works. As it is now it feels and smells like the whole password security relies heavily on security through obscurity and I don't think that is what NI wants power users to see it like, who will have to decide for corporate use if they want to rely on this technology.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Please Help trouble with error Java 34

    I'm working on a basic program that uses JButton and JFrame for display/activity, I have been able to get the rest of the program running but I get this error when trying to Register a button event listener.
    .java:34: non-static variable this cannot be referenced from a static context
              createAction = new ButtonHandler();
    ^
    The code I used to create this Button is
         JButton create;
              ButtonHandler createAction;
              create = new JButton("Create");
              createAction = new ButtonHandler();
              create.addActionListener(createAction);
    Does anyone know why I am getting this error? I tried removing Static from my class main declaration but then the program terminates with this error
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    ----jGRASP wedge2: exit code for process is 1.
    Edited by: Grudairian on Oct 25, 2007 3:39 PM

    Grudairian wrote:
    I'm working on a basic program that uses JButton and JFrame for display/activity, I have been able to get the rest of the program running but I get this error when trying to Register a button event listener.
    .java:34: non-static variable this cannot be referenced from a static context
              createAction = new ButtonHandler();
    ^
    The code I used to create this Button is
         JButton create;
              ButtonHandler createAction;
              create = new JButton("Create");
              createAction = new ButtonHandler();
              create.addActionListener(createAction);
    Does anyone know why I am getting this error? I tried removing Static from my class main declaration but then the program terminates with this error
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    ----jGRASP wedge2: exit code for process is 1.
    Edited by: Grudairian on Oct 25, 2007 3:39 PMWhat you are trying to do is so overwhelmingly wrong that there is absolutely no way you have any idea what you are doing. You most certainly should not be trying to build GUI applications; have you gone through the Sun tutorial? Do you understand what the static (notice that it is all lowercase, because java is a case sensitive language) keyword means? How about the "this" keyword? Do you know what an instance is? Do you know the difference between a class and an object? If the answers to ANY of those questions is "no", then you need to go through the basic java tutorial:
    http://java.sun.com/docs/books/tutorial/

  • Having trouble with error message in itunes every since I had a new hard drive installed. Write access are not enough or permissions aren't allowed.  I have changed all of these in the corresponding folders, restarted and nothing works.  I need help bad??

    Got a new hard drive installed and since then, I cannot get purchased song into my itunes.  It is telling me that my write access or permission are wrong.  I have changed all and nothing works.  HELP!!!!!!

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Having trouble with Error #1023:stack overflow

    I've run into this error ican't seem to get around. I've redone this code many times and it still happens. Part of the problem is its randomness, sometimes it happens right at launch and sometimes after 5-10 mins. I've tried to look up how to fix it but haven't seen how my problem relates to those that have something similar. As far as i can tell i dont have an recurrsion of code. Here's a copy of the error that pops up.
    Error: Error #1023: Stack overflow occurred.
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
    Here's the code, basically what i'm doing is placing the object on screen at a random Y position.I do have a check when it loads it isn't right on top of another object and if it does it redoes the Y Position. Then i give it a random scale to the original object and speed. Then when the objects reachs the other side of the screen i move it back to the start and randomize the size,speed, and Yposition again. The error seems to happen when it moves back to the other side. And when it happens it doesnt stop the program, the object just never reappears. Any help would be greatly appreciated.
    var bigSpaceShip2:MovieClip=new bigSpaceShip();
    var bigSpaceShip2Speed:Number;
    var bigSpaceShip2Scale:Number;
    var bigSpaceShip2YPosition:Number;
    var bigSpaceShip2Reset:Boolean;
    bigSpaceShip2SetUp();
    function bigSpaceShip2SetUp():void{
        bigSpaceShip2Speed= ((Math.random()*.95)+.75);
        bigSpaceShip2Scale= ((Math.random()*.30)+.35);
        addChildAt(bigSpaceShip2, 1);
        bigSpaceShip2StartPoint();
    function bigSpaceShip2StartPoint():void{
        bigSpaceShip2.scaleX=bigSpaceShip2Scale;
        bigSpaceShip2.scaleY=bigSpaceShip2Scale;
        bigSpaceShip2.x=0;
        bigSpaceShip2.y=(Math.ceil(Math.random()*650))+50;
        bigSpaceShip2YPosition=bigSpaceShip2.y;
        if((bigSpaceShip2YPosition-bigSpaceShip1.y)>(-200) && (bigSpaceShip2YPosition-bigSpaceShip1.y)<2000){
            bigSpaceShip2Reset=true;
        }else{
            bigSpaceShip2Reset=false;
        bigSpaceShip2Listeners();   
    function bigSpaceShip2Listeners():void{
        if(bigSpaceShip2Reset==false){
        bigSpaceShip2.addEventListener(Event.ENTER_FRAME, bigSpaceShip2SpeedSet);
        bigSpaceShip2.addEventListener(Event.ENTER_FRAME, bigSpaceShip2CheckReset);
        }else{
            bigSpaceShip2StartPoint();
    function bigSpaceShip2SpeedSet(e:Event):void{
        bigSpaceShip2.x+=bigSpaceShip2Speed;
    function bigSpaceShip2CheckReset(e:Event):void{
        if (bigSpaceShip2.x >1400){
            bigSpaceShip2.removeEventListener(Event.ENTER_FRAME, bigSpaceShip2SpeedSet);
            bigSpaceShip2.removeEventListener(Event.ENTER_FRAME, bigSpaceShip2CheckReset);
            bigSpaceShip2StartPoint();

    Hi enaz13,
    The default recurring of a function is only 256 times but u calling same function endlessly that is the reasong stack over flow error is coming

  • I'm having trouble with my Ipod- I tried to restore it but keep getting a message - the ipod could not be restored. an unknown error occurred(1413)

    I'm having trouble with my Ipod- I tried to restore it but keep getting a message - the ipod could not be restored. an unknown error occurred(1413)
    Mt computer has been freezing up on me lately and I think it messed up my Ipod when it quit right in the middle of downloading and got shut off.

    That's because you jailbroke your phone. You can't get help here.

  • TS1814 hello i have  a trouble with my i phone... i was trying to update a new software and at the end it says that there is some error and i cannot turn my i phone bak on all it shows is itunes logo in the midlle and usb cable with an arrow pointing to t

    hello i have  a trouble with my i phone... i was trying to update a new software and at the end it says that there is some error and i cannot turn my i phone bak on all it shows is itunes logo in the midlle and usb cable with an arrow pointing at the logo. If anyone knows what it is and what i should do please get back to me as soon as possible many thanks.

    http://support.apple.com/kb/HT1808

  • I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    Meg81 error 214 indicates a download data validation error.  This means that the update you downloaded became corrupted likely during the download process.  I would recommend utilizing the suggestions listed in Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html to attempt to improve the stability of your Internet connection.
    You can also find information on how to review your download logs which may provide additional information regarding the failure of the download.

  • TS3694 hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    jk82 wrote:
    im getting apopup showing error 29
    Try Here  >  http://support.apple.com/kb/TS3694#hardware

  • HT1414 hi everyone , having trouble with restoring my iphone, i did follow the step untul extracting the update software but when the iphone start to restoring my iPhone always turn off and it say Error 21 on my PC monitor ...please help me icannot get my

    hi everyone , having trouble with restoring my iphone, i did follow the step untul extracting the update software but when the iphone start to restoring my iPhone always turn off and it say Error 21 on my PC monitor ...please help me i cannot get my iPhone turn on

    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
    These errors typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.

  • I am having trouble with face time , it was working well yesterday and today am not able to use it due to an error that won't let me log in !!!

    I am having trouble with face time , it was working well yesterday and today am not able to use it due to an error that won't let me log in !!!

    I have the same exact issue. There is number of these post, but still not an answer. hope someone post an answer soon

  • To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave F

    To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave Files I have stored into the Software of Flash!. Could you please help me get this matter resolved? Gerard Hargrove.

    what exactly are you trying to do and attach a screenshot of the error message, if it's in english.

  • Having trouble with itunes update.  Error with itunes64.msi. Windows 8.1 64 bit.  Thanks.

    Having trouble with itunes update.  Error with itunes64.msi. Windows 8.1 64 bit.  I tried uninstalling, but I am stuck now trying to reinstall.
    It says itcan't find the itunes64.msi destination folder.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

Maybe you are looking for

  • How do i get the music from my ipad to my iphone

    My sister has an Ipad and I want to sync my phone with it so I can get the music we downloaded how do I do this?

  • I took out a 1 month Zoosk subscription in 2012. I cancelled in my ipad setting but Zoosk have still been charging me for two years!!!

    Back in 2012 I took out a 1 month zoosk subscription through my ipad and quickly found that it auto-renewed after the first month. I contacted zoosk and asked them to cancel the subscrip. They said they couldnt do it and I had to cancel the subscript

  • Help me restore my iMac please.

    Okay there is something seriously wrong with my iMac and I don't have any type of support left from Apple. My iMac has been running really slow lately and even freezing when just having Firefox and iTunes open it's ridiculous. I'm trying to just rest

  • Asset GR & GI Problem

    Hi all I have created an asset PO for 1 computer by assigning A as a Account assignment Category. I have given the asset number and order number(single assignement) in accout assigment tab to which 1 computer is to be issued. I made GR for 1 computer

  • WiFi connection problem solved

    My intel iMac and MBA had no problem but iPods 3g and 5g did.  I had an old Netgear router connected and sitting next to my Airport Express.  On a hunch I diconnected the Netgear and created a guest network to replace the one on the Netgear.  PROBLEM