Error #1009: When eventlistener is other than frame 1

So, what I'm trying to do is build a simple page where from the first page with buttons. You click a button and it fires off a simple gotoandstop function like this:
stop();
l2v2_btn.addEventListener(MouseEvent.CLICK, l2v2);
function l2v2(event:MouseEvent):void
gotoAndStop(2);
From there I want each page to have a bunch of buttons, each button has a sound that plays when you hit it. Wonder, works, easy, swell.
The problem arises when I try to attach a function to those buttons. I want each button press to add a child, or remove a child. Now...when I just do it all on frame 1 - no problem, but when I go from frame 1 (main menu to any other frame (at this point frame 2) I get this, an error that I'm so sick of I can puke.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ****_fla::MainTimeline/frame2()
at flash.display::MovieClip/gotoAndStop()
at ****_fla::MainTimeline/l2v2()
actions on frame 1 are printed above
code on frame 2 ate here:
var nd:And = new And();
var big:Big = new Big();
var current = "none";
and_btn.addEventListener(MouseEvent.CLICK, fAnd);
big_btn.addEventListener(MouseEvent.CLICK, fBig);
function fBig(event:MouseEvent):void
if(current == "none")
addChild(nd);
current = nd.name;
else if(current != "none")
removeChild(getChildByName(current));
addChild(nd);
nd.x = 818;
nd.y = 438;
current = nd.name;
function fAnd(event:MouseEvent):void
if(current == "none")
addChild(big);
current = big.name;
else if(current != "none")
removeChild(getChildByName(current));
addChild(big);
current = big.name;
Basically I just want a main page, I click a button takes me to another page with buttons, each button plays a vocabulary audio and adds a sprite (vocab word to the stage) when
It works when I'm on frame one, the swapping out the sprites, but when I try to go another frame with the same it get the aforementioned error. I know this is a simple fix, could someone please help? This is driving me bonkers

Thanks, I did what you suggested, and still got the same error. I haven't used flash in years (like 10) so rusty is beyond how I am, not to mention I was never adept at it. That said, when I checked the permit=-debugging and re-ran, nothing new happened it still spit out:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
  at TesT_2_fla::MainTimeline/frame2()[TesT_2_fla.MainTimeline::frame2:6]
This isn't coming up as an error though.
These seem to be the offending lines (since the program runs, doesn't work of course, but runs without flash complaining) when I comment them out
and_btn.addEventListener(MouseEvent.CLICK, fAnd);
big_btn.addEventListener(MouseEvent.CLICK, fBig);
I have nothing on the frame 1 stage, the only code I have is gotoAndStop(2) - I've tried running it without this code and same problem
frame 2 I have the two buttons and the second batch of code above.
The thing is when I have it all on frame run, it runs without a hitch.
What's happening (at least it seems to me) is the play head gets to frame 2, runs the code before the stage is populated and doesn't see the buttons and balks, is there any way around this?
Thanks for your reply and any further help you may be able to offer.
I' suprised I haven't seen anyone else with this problem, it just seems like such a noobie mistake is being made somewhere.

Similar Messages

  • Error #1009 When trying to return to frame 1

    I am getting an error #1009 "Cannot access a property or method of a null object reference."  Frame one is not empty. I have buttons in frame 1 that use this code to gotoAndStop on frames 5,10,25...they work just fine.  I only get the error when trying to return to frame 1 from those locations. Can someone help me out with this issue?
    stop();
    btn_rtni.addEventListener(MouseEvent.CLICK, mainBooth_1);
    function mainBooth_i(MouseEvent):void {
                gotoAndStop(1);

    I allowed "debugging" and this is the error that appreared.  But I still don't get what the problem is or how to correct it.  Most of my content is in frame 1, so I don't understand why it's returning null.  Any advice would be appreciated.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at VB_NABR_fla::MainTimeline/frame1()[VB_NABR_fla.MainTimeline::frame1:93]

  • 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???

  • Error #1009 when creating apps in App Builder

    Customers using DPS App Builder to create applications with .mobileprovision files created in the iTunes  Developer Portal after 7/17/2014 are experiencing error #1009 when attempting to create the application. This only impacts customers using .mobileprovision files created after 7/17/2014. Older .mobileprovision files will work correctly.
    We are investigating the changes necessary to update App Builder to support recent changes to the .mobileprovision files generated by the iTunes Developer Portal. An update will be posted to http://status.adobedps.com/ by Monday, July 21st, at 8am PDT.
    Neil

    Hi,
    Based on my research, there are many factors can cause this issue. For more details, we can refer to the following possible causes:
    Some configuration did not configure well. Open the Reporting Services Configuration Manager to check all the configuration, see
    http://msdn.microsoft.com/en-us/library/aa337424(v=sql.110).aspx on Reporting Services Tools.
    In the reporting services configuration manager tool, rebuild the virtual directory of report manager/report server.
    If the report server enables SSL, recreate a certificate and then rebind it to report server.
    It may resulted in config file of the report server / service.
    changing the AuthyenticatonTypes to RSWindowsNTLM in the report server config file.
    Besides, the issue can also be caused by the web.config for the SharePoint site was not correctly modified by the Reporting Services Add-in for SharePoint. For more details, please see the following posts:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a8a66827-0995-4f87-bcae-f7750fa5d3fa/error-client-rendering-the-remote-server-returned-an-error-403-forbidden?forum=sqlreportingservices
    http://www.sqlservercentral.com/Forums/Topic780464-150-1.aspx#top
    Hope this helps.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I have an IPod touch 4 gen. And I'm having problems with the audio when I use other than Apple brand earphones

    I have an Ipod Touch 4 gen. and I'm having problems with audio when I use other than Apple brand earphones. I'm talking about music only so far, when I use apple earphones all is fine, but if I use other type of phones ( sony for exemple ) I can only hear the music and the background but not the lead singer voice, can anybody explain this to me? thank you.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    - If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • Error #1009 when switching scene or frame.

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at map_fla::MainTimeline/limit()
              at map_fla::MainTimeline/moving()
    here is my code
    backS1.addEventListener(MouseEvent.MOUSE_DOWN, goS1);
    function goS1(Event):void{
            gotoAndStop(1, "Scene 1");
    F5.addEventListener(MouseEvent.MOUSE_DOWN, gotoF5);
    function gotoF5(Event):void{
            gotoAndStop(5);
    var toR:Boolean=false;
    var toL:Boolean=false;
    var toU:Boolean=false;
    var toD:Boolean=false;
    stage.addEventListener(KeyboardEvent.KEY_UP, notClick);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onClick);
    stage.addEventListener(Event.ENTER_FRAME, moving);
    function onClick(event:KeyboardEvent):void {
        switch (event.keyCode) {
        case Keyboard.RIGHT :
            toR=true;
        break;
        case Keyboard.LEFT :
            toL=true;
        break;
        case Keyboard.UP :
            toU=true;
        break;
        case Keyboard.DOWN :
            toD=true;
        break;
    function notClick(event:KeyboardEvent):void {
        switch (event.keyCode) {
        case Keyboard.RIGHT :
            toR=false;
        break;
        case Keyboard.LEFT :
            toL=false;
        break;
        case Keyboard.UP :
            toU=false;
        break;
        case Keyboard.DOWN :
            toD=false;
        break;
    function moving(event:Event):void {
        limit(map);
        if (toR) {
            map.x-=5;
        if (toL) {
            map.x+=5;
        if (toU) {
            map.y+=5;
        if (toD) {
            map.y-=5;
    navU.addEventListener(MouseEvent.MOUSE_DOWN, goU);
    navD.addEventListener(MouseEvent.MOUSE_DOWN, goD);
    navR.addEventListener(MouseEvent.MOUSE_DOWN, goR);
    navL.addEventListener(MouseEvent.MOUSE_DOWN, goL);
    navC.addEventListener(MouseEvent.MOUSE_DOWN, goC);
    function goU(Event):void{
        map.y += 25;
    function goD(Event):void{
        map.y -= 25;
    function goR(Event):void{
        map.x -= 25;
    function goL(Event):void{
        map.x += 25;
    function goC(Event):void{
        map.x = stage.stageWidth/2;
        map.y = stage.stageHeight/2;
    map.addEventListener(MouseEvent.MOUSE_DOWN, Drag);
    map.addEventListener(MouseEvent.MOUSE_UP, Drop);
    map.addEventListener(MouseEvent.MOUSE_OUT, Drop);
    function Drag(Event):void {
        map.startDrag();
    function Drop(Event):void {
            map.stopDrag();
    function limit(o:MovieClip) {
       if (o.x + 364.5 < 500) {
           o.x = 500 - 364.5;
       else
       if (o.x - 364.5 > 50) {
           o.x = 50 + 364.5;
       if (o.y + 309.5 < 375) {
           o.y = 375 - 309.5;
       else
       if (o.y - 309.5 > 25) {
           o.y = 25 + 309.5;
    when I run my code, it's going well. the problem when I switch to another scene or frame it shows error #1009 and become lagging. but the code can still running. I dont know where the problem is. I'm totally noob. ty in advance.

    One way would be to remove the event listener that calls the moving function whenever you leave the frames where map exists...
    stage.removeEventListener(Event.ENTER_FRAME, moving);
    Another option would be to test for the existence of map in the moving function before you execute any code that targets it.

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Chart causing error 1009 when enabling compatibility mode in Flash Builder 4

    Hello.
    I'm trying to use the chart components in Flash Builder 4. I'm using Flex SDK 4, but had to turn on the "Flex 3 compatibility mode" for some off-topic reasons.
    I simply created a new application and copied the code from the DateTimeAxis class example: http://www.codigoactionscript.org/langref/as3/mx/charts/DateTimeAxis.html#includeExamplesS ummary
    When running the example, the following error is reported (sorry, it is in italian: it's simply the "null object" error):
    TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
    at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
    at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Is there a solution to this bug? We really need to use charts AND keep the Flex 3 compatibility mode.

    I use SDK 4.1 but I also get the error: (Flashbuilder 4.0.1 in Flex 3 compatibility mode)
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
        at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    So I guess it is not solved....
    regards,

  • Error 1009 when compile to Air 2.6

    I have three movieclips, imported as part of a FLA file  from inDesign.
    There are 3 frames in the movie labeled, page_one, page_two, and page_three
    There is one movieclip on each frame labeled as follows:
    page_one had movieclip spread_one
    page_two had movieclip spread_two
    page_three had movieclip spread_three
    there is actionscript on each frame:
    on frame 1, (label page_one):
    stop();
    spread_one.addEventListener(MouseEvent.CLICK, moveme1);
    function moveme1(e:MouseEvent):void{
             gotoAndStop("page_two");
    on frame 2 (label page_two):
    stop();
    spread_two.addEventListener(MouseEvent.CLICK, moveme2);
    function moveme2(e:MouseEvent):void{
              gotoAndStop("page_three");
    on frame 3 (label page_three):
    stop();
    spread_three.addEventListener(MouseEvent.CLICK, moveme3);
    function moveme3(e:MouseEvent):void{
              gotoAndStop("page_one");
    when I compile in flash, it works.
    when I compile in air 2.6 I get this error after I click on frame 3 (page_three), in spread_three:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at objecthood_fla::MainTimeline/frame1()[objecthood_fla.MainTimeline::frame1:5]
        at flash.display::MovieClip/gotoAndStop()
        at objecthood_fla::MainTimeline/moveme3()[objecthood_fla.MainTimeline::frame3:8]
    frame1:5 is the line, which works the first time it is clicked on frame 1:
    spread_one.addEventListener(MouseEvent.CLICK, moveme1);
    frame3:8 is the line:
    spread_three.addEventListener(MouseEvent.CLICK, moveme3);
    I created another 3 page test spread in inDesign, with only a rectangle on each page and exported as FLA.
    I used the same code as above and it compiled fine in both air and flash.
    Does anyone have any clues?
    thanks
    e

    I fixed it. it was not the code. it was the use of text. This time when exporting, I  turned the TLF text to pixels, and now it compiles fine. I isolated the problem by dismantling each item in the indesign spread, and seeing when the problem occured. once I removed the type, it had no issues. I was using hanging indents. Maybe that was the issue. All I know is once I turned off the TLF text option, there are no problems.It is sad to lose that feature. but at least it works, and I would rather have my type look well formatted with hanging intents, and correct kearning, even if i have to rasterize it first.
    geez. that was fun.

  • Error 1009 when loading swf?

    Hi
    I am trying to load an external swf (which references external files)
    everything seems to be fine only when i publish it i get error 1009
    Here is my code
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("mainVideo/preview.swf");
    loader.load(defaultSWF);
    addChild(loader);
    The strange thing i that i followed this tutorial
    http://www.youtube.com/watch?v=8hAIW0ppDww
    and write the same code but i still get the error.
    I read about referencing external swf with referenced files, seems to be an issue with that, am i right?
    Thanks.

            public function videoplayer()       
                //set default values
                addEventListener(Event.ADDED_TO_STAGE,setDefaultValues);
                //read flashvars
                readFlashVars();
                //init video player
            //set default values function
            private function setDefaultValues(e:Event){
                //set scale properties
                stage.scaleMode=StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;   
                //add fullscreen event to the stage
                stage.addEventListener(FullScreenEvent.FULL_SCREEN, fsEvent);
                stage.addEventListener(KeyboardEvent.KEY_UP, keyDownHandler);
                //set video url
                videoUrl = "videos/video1.flv";
                //set image url
                imageUrl = "image/image1.jpg";
                //set video height
                videoHeight = 320;
                //set video width
                videoWidth = 480;
                //set autoplay to false;
                autoplay = "false";           
                All_mc.videoHolder_mc.alpha = 0;
                All_mc.controls_mc.playPauseBut_mc.pause_mc.visible = false;
                All_mc.playPause_mc.pause_mc.visible = false;
                All_mc.controls_mc.playPauseBut_mc.pause_mc.over_mc.visible = false;
                All_mc.controls_mc.playPauseBut_mc.pause_mc.click_mc.visible = false;
                All_mc.controls_mc.playPauseBut_mc.play_mc.over_mc.visible = false;
                All_mc.controls_mc.playPauseBut_mc.play_mc.click_mc.visible = false;
                All_mc.controls_mc.fullscreenBut_mc.over_mc.visible = false;
                All_mc.controls_mc.fullscreenBut_mc.click_mc.visible = false;
                initPlayer();
                //make player visible
                All_mc.alpha = 1;
                //add buttons events
                addButtonsEvents();
                //load image
                loadImage();
                //load video
                loadVideo(true);
    MAKE SURE YOU HAVE THE video1.flv in a directory called videos and its relative to the swf.
    BR
    Murtuza
    http://www.sowebme.com/murtaza

  • Error #1009 when loading a module

    Hello Forum Folks,
    I'm in the process of trying to upgrade our app from 2.0 to
    2.0.1. In this application we have an SWFLoader that loads up
    applications as requested by the user. It worked fine with no
    problems. I'm attempting to use the ModuleLoader in the same way,
    but I am receiving this error:
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mx.managers::HistoryManager$/register()
    at mx.containers::ViewStack/::addedHandler()
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::$addChildAt()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\core\UIComponent.as:4676
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 278]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at com.sundt.addressbook::find_company_criteria/initialize()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.containers::Form/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Form.as :179]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.containers::Form/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Form.as:1 68]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.containers::Panel/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks \mx\containers\Panel.as:1308]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.containers::Panel/mx.containers:Panel::createChildren()[C:\dev\flex_201_gmc\sdk\framew orks\mx\containers\Panel.as:863]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at com.sundt.addressbook::company_find_app/initialize()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.modules::ModuleLoader/mx.modules:ModuleLoader::moduleReadyHandler()[C:\dev\flex_201_gm c\sdk\frameworks\mx\modules\ModuleLoader.as:339]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    ModuleManager.as$117::ModuleInfoProxy/ModuleManager.as$117:ModuleInfoProxy::moduleEventHa ndler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\modules\ModuleManager.as:1025]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    ModuleManager.as$117::ModuleInfo/readyHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\mod ules\ModuleManager.as:704]
    I'm not sure what is null, as I don't have the source code
    for the HistoryManager. It seems to be generating an error while
    attempting to initialize a component that is part of the module
    that it is currently loading. The strange part about this is that I
    can load the module a once and then it will error, as show below:
    [SWF] /flex/PMPortal/pmportal-debug.swf - 1,033,911 bytes
    after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    [SWF] /flex/PMPortal/blank_app.swf - 484,084 bytes after
    decompression
    [SWF] /flex/PMPortal/blank_app.swf - 484,084 bytes after
    decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/contact_find_app.swf - 678,199
    bytes after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/personalCompanies/personal_companies_wizard_app.swf
    - 809,691 bytes after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mx.managers::HistoryManager$/register()
    There are also times that it will error on loading another
    module just once.
    Now, I am loading all my modules through the same
    ModuleLoader without unloading them. I assume that this is correct
    way to do this.
    If I comment out the offending component, everything works
    fine. The components worked fine before when I had them in
    applications.
    Not sure where to go from here... any ideas would be great.
    Thanks in advance.
    --Andy

    quote:
    Originally posted by:
    josh1093
    I am getting the same error loading modules. For me I found
    that changing the layout properties of the container that I am
    loading the module in made the problem appear and go away. I'm
    loading a module as an itemrenderer in a TileList. If I set the
    columnWidth and rowHeight properties of the list then I have
    problems. If I don't set them both, then I get the
    "ModuleManager.as:671" null pointer problem. I'm guessing that by
    setting the size ahead of time for the itemRenderer flex doesn't
    need to query the module until later which gives it time to load.
    Seems like a race condition to me. This is yet another bug in flex.
    My application populates a number of VBox ( the number of
    boxes are based on the xml data). Each VBox loads the module with
    different data set. The module only contain advancedatagrid. The
    VBox's size are preset with percentwidth and percentheight prior
    calling a module loader. I also tried to specified the size in
    pixels. But, no luck.
    Once a while, I got the below messages at the console window
    running in debug mode. Is the unload swf message normal? I have no
    intention to unload the module in my code. If the module shouldn't
    be unload, then obviously there is a problem.
    [SWF] /SARA/CellDashboard.swf - 1,564,059 bytes after
    decompression
    [SWF] /SARA/modules/TrendChart.swf - 1,576,416 bytes after
    decompression
    [SWF] /SARA/modules/StdDataGrid.swf - 1,043,055 bytes after
    decompression
    [SWF] /SARA/modules/StdDataGrid.swf - 1,043,055 bytes after
    decompression
    [SWF] /SARA/modules/AdvDataGrid.swf - 1,259,638 bytes after
    decompression
    [SWF] /SARA/modules/AdvDataGrid.swf - 1,259,638 bytes after
    decompression
    [Unload SWF] /SARA/modules/AdvDataGrid.swf

  • Error 1009 when accessing webservice elements

    I'm learning flex and Flash Builder 4.6 and doing a small example project.
    I've created a mobile app test using a web service. I got the web service to work, creating xml dataset. I can get the flex code to access the web service and read the file. That works so far. The code reads the whole xml file from the web service and presents it. What I don't quite see is how to read only the elements. When I specify the .LastResult.element.element I get Error #1009: Cannot access a property or method of a null object reference. during runtime.
    I can post the  webservice xml result if that helps. Thanks for any insights.
    Here's the code
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            creationComplete="view1_creationCompleteHandler(event)"
            xmlns:service1="services.service1.*"
            xmlns:uws_lookups="services.uws_lookups.*"
            title="HomeView">
        <fx:Script>
            <![CDATA[
                import mx.rpc.soap.WebService;
                import mx.collections.ArrayCollection;
                import mx.rpc.AsyncResponder;
                import mx.collections.XMLListCollection;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;       
                import spark.events.IndexChangeEvent;
                import spark.events.TextOperationEvent;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:WebService
                id="SampleDBwebserviceCS"
                wsdl="http://localhost:57074/Service1.asmx?WSDL"
                showBusyCursor="true" 
                useProxy= "false"
                makeObjectsBindable="true">
                <s:operation  name="Getmember" resultFormat="xml">
                </s:operation>
            </s:WebService>
            <s:CallResponder id="GetmemberResult"/>
            <service1:Service1 id="service1"/>
        </fx:Declarations>
        <s:VGroup width="60%" height="60%" color="#10851E" fontFamily="Arial" fontSize="10"
                  fontWeight="normal" horizontalAlign="center" verticalAlign="middle">    
            <s:TextArea id="lblResult" x="2" y="0" width="188" height="234"
                        creationComplete="view1_creationCompleteHandler(event)"
                        text="{GetmemberResult.lastResult}"> 
            </s:TextArea>
            <!-- Returns the whole xml result - all fields  all xml definitions -->
            <!-- Want to return GetmemberResult.lastResult.Sales.FirstName -->
            <!-- however this causes a 1009 error on Sales-->
            <s:Button
                label="Get Data"
                click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult"
                x="10"
                y="568">
            </s:Button>   
        </s:VGroup>
    </s:View>
    1009 error when I insert this property in the <s:Button   tag: 
    click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult.Sales.FirstName"
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at views::SampleSQLHomeView/___SampleSQLHomeView_Button1_click()[C:\Users\phillip\Adobe Flash Builder 4.6\SampleSQL\src\views\SampleSQLHomeView.mxml:121]

    I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
    Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
    (BTW, I've not used s:Operation before, but is your syntax correct?)
    G

  • Error 1009 when run on different server

    My app has a master detail layout populated by remote calls
    to cfcs.
    A cfc returns a query for the master list and that part works
    fine. After the master list is populated or when selecting any row
    in the master list another cfc is called to return an object to
    populate the detail area.
    This part also works fine on our testing server but when I
    try it on our production server I get an error 1009:
    TypeError: Error #1009: Cannot access a property or method of
    a null
    object reference.
    at orders::OrdersList/::showOrder()
    at orders::OrdersList/___Operation2_result()
    Both servers appear to be identical (Windows 2003, CF version
    7.02
    latest hotfixes)
    I've checked the cfc and it work as expected on both
    machines. Both machines have identical files, i.e., cfc's and swf.
    Any idea why the application would work on one server but not
    on the
    other?
    Thanks

    Hi Tracy,
    Both the testing and production servers are separate from my
    development environment. I'm not using a security sandbox. Other
    cfc's which return queries (not objects) work ok.
    This is the data service call:
    <mx:method name="getOrder" result="showOrder(event.result
    as ORDERS)" fault="FAB.faultHandler(event)" />
    The faultHandler doesn't get called.
    showOrder starts like this:
    private function showOrder(result:ORDERS):void
    Alert.show('showing order');
    currentOrder = result;
    The alert displays after the error message so I assume that
    showOrder is not receiving the result.
    Bob

  • Error 1009 when dragging and dropping

    Hello All,
    I have a problem in a large application with dragging and dropping between datagrids. I created a simple example of the issue below. Basically, when I press the button I get a pop-up with 2 datagrids. When Initially try to drag an item from the source grid to the destination grid I get a serious of errors:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    ..etc
    If I then try and drag and drop again, it works without error. Can anyone shed light on this? Code below:
    The Main App:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
        <fx:Script>
            <![CDATA[
                import mx.core.FlexGlobals;
                import mx.core.IFlexDisplayObject;
                import mx.managers.PopUpManager;
                import mx.managers.DragManager;
                private var popUpManager:PopUpManager;
                private var dragManager:DragManager;
                protected function button1_clickHandler(event:MouseEvent):void
                        var largePanelWindow:IFlexDisplayObject = PopUpManager.createPopUp(FlexGlobals.topLevelApplication as DisplayObject, testDrop, true);
                        var largeSimPanelInstance:testDrop = largePanelWindow as testDrop;
                        PopUpManager.centerPopUp(largeSimPanelInstance);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Button x="546" y="59" label="Button" click="button1_clickHandler(event)"/>
    </s:Application>
    The Component:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300" creationComplete="creationCompleteHandler()">
        <fx:Script>
            <![CDATA[
            private function creationCompleteHandler():void
                srcGrid.dataProvider = ['cat','dog','bird'];
                destGrid.dataProvider =[];
            ]]>
        </fx:Script>
        <s:Panel x="10" y="0" width="380" height="290">
            <mx:DataGrid id="srcGrid" dragEnabled="true" dragMoveEnabled="true" x="58" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
            <mx:DataGrid id="destGrid" dragEnabled="false" dropEnabled="true" x="226" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
        </s:Panel>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:Group>

    I can confirm this error. I'm using Firefox, Windows Vista, Flash Player 10, SDK build 11250. There are two error boxes that appear when you try to drag an item on the first attempt and on successive attempts (but only if you drag over the destgrid, then back to the srcgrid and then back again to the destgrid). It's gotta be a bug, here are the stack traces:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.controls.listClasses::ListBase/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:8548]
         at mx.controls::DataGrid/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5670]
         at mx.controls.listClasses::ListBase/dragDropHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10428]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/mouseUpHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:580]
         at mx.managers.dragClasses::DragProxy/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:530]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.managers::SystemManager/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:3314]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    and
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.core::UIComponent/drawFocus()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:9008]
         at mx.controls.dataGridClasses::DataGridBase/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2954]
         at mx.controls::DataGrid/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5640]
         at mx.controls.listClasses::ListBase/dragEnterHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10337]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    - e

  • Error: This page has graphics other than images or text on it

    I recently upgraded to Adobe Acrobat 9 Pro, and I am experiencing a problem
    with OCR text recognition.
    If I use "Create PDF from Scanner" or "Create PDF from file" (using a
    monochrome TIFF image) to create a PDF, I can then perform OCR on the PDF
    file in Acrobat.
    But if I open a monochrome TIFF image in some other program (Irfanview) and
    print that to the Adobe PDF printer, then open that PDF in Acrobat and try
    to perform OCR on it, I get the following message:
    "Acrobat could not perform recognition (OCR) on this page because: This page
    has graphics other than images or text on it. It cannot be captured."
    If I select the scanned image in the PDF file using the TouchUp Object tool,
    and then cut it to the clipboard, I am then able to then select a second
    blank object on the page, that has the same dimensions as the scan (it is
    full page size). If I delete that object, then paste the first one back in
    (the scanned image), then OCR will work. So what is this additional object
    that is preventing OCR? I did not have this issue with versions 4-8 of
    Acrobat.
    Also, this problem appears to only pertain to 1-bit monochrome images. I
    scanned the same page to 8-bit grayscale, then printed that to Adobe PDF
    from Irfanview, and that PDF file allows OCR to be performed. Does anyone
    else have a problem using OCR when the PDF was created by printing a
    monochrome raster image to PDF?

    Not sure this will work for indesign, but for any other searches about the OCR problem with "This page has graphics other than images or text on it", I used this workaround for a huge scanned text that Acrobat 9 Pro wouldn't OCR:
    1. Save As.... > TIFF image
    This saved each page as a tiff, so if your file is big, you might want to create a special folder for it. (I had 1100 pages!)
    2. Open the folder with the TIFF images.
    3. Select all files.
    4. Right-click > Open with.... > Choose.... > Other.... > Acrobat
    5. Popup will ask if you want to open all files in a single document. Obviously a good choice for 1100 pages.
    6. After the new PDF generates, save it.
    7. Document > OCR --- should work now.
    8. If it does, don't forget to delete the folders with the TIFFs.
    Hope that helps someone.

Maybe you are looking for

  • Can No Longer Open PSE 7 or Premiere Elements 7

    I installed Photoshop Elements 7 and Premiere Elements 7 last summer and haven't had trouble with them, but as of a couple weeks ago I haven't been able to open either one up on my computer. When I tried to check the files in the computer, it said "E

  • How to identify a hyperlink on next page....

    i display one column of database in one page.when user clicks that one value then corresponding values from database should be displayed on the other JSP page.How is this possible plz help me......

  • Characteristic values in BAPI_SALESORDER_CHANGE

    Hi, I want to add new configurable item in existing sales order with charactersitic values. Iam using bapi BAPI_SALESORDER_CHANGE. Iam now able to insert configurable item in existing sales order. But the characteristic values are not getting stored.

  • Can't get the plug-ins I download to work

    Can someone help me any of the plug-ins I download for imovie are not in their.

  • AppleID Password stored locally and used by iTunes? How to prevent?

    Hi, I am using iTunes 10.5 now and was surprised that my latest purchase in Appstore (App Download, 3.99 EUR) was done by one-click, i.e. I didn't have to reenter my password. Oops? I did not set the "remember my password option" and I haven't been e