TypeError: Error #1009: question

I placed a TabNavigator with 2 tabs, labeled hand, line1.
On the homepage, I have several boxes of TextInput, I also TextInput boxes on the Line1 page as well.

I have a created a public function called "public void Line1Refresh (): void. In here, everything I do is initialize the TextInput boxes with values by default until it can connect to my server and get the actual data.
That is L1.text = "Please wait";

In line 1 settings, I added the 'Line1RefreshI() '; call for the option to create full so that when the page is rendered, it will call this function and fill in the empty fields.
I have the same thing for the home page as well during the initialization of the TextInputs on this page as well.

Ok... Now for the problem...

When the home page is visited over and called MainRefresh(); I initialize the TextInputs there in it without any problem.

Everything worked fine until I tried also initialize the TextInput fields in the line 1 page.
When I did that I got a:

TypeError: Error #1009: cannot access a property or method of a null object reference.
index / ParseReceivedData ([G:\Flex3\Index\src\Index.mxml:412])
index / our () [G:\Flex3\Index\src\Index.mxml:170]

Anyone know what is the problem here, why I can't access the items on a different page?


Objects in Flex are not created until they are needed. Objects in your second tab are not yet created.

You can set creationPolicy = "all" in your subject, definition and make all the objects to be created when the parent object is created.

You can also use the event listener "change" of the object of the tab to initialize objects on the tab pages. This technique requires verification for the tab pages which is now a code specific page tab visible and enforcement. However, this technique allows for the page to display to the user faster.

If there are very few items on the page, then either the creationPolicy and change event listener would be good to use.

Tags: Flex

Similar Questions

  • TypeError: Error #1009: cannot access a property or method of a null object reference?

    Mr President.
    I updated firefox and always this type of problem
    every time I tried to open the flash game site iam getting this question. sometimes IE browser cannot open it too much.
    "".... TypeError: Error #1009: cannot access a property or method of a null object reference.
    to ASGames / fun_Menu)
    to ASGames / frame2)
    at flash.display::MovieClip/gotoAndStop()
    to WeddingTianaDressup_fla::Timeline_102 / playGames ()... » »

    but the same site can be opened in other browsers in the same pc... but the same site a user goes to another computer on the browser firefox itself. How do not know where is the problem... ?
    so please, some can help hu?

    Dear Sir.
    Thanks for your answer...! I did what you said but it doesn't work. new iam having the same problem...!

  • TypeError: Error #1009 on FLVPlayback

    I've been struggling with this error for a few days now, I just can't understand what's happening really in trouble.

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to fl.video::UIManager /http://www.adobe.com/2007/flash/flvplayback/internal:hookUpCustomComponents)

    to fl.video::FLVPlayback /http://www.adobe.com/2007/flash/flvplayback/internal:handleVideoEvent)

    to::EventDispatcher/dispatchEventFunction() flash.events

    to::EventDispatcher/dispatchEvent() flash.events

    to fl.video::VideoPlayer /http://www.adobe.com/2007/flash/flvplayback/internal:setState)

    to fl.video::VideoPlayer /http://www.adobe.com/2007/flash/flvplayback/internal:finishAutoResize)

    to::Timer/_timerDispatch() flash.utils

    to::Timer/tick() flash.utils

    The app is one for a tourist center, with an introductory video that can be ignored by is activated, which leads to a menu of four options, two options lead you to frames with intro videos that can also be circumvented by a simple click. All three intro videos use the FLVPlayback 2.5 component. The application runs without any problems, even when playing videos smoothly, until, apparently, at random intervals, this error occurs. He, however, only occur at the beginning or the end of a video. I had trouble to trace the error. It causes the program not responding at seemingly random intervals, while the program is used, or even if it's just the video race loop. If I reject the error, the program will continue to run without further questions, with the exception of this error, which can be rejected in turn, etc... However, when it is installed on the system it is simply insensitive because rejecting it is not an option. I wasn't able to catch or to track this error or its source. Any ideas? I'll attatch code to one of my frames with the FLVPlayback instance, since this seems to be where is the error.

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    import flash.events.Event;

    Import fl.video.FLVPlayback;

    Fl.video import. *;

    var heritageVideo:FLVPlayback = heritage_sequence;

    stage.addEventListener (MouseEvent.CLICK, gotoHeritageHistory);

    Stop();

    heritageVideo.addEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

    function gotoHeritageHistory(evt:MouseEvent):void

    {

    gotoAndStop (6);

    stage.removeEventListener (MouseEvent.CLICK, gotoHeritageHistory);

    heritageVideo.removeEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

    heritageVideo.stop ();

    heritageVideo.visible = false;

    }

    function gotoHeritageTwo(evt:VideoEvent):void

    {

    gotoAndStop (6);

    stage.removeEventListener (MouseEvent.CLICK, gotoHeritageHistory);

    heritageVideo.removeEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

    heritageVideo.visible = false;

    }

    It's my first job real as3, so I wouldn't be surprised if I'm missing something obvious, and I hope that this is the case. Let me know if you have any ideas!

    Hello

    Of the error, it seems you are trying to manipulate something that is not yet initialized.  I'm not very familiar with Flash Professional (I do my work using Flash Builder), could you post it on the forums of Flash?  You will probably get a better response there.

    Thank you

    Chris

  • My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009:

    My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009: cannot access a property or method of a null object reference.

    I have a very simple question. I want to take the value of

    Event.Result.Item.nodeindex1.nodeindex2.Row.MyValue;

    and assign it to a text field

    mytextTi.text = event.result.item.nodeindex1.nodeindex2.row.myvalue;

    But if a part of the tree is missing, which is also valid, so I get TypeError: Error #1009: cannot access a property or method of a null object reference.

    I tried various solutions such as the following. Is there any simple way to do this?

    If (event.result.item.nodeindex1.nodeindex2.row.myvalue! = undefined)-does not work

    Unfortunately, one must test all levels to ensure that it is not null before the reference to it. You can take advantage of the short-circuit evaluation in tying together, for example

    if (event.result.item
        && event.result.item.nodeindex1
        && event.result.item.nodeindex1.nodeindex2
        && event.result.item.nodeindex1.nodeindex2.row
        && event.result.item.nodeindex1.nodeindex2.row.myvalue)
    {
        // access the variable
    }
    else
    {
        // one of the XML nodes in the path is null
    }
    

    Or you could stay away from her a little hacky and wrap the reference in a try/catch block.

    -Tom

    Flex SDK engineer

  • TypeError: Error #1009 (SWF loaded)

    I'm pulling my hair out on this one!

    I'm just starting a website (website full-Flash) using CS3 and AS3. I'm pretty much used to the new changes in AS3. I built a rough structure to make sure that the way I wanted to create the site would work (external swf loading, etc.). The tests worked.

    Now, I'm going to do real things, and I get this error as soon as an external SWF to load in:

    ------------------------------------------------------------------------------------------ -----------------------------------------
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at test_fla::MainTimeline/test_fla::frame2()
    ------------------------------------------------------------------------------------------ -----------------------------------------

    I tried this shrinkage, impossible to find the exact culprit (had to remove every shred of ActionScript, before starting to work again). So, I started to rebuild this film entirely - allowed out of the library and deleted all the layers. Did not work. Impossible to add a stop(); action in Frame 1.

    Then I started completely expenses File > New, rebuilt again. I tested after every single change. I finally built it up to the point where I first tested the original, and it worked. Then added some things more re-tested and I get the error again. Ahh, so I removed EXACTLY what I had just added. Re-tested. SAME ERROR - now it won't go away little matter what I delete!

    Crazier still is that I can always load in my other test SWF files and they have stock in them and they are set up exactly the same way - but they work...

    The entire site is new, so each SWF is CS3/AS3. I'm even not doing something crazy, so I'm pretty frustrated trying to build an AS3 all the site and I even do basic stuff...

    I can download/email the FLA files in question, if someone has the time to watch...

    Thank you
    Brandon

    It sounds ridiculous, but I think it had to do with the file names...

    I think that Flash CS3 has some problem with multiple file names using a hyphen, and start with the same word... I changed this:

    -test - container.swf
    -test - home.swf

    to do this:

    -test - container.swf
    -home.swf

    And rebuilt the home.swf from zero (new). And it seems to work now.

    Here, loads of test - container.swf the home.swf inside himself, I think he cannot know how to distinguish between the two because of the initial error in screaming "test_fla" rather than the name 'test-container_fla' or 'test-home_fla.

    Ugh.

  • Flash Player ' TypeError: Error #1009: cannot access a property or method of a null object reference. to town_fla::Button_237 / frame1 () '.

    Hey, I opened a page that runs Flash this always whenever rises ' TypeError: Error #1009: cannot access a property or method of a null object reference.     to town_fla::Button_237 / frame1 () '. The dialog box gives me two options either urgent continue or reject all. Normally I just press "Ignore all" and continue, but I was wondering if there was a solution to this problem. Either way, my computer runs Windows Vista Edition home premium.
    Thanks for the help.

    Hello

    To provide the proper resolution, that I would need more information on your side.

    1. is the computer connected to the domain?

    2. what web browser do you use?

    3. when exactly the problem started?

    I suggest you uninstall and reinstall the latest version of Adobe flash player. Check if it helps.

    Step 1:
    Uninstall Adobe flash player follow the steps in the link following link:

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Step 2:
    Download and install the latest version of adobe flash player from the following link:

    http://get.Adobe.com/flashplayer/

    Hope this information helps. If you need additional help or information on Windows, I'll be happy to help you.

  • Help please! I using Muse (the free trial version) very well since last week, but the last few times I tried to use it, it comes back with ' TypeError: Error #1009 pouvez anyonve tried to use it, it comes back with ' error can all

    Help please! I using Muse (the free trial version) very well since last week, but the last few times I tried to use it, it comes back with ' TypeError: Error #1009 pouvez anyonve tried to use it, it comes back with ' error can someone help me figure out what the problem... I have a few days I really help neee what the problem is... I have a deadline in a few days so I really need! Thank you

    Screen Shot 2015-05-11 at 20.32.34.png

    Restart your Mac. The OSX Drag Manager got in a bad state. The only way to reset it is to restart your computer.

  • Help, please! TypeError: Error #1009: cannot access a property or method of a null object reference.  Help, please!

    Can anyone help! Here's the code from to escape the game of the room that I am creating.  Basically the user will be drag and drop items to reveal the user will collect hidden items.  I got the elements of drag-and - drop but I have a problem with the service that I write to recognize what are the elements and how much has been collected.  I just get the error

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at TheMathsRooms_fla::MainTimeline/ObjectFound()

    When I click on one of the elements, the user must be able to collect.  I checked the chronology and pint, the script is used all THE elements are on the scene.  Any ideas?

    function objectFound

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    var room1_inventoryItem:DisplayObject = getChildByName (room1_inventoryName);

    Event.Target.alpha is room1_inventoryItem.alpha = 100;.

    founditems ++;

    Event.Target.alpha = 0

    }

    Here I put the items in stock to be invisible until they are

    room1_inventoryone_mc.Alpha = 0

    room1_inventorytwo_mc.Alpha = 0

    room1_inventorythree_mc.Alpha = 0

    room1_inventoryfour_mc.Alpha = 0

    room1_inventoryfive_mc.Alpha = 0

    room1_inventorysix_mc.Alpha = 0

    A variable is created to count the number of items the player has found.  At the beginning of the game, it is set to 0

    var founditems:Number = 0;

    Here, I'm telling Flash to keep track of what the user has found by listening to what were clicked on and then by running the objectFound function.

    room1_hiddenone_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddentwo_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenthree_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfour_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfive_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddensix_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    Here's the function to allow the items to drag and drop

    function StartDragging (e:MouseEvent) {}

    e.currentTarget.startDrag ();

    }

    function StopDragging (e:MouseEvent) {}

    e.currentTarget.stopDrag ();

    }

    This shows that items can now be dragged and lowered some will reveal hidden items

    Bluechair.buttonMode = true;

    Bluechair.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Bluechair.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pencilcase.buttonMode = true;

    Pencilcase.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pencilcase.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting.buttonMode = true;

    Painting.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Rubbish.buttonMode = true;

    Rubbish.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Rubbish.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting2.buttonMode = true;

    Painting2.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting2.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Trunk.buttonMode = true;

    Trunk.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Trunk.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pillow.buttonMode = true;

    Pillow.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pillow.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Click file > publishing settings > swf and check the box "enable debugging".  test.

    the number of problematic line will be in the error message that allows you to quickly identify the problematic reference which is probably room1_inventoryItem.  use the function trace to confirm:

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    trace (room1_inventoryName);

  • Adobe Air + Box2D.swc = TypeError: Error #1009 / / new way of managing .swc files in Flash for iOS Apps?

    Hello

    I need your help please - I need to update one of my iOS Apps. In this application, I use Box2d for a simple maze game (this is an application for children). When I publish and test this game on my Mac it works fine. I can drag my hero (fish) in this maze and all detections of collision, gravity etc perfect work.

    maze.jpg

    When I test it on my iPad it does not work. The device debugger shows this error message:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    Global $init)

    Global $init)

    at Box2DAS.Common::b2Base$/initialize() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31]

    to wck::WCK/create() [/ utilisateurs/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/WCK.as:26]

    in misc::Entity/ensureCreated() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50]

    in misc::Entity/handleAddedToStage() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100]

    in misc::Entity/handleAddedToStage()

    Line 31: loader = new CLibInit();

    Bildschirmfoto 2014-10-23 um 21.06.03.png

    I guess that "CLibInit" must come from the .swc file.

    The thing is:

    I won't change anything in this maze game - it seems it has to do something with the new version of Flash or Adobe Air. File box2d.swc is included:

    Bildschirmfoto 2014-10-23 um 21.01.26.png

    It has always worked like that - and it works when test on my Mac - but it doesn't work anymore on my current system.

    So I started my Mac from an older system (10.9.5 on an external HD) and published the App in Flash and Adobe Air 13.0 CS6 - then all of a sudden, he is working on my iPad as before. I was able to draw a fish and make it arround.

    The same project / app released from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 does not work. I still have this error message - I can't drag the fish - nothing happens. And I have no idea why this happens and what I could do. I searched all day for a solution but found nothing.

    If nothing has changed by the way Flash and/or Air manages the .swc files? Is there another way to include: import cmodule. Box2d.* / CLibInit?

    -If someone has an idea - please let me know!

    Best regards

    Jan

    SOLVED!

    I uncheck 'Schnelleres Verpacken aktivieren (Beta)' and now it works again! Hooray!

    @ Adobe: Please take a look at this!

  • TypeError: Error #1009:

    Here is my error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at GuitarAnimation_2_fla::MainTimeline/frame176()

    at flash.display::MovieClip/gotoAndStop()

    at GuitarAnimation_2_fla::MainTimeline/Chome()

    My animation film is to teach the user what each channel name and the sound is and how to play 3 different simple chords on a guitar. Each section of the rope has a under section Learn placement of finger and also to hear/see the agreement currently playing.

    I have action 3 layers and one for the main Navigation buttons, one for the buttons on the page of guitar strings, and one for the navigation on each sub buttons learn the rope page. I pasted the code I get an error on. I ran the debugger and it said problems with line 7, in which I marked in red below. This code, here's the whole error I get when I run the debugger.

    under navigation

    import flash.events.MouseEvent;

    Stop();

    c_placebtn.addEventListener (MouseEvent.CLICK, c_place);

    hear_cbtn.addEventListener (MouseEvent.CLICK, c_hear);

    d_placebtn.addEventListener (MouseEvent.CLICK, d_place);

    hear_dbtn.addEventListener (MouseEvent.CLICK, d_hear);

    g_placebtn.addEventListener (MouseEvent.CLICK, g_place);

    hear_gbtn.addEventListener (MouseEvent.CLICK, g_hear);

    function c_place(event:MouseEvent):void {}

    gotoAndStop ("cfingers")

    c_placebtn.Alpha = 0;

    hear_cbtn. Alpha = 100;

    }

    function c_hear(event:MouseEvent):void {}

    gotoAndStop ("c_hear_chord")

    c_placebtn. Alpha = 100;

    hear_cbtn.Alpha = 0;

    }

    function d_place(event:MouseEvent):void {}

    gotoAndStop ("dfingers")

    d_placebtn.Alpha = 0;

    hear_dbtn. Alpha = 100;

    }

    function d_hear(event:MouseEvent):void {}

    gotoAndStop ("d_hear_chord")

    d_placebtn. Alpha = 100;

    hear_dbtn.Alpha = 0;

    }

    function g_place(event:MouseEvent):void {}

    gotoAndStop ("gfingers")

    g_placebtn.Alpha = 0;

    hear_gbtn. Alpha = 100;

    }

    function g_hear(event:MouseEvent):void {}

    gotoAndStop ("g_hear_chord")

    g_placebtn. Alpha = 100;

    hear_gbtn.Alpha = 0;

    }

    Complete debugger error

    Try to launch and connect to player using the URL C:\Users\owner\Documents\AIOP-Schoolwork\Interactive Authoring\Class Project\Guitar Animation_2.swf

    [SWF] C:\Users\owner\Documents\AIOP-Schoolwork\Interactive Authoring\Class Project\Guitar Animation_2.swf - 153383 bytes after decompression

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at GuitarAnimation_2_fla::MainTimeline/frame176() [GuitarAnimation_2_fla. MainTimeline::frame1 76:7]

    at flash.display::MovieClip/gotoAndStop()

    at GuitarAnimation_2_fla::MainTimeline/Chome() [GuitarAnimation_2_fla. MainTimeline::frame1:17]

    If the information you have provided is accurate, d_placebtn does not exist when this line of code is run.

  • TypeError: Error #1009: Variable

    If I do a timeline in as3. And this happen

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at arrow_Scene1_fla::MainTimeline/frame2()

    The code in box 2 is

    Stop();

    myscore var = 0;

    score. Text = "$" + myscore;

    var mylive = 3;

    Live.Text = "Live:" + mylive;

    var myspin = 0;

    Spin.Text = ' Spin: "+ myspin;

    btn_play.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

    function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void

    {

    gotoAndPlay (5);

    }

    btn_rule.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void

    {

    gotoAndPlay (3);

    }

    BTN_CREDIT.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);

    function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void

    {

    gotoAndPlay (4);

    }

    The fat is I think the cause.

    Here's one thing

    (a) no matter what, when I do a variable for the score. This message appears. Yet a new file. ONLY

    RARE CASES WHERE THIS IS NOT SERIOUS.

    Old file not affected, but new file.

    (b) the syntax in bold, no matter where I move it, follows the error. The old frame err message missing

    score, living or spin does not exist when your code runs.

    to identify the error, click file > publishing settings > swf and check the box "enable debugging" and retest.  the number of problematic line will be in the error message.

  • TypeError: Error #1009 but my purpose is here.

    Hi all

    On frame 1 on my main stage, I have a clip (IndexMC)

    Inside of that movieclip, I have a button (Index_Safety)

    Frame 1, I have a few AS3:

    IndexMC.Index_Safety.addEventListener (MouseEvent.CLICK, INDEX_Safety);

    function INDEX_Safety (e:MouseEvent): void

    {

    Play();

    INDEX_SAFETY = true;

    Sound_Stopper ();

    }

    When I run it, I get this error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at Newflashlayout_fla::MainTimeline/frame1() [Newflashlayout_fla. MainTimeline::frame1:14]

    Normally, when I get this error, it is because it cannot find the object that I've referenced. However, I am SEO IndexMC.Index_Safety on frame 1 and the movieclip (IndexMC) with the button (Index_Safety) is on frame 1.

    Newflashlayout_fla. MainTimeline::frame1:14 is:

    IndexMC.Index_Safety.addEventListener (MouseEvent.CLICK, INDEX_Safety);

    You are welcome and if you all put please mark the thread responded, so we can filter without response. Good luck!

  • TypeError: Error #1009: cannot access a property or method of a null object reference. Why have I not

    TypeError: Error #1009: cannot access a property or method of a null object reference. Why do I always have problems mind flash and shockwave. Why adobe does not solve their products?

    .

    This isn't a problem of Flash... it's a mistake to designer.

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

    It could also be other less obvious reasons.

    If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

  • TypeError: Error #1009: when communicating to a button in a MovieClip

    I get the following error:

    [SWF] ProjectZ_iOS.swf - 12154544 bytes after decompression

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at ProjectZ_iOS_fla::MainTimeline/goButtons() [ProjectZ_iOS_fla. MainTimel ine::frame71:54]

    By trial and error, I have reduced this problem down (line 54) of an 'if' statement (and all the other instructions) that communicate to a button in a movie clip (PopUp_GetMore.bnt_MoreRemixesGoHome). When the user clicks this button I want to delete the movieclip on the stage and turn the visibility of the other buttons to true. I get this error for every query that communicates to a button in the movieclip. I have several conditions in the service, but for example I am love, only include the declaration for a button below:

    Variables

    var PopUp_GetMore:MainMoreRemixes_mc = new MainMoreRemixes_mc();

    //******************************Stage buttons**************************************

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    Add the movieclip on the stage

    if(Event.Target == bnt_GetMore)

    {

    addChild (PopUp_GetMore);

    PopUp_GetMore.x = stage.stageWidth/2;

    PopUp_GetMore.y = stage.stageHeight/2;

    bnt_Behind.visible = false;

    bnt_GetMore.visible = false;

    bnt_Facts.visible = false;

    bnt_AuthorIllustrator.visible = false;

    }

    Deletes the clip of the scene

    If (event.target is PopUp_GetMore.bnt_MoreRemixesGoHome)

    {

    removeChild (PopUp_GetMore);

    bnt_Behind.Visible = true;

    bnt_GetMore.Visible = true;

    bnt_Facts.Visible = true;

    bnt_AuthorIllustrator.Visible = true;

    }

    }

    What I am doing wrong? If the declarations as communcate with the buttons inside the movieclip appear in another function?

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

    If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

    And just in case it might be a misspelling... If it is a button would not name more likely include "btn" rather than "bnt".

  • TypeError: Error #1009: How can I find the exact line of the error?

    I got the following error when testing a project:

    [SWF] ProjectZ_iOS.swf - 12154544 bytes after decompression

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at ProjectZ_iOS_fla::MainTimeline/goButtons() [ProjectZ_iOS_fla. MainTimeline::frame71:54]

    I don't know how to read what there isn't any 'framework' 71 Moreover, that means this average, 'MainTimeline::frame71:54 '?

    Since no one has mentioned, the line number is 54.  Field 71, line 54.

Maybe you are looking for