Error #1009 - stumped on what to do

I need major help here. I have a script with a movieclip with a two buttons inside. These work so that it would look like it stayed pushed down until you clicked it again to simulate a multiple choice. Pressing the buttons sends the array a push. If the array reaches 4 it should stop and all that stuff. Problem is that it works pretty fine if you press it, but wont stay pressed anymore and drops me with the 1009 error.
Anyways, here's the code:
Any kind of help would be greatly appreciated as this is basically for my finals.

Alright, I got the debugging on. It says:
"TypeError: Error #1009: Cannot access a property or method of a null object reference.
  at MagiTest_fla::MainTimeline/frame1()[MagiTest_fla.MainTimeline::frame1:27]"
frame1:27 is:
magibatClip.magiDown.addEventListener(c, unTake);
Most likely, it's the first mistake you pointed out (declared, but not instantiated). I read an older answer you gave to another user, and I speculated it is that, but I still don't understand that.
It went something like this from what I read:
var someMC:MovieClip = new MovieClip();
But I still don't seem to get it to work as I don't really understand it. (Sorry for my uselessness).

Similar Messages

  • Error   1009 and I don't know what to do exactly, plz help me

    hi
    I wish that you could help me
    I am a beginner in actionscript 3.0, and I have a main swf file, with a menu and several buttons, when I click on each button, a new swf should be loaded, and the menu is resized and goes to the top left of the page, and if I click on the menu, it should come back..
    the problem is that when I click on the first button, everything works well, but when I click on another button, I get this error:
    TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
        at s_fla::MainTimeline/s_fla::__setProp___id0__Scene1_texte_2()
        at s_fla::MainTimeline/s_fla::frame2()
    I understood that the problem is due to the file which is displayed before it has been loaded.
    I also found that I have to use the function Event.ADDED_TO_STAGE, but I don't know where to put it??
    could you help me please?
    here is my code:
    function size(e:MouseEvent):void{
        menu_mc.gotoAndPlay(2);
        menu_mc.buttonMode = true;
        menui_mc.addEventListener(MouseEvent.CLICK, showmenu);
        menu_mc.button01_btn.removeEventListener(MouseEvent.CLICK, size);
        menu_mc.button02_btn.removeEventListener(MouseEvent.CLICK, size);
       menu_mc.button03_btn.removeEventListener(MouseEvent.CLICK, size);
    addChild (cliploader);
    function size(e:MouseEvent):void{
        menu_anatomie_mc.gotoAndPlay(13);
        menu_mc.removeEventListener(MouseEvent.CLICK, showmenu);
        menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, size);
        menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, size);
        menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, size);
        removeChild (cliploader);
    menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button01_btn.page = "file01.swf";
    menu_mc.button02_btn.page = "file02.swf";
    menu_mc.button03_btn.page = "file03.swf";
    function loadpage(e:MouseEvent):void{
        cliploader.myldr.source = e.currentTarget.page;
    please tell me what to do exactly
    P.S: cliploader is a UI loader which is present on the scene
    in my swf files, I have flvplayback which loads a flv files, and I think this is the source of the problem, because I have tried the same thing with a simple swf file which maybe loads quickly, and I didn't get this error
    thank you in advance

    thanks
    I think that the error is in the file that I want to load, in this file I have a flvplayback that I named myplayer, which is in the third frame, and because the video doesn't stop even if I move to another frame, I had to add this code in the third frame
    next_btn.visible = true;
    prev_btn.visible = true;
    myplayer.addEventListener(Event.REMOVED_FROM_STAGE, stopPlay);
    function stopPlay(e:Event)
    myplayer.stop();
    myplayer.stop(); this is line 7 on frame 3
    when I publish this file, it works
    but when I try to play it from the menu in the main swf file I get the error, how can I fix it please?
    can I make this manually, or I'll have the same problem?
    as I said, I tried to load different swf files from the main menu and I didn't have this problem (because there were no video players), so I think the problem is caused by the video player?
    thank you

  • I'm now at Sudan. I'm from Bangladesh. After coming Sudan I can't download/install any application from apps store. It shows error code-1009. Now what to do ? can anybody help me....?

    I'm now at Sudan. I'm from Bangladesh. After coming Sudan I can't download/install any application from apps store. It shows error code-1009. Now what to do ? can anybody help me....?

    Are you trying to download apps from the Sudan app store?  If so, you have to have a valid credit card and billing address in the country of the app store to purchase from that app store.
    Some countries also have restrictions on the apps and functions allowed in their countries.

  • HT5622 when i try to download an apps a message error 1009 appear ,please help me,what i have to do

    when i try to download an apps a message error 1009 appear ,please help me,what i have to do

    plishing/scam. I would go to Settings>Safari and Clear Cookies. Data and History and not go to that site for a while. Seems like an infected site.
    See this previous discussion on same symptom
    https://discussions.apple.com/thread/6042028?tstart=0

  • I just got a new iPad3 ...I was trying to download the apps but it didn't work it gives [code error 1009] what can I do .

    I just got a new iPad3 ...I was trying to download the apps but it didn't work it gives [code error 1009] what can I do .

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
     Cheers, Tom

  • What is the error 1009

    What is the error 1009 in apps

    Trying to use the App Store in a country different to that of the App Store.

  • What does mean error 1009 when download from appstore?

    What does mean error 1009 when download from appstore?
    This is not fair only for my location or anything I have a product and expect to support my device
    This is not question I got my answer on other posts but didn't satisfactory.
    Thank you.

    I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???

  • HT1338 I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    The App Store is not available in Iran.

  • What solve error 1009 in iphon 5?

    What solve error 1009 in iphon 5?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • HT1349 Hi! I have continuous error 1009. What is the matter?

    Hi! I have continuous error 1009. What is the matter? What does it mean?

    Hi! Yes. But mr daniel said this might be because of the fact that i am in Iran and someone told me i would need a proxy, which i cannot use because i do not know how to operate it. I mean vpn or something like that. Do u have another idea that may re-start downloadibg for my ipad? Thank you.

  • I see error 1009 every time i want to use apple store.whats that ?

    i see error 1009 every time i want to use apple store.whats that ?

    it means you are trying to use the app store from a country that you are not in

  • Hi there !! what is error 1009 ??

    whenever i try to download an app from itunes store i receive back Error 1009 . what is that matter plz??

    All I found was error 1008 mentioned in this article about Advanced iTuens Store troubleshooting: http://support.apple.com/kb/TS3297
    Can it be that you're trying to download from an iTunes Store outside of your country?

  • TypeError: Error #1009 - I know how to fix it. But I don't know whats going on!

    I have a project that I’m working on that includes working in different scenes and frames. It’s a book project with lots of pages (frames) and chapters (scenes) so I have can’t avoid working in a single frame (like a game). I get a runtime error (TypeError: Error #1009: Cannot access a property or method of a null object reference.) when accessing an object inside of a movieclip. However, I have identified the problem and know how to fix it. But when I fix it the functionality goes away. Here’s how it happens:
    On frame #1 of Scene 2 I click on a button to go to a frame #2.
    On frame #2 is the offending code:
         stage.addEventListener(MouseEvent.MOUSE_UP, moveChapters);
    //********************Navigation Bar code ********************//
    function moveChapters(event:MouseEvent):void
            if(event.target == bottomNav.Chapter_1)
            trace("Chapter #1 is working!");
    FYI, this code is part of a navigation bar the will take the user to different chapters. It is visible on stage. I haven't fully built it yet. For example, "if( event.target == bottomNav.Chapter_1)" will take the user to chapter 1, "bottomNav.Chapter_2," will take the user to chapter 2, so on and so forth. "bottomNav" is a movieclip and "Chapter_1" is a button inside it.
    When I go back to frame #1 of Scene 2 and then click on “Home” button to go back to the main page (Frame #1 of Scene #2) I get the Error #1009.
    When I comment out the “if(event.target == bottomNav.Chapter_1)” I don’t get the error but know I don’t have any functionality.
    Is there a better way to do this?

    Adding the event listener to the stage for this sort of functionality is a bad idea. Even though Flash can, apparently, resolve the objects inside the movieClip, you are making the connection between the object and the event that you want to capture more difficult than it should be. A better approach is to place all of the target objects into an array and then attach the event listener to each object in the array. Then you can easily extract the target from the event.
    Something like this might work for you:
    var chapterList:Array = new Array(bottomNav.Chapter_1,bottomNav.Chapter_2,bottomNav.Chapter_3);
    for(var i in chapterList) {
         chapterList[i].addEventListener(MouseEvent.MOUSE_UP,moveChapters);
    function moveChapters(event:MouseEvent):void {
         var thisChapter:Object = event.target;
               //  etc

  • What does it mean of this error? TypeError: Error #1009 ...

    Hi,
    Please let me know why the following error occured when the button clicked?
    The PRStatus button was clicked!
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at Final_2_fla::MainTimeline/frame20()
        at flash.display::MovieClip/gotoAndStop()
        at Final_2_fla::MainTimeline/clickSection()

    Some object is missing in frame 20.
    publish settings --> flash --> enable debugging - it will show the line of the offensive code.

  • TS1424 What's the error 1009?

    When I want to download  or update my applications I revived error 1009 .how can I solve this problem?

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

Maybe you are looking for