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

Similar Messages

  • DataGrid - Error #1009: Cannot access a property or method of a null object reference.

    I am getting a runtime error when I click a button that fires
    the addPerson function.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at main/addPerson()[C:\Documents and Settings\edunn\My
    Documents\Flex Builder 3\workspace2\Test-1\src\main.mxml:178]
    at main/___main_Button4_click()[C:\Documents and
    Settings\edunn\My Documents\Flex Builder
    3\workspace2\Test-1\src\main.mxml:228]
    I am new to Action Script - and object programming - so
    understand...
    I do not understand what I have done wrong here...
    I have a result list coming from an external web service that
    populates in a datagrid. I'd like to be able to update that
    datagrid and then push back to the web service the new array.
    Any ideas?????
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.ArrayCollection;
    import generated.webservices.FxAppiaUserFeaturesService;
    import generated.webservices.UserSimRingConfig;
    import generated.webservices.SimRingType;
    public var plist:ArrayCollection
    //Updated Function to populate the data from WS
    public function
    retrieveUserSimRingConfig(e:ResultEvent):void {
    var UsrSimRngCfgNumList:Array = new
    UserSimRingConfig().simRingNumberList;
    var plist:ArrayCollection = e.result.simRingNumberList;
    dgSimPhoneList.dataProvider = plist;
    if (e.result.active) {
    chboxSimultaneousRingPhones.selected=true;
    } else {
    chboxSimultaneousRingPhones.selected=false;
    if (e.result.simRingType == "NO_RING_WHILE_ONCALL") {
    chboxSimultaneousRing.selected=true;
    } else {
    chboxSimultaneousRing.selected = false;
    // Add a person to the ArrayCollection.
    public function addPerson():void {
    plist.addItem({simRingNumberList:txtPhoneNumber1.text});
    I posted this in the General Section first by
    mistake...

    can u explain abt this line
    var plist:ArrayCollection = e .
    result.simRingNumberList;

  • 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 #1009: Cannot access a property or method

    Here's the context of the problem, in which I will try to include as much information as possible while keeping the explanation brief.
    I am trying to make a portfolio website (architectural design + concept art).  Flash / programing are not my focus and this is my first go at learning the software.  Due to the nature of the content and my (lack) of ability in AS3, I want the the coding to be really simple and still let the site look good.  The way the site is currently structured:
    1) Basic menu buttons that navigate to sections of the site (brings up a new page).
    2) Example, clicking on <Graphics> takes you to a new page and a sub-menu animates in (simple motion tween for the buttons to cascade down).  This animation is a movie clip placed on the main timeline.
    3) On the screen is also a slideshow for all the images within <Graphics>.  Instead of multiple small slideshows, I combined them all into one, so as to avoid complications with add / remove from stage.  There are prev / next buttons that keep images within their sub section (ie 1->2->3->1).  The sub-menu buttons are suppose to link to the start of each sub section, much like chapters on a DVD.  (The slideshow is a movieclip sub-nested in the menu movieclip).
    Main menu buttons work.
    Sub-menu animation works.
    Slideshow works.
    Can't get the sub-menu buttons to access the slideshow chapters.
    I have created and solved about half a dozen errors, and each time I fix something, it just causes another point to break.  I've gone around in circles for days, and not sure which was is up anymore.  So, while the slideshow works independently of the rest of the content, and I think I have the parent referencing correct, the problem I am currently facing is thus:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at 03graphics_fla::MainTimeline/frame1()
    I've browsed some other threads, and I think I know what the problem is.  Since the sub-menu is animated, the buttons do not appear on frame 1 of the nested timeline, while the actionscript is on frame 1 of the main timeline - thus the code doesn't exist yet when I click the button.
    Is this indeed the problem?  If so, how do I go about fixing it?
    Additionally, does the structure makes sense on how my site is organized?  Is there an easier / cleaner way to code it?
    (This thing is completely ghetto-rigged, I just need it to function - it's like my own little Millenium Falcon...)
    Cheers,
    Andy

    Try following this posting, which is just a posting or two away from your own in the forum...
    http://forums.adobe.com/thread/748542?tstart=0

  • New to action script and getting: TypeError: Error #1009: Cannot access a property or method of a nu

    I am getting this message in the output tab for buttons that I am trying to create.  Here's the code:
    import flash.events.MouseEvent;
    stop();
    function goHome(myEvent:MouseEvent):void {
    gotoAndStop("home");
    SoundMixer.stopAll();
    function goAbout(myEvent:MouseEvent):void {
    gotoAndStop("about");
    SoundMixer.stopAll();
    function goBusiness(myEvent:MouseEvent):void {
    gotoAndStop("business");
    SoundMixer.stopAll();
    function goContact(myEvent:MouseEvent):void {
    gotoAndStop("contact");
    SoundMixer.stopAll();
    function goArchives(myEvent:MouseEvent):void {
    gotoAndStop("archives");
    SoundMixer.stopAll();
    function goBioTech(myEvent:MouseEvent):void {
    gotoAndStop("bioTech");
    SoundMixer.stopAll();
    function goRealEstate(myEvent:MouseEvent):void {
    gotoAndStop("realEstate");
    SoundMixer.stopAll();
    function goTechnology(myEvent:MouseEvent):void {
    gotoAndStop("technology");
    SoundMixer.stopAll();
    function goEnergy(myEvent:MouseEvent):void {
    gotoAndStop("energy");
    SoundMixer.stopAll();
    home_btn.addEventListener(MouseEvent.CLICK, goHome);
    about_btn.addEventListener(MouseEvent.CLICK, goAbout);
    business_btn.addEventListener(MouseEvent.CLICK, goBusiness);
    contact_btn.addEventListener(MouseEvent.CLICK, goContact);
    archives_btn.addEventListener(MouseEvent.CLICK, goArchives);
    bioTech_btn.addEventListener(MouseEvent.CLICK, goBioTech);
    realEstate_btn.addEventListener(MouseEvent.CLICK, goRealEstate);
    technology_btn.addEventListener(MouseEvent.CLICK, goTechnology);
    energy_btn.addEventListener(MouseEvent.CLICK, goEnergy);
    I ran the debugger and got this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at peakInsights_fla::MainTimeline/frame1()[peakInsights_fla.MainTimeline::frame1:48]
    I guess it's telling me there's a problem with line 48 but what?
    The home, about, business, contact, and archives button works. On the business page there are the remaining buttons biotech, technology, real estate, and energy. when i test it; i get the finger but the buttons don't work. this is my first flash site so I'am new, new.

    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.

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

    Hi all,
    I am new to ActionScript and Flash, and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at jessicaclucas_fla::MainTimeline/stopResumescroll()
    I have several different clips in one movie that have scrolling content. When I click a button to move to a different clip that doesn’t have a certain scroll, it gives me this error. I cannot figure out how to fix this. You can see the site I am working on: http://www.jessicaclucas.com. I would really appreciate some help! Thank you in advance. Here is the code:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax;
    import gs.plugins.BlurFilterPlugin;
    //Save the content’s and mask’s height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask’s height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to “normal” (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

    Hi again,
    Thank you for helping. I really appreciate it! Would it be easier to say, if resumescrollMC exists, then execute these functions? I was not able to figure out the null statement from your post. Here is what I am trying (though I am not sure it is possible). I declared the var resumescrollMC, and then I tried to put pretty much the entire code into an if (resumescrollMC == true) since this code only needs to be completed when resumescrollMC is on the stage. It is not working the way I have tried, but I am assuming I am setting up the code incorrectly. Or, an if statement is not supposed to be issued to an object:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax2;
    import gs.plugins.BlurFilterPlugin2;
    //Save the content's and mask's height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    var resumescrollMC:MovieClip;
    if (resumescrollMC == true) {
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask's height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to "normal" (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

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

  • Preloader :Error #1009: Cannot access a property or method of a null object reference.

    Hi,
    I'm having a lot of trouble getting a preloader to work on my Flash website. I'm new to actionscript, the site works fine but when I place the preloader in frame 1, I get.
    Error#1009: Cannot access a property or method of a null object reference.
    Then it lists three areas. The buttons on the site don't work anymore.
    I've followed the Lynda com tutorials so don't know what is causing this error.
    Included is the word.doc with the error code, preloader code, the main flash frame 2 code and the debug information.
    Any help would be great.
    Thanks!

    You need to make sure 'cards' is named properly and is present when that line of code executes.  If it is somewhere down a timeline, it is not present.
    As far as your preloader code goes, what is infoLoader.  I have to assume it's some form of component since you don't have any code to instantiate it.

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGrid/findHeaderRenderer()

    Can anyone throw any light on this obscure Flex error?...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::AdvancedDataGrid/findHeaderRenderer()[...path...\projects\datavisualisation\ src\mx\controls\AdvancedDataGrid.as:1350]
    at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[...path...\projects\datavisualis ation\src\mx\controls\AdvancedDataGrid.as:1315]
    at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[...path...\projects\datavisu alisation\src\mx\controls\listClasses\AdvancedListBase.as:8091]
    I found a related bug reported on Jira: https://bugs.adobe.com/jira/browse/FLEXDMV-1631
    But in our case, we have no zoom effect.  It may be timing related, as there is a lot of computation going on when this page, and the ADG is first initialised.
    Please?... Any suggestions or workarounds?  We don't want this falling over in the hands of our customers.
    <rant> And people wonder why I hate Flex!?  These obscure instabilities never happen when I develop Pure ActionScript.  The Flash platform is wonderfully stable.  But as soon as you bring Flex into play, things take longer to develop, it's a struggle to extend or change the behaviour of the bloated components, and everything falls apart as these bugs begin to surface.</rant>

    facing the same problem... sdk 4.1. no solution for about 2 years ????

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

  • Module Chart component Error #1009: Cannot access a property or method of a null object reference

    Is there a known bug when displaying a chart component that is defined in a module. When attempting to display a chart component defined in a module it crashes indicating Error #1009: Cannot access a property or method of a null object reference.
    It crashes at the following location in ChartBase.as. Somehow when loading the chart the  styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase"); returns null so when using the setStyle methods the exception occurs.
    private function initStyles():Boolean
            HaloDefaults.init(styleManager);
      var chartBaseStyle:CSSStyleDeclaration = styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase");
      chartBaseStyle.setStyle("chartSeriesStyles", HaloDefaults.chartBaseChartSeriesStyles);
      chartBaseStyle.setStyle("fill", new SolidColor(0xFFFFFF, 0));
      chartBaseStyle.setStyle("calloutStroke", new SolidColorStroke(0x888888,2));
            return true;
    Added note: There is a chart component in the application that works fine.  The only way I can get  the chart in the module to display is to add the following workaround preinitializer but it severly impacts the loading of the module. Is there a way around this.
    protected function preinitializeHandler(event:FlexEvent):void
       var styleObjects:Array = FlexGlobals.topLevelApplication.styleManager.selectors;
       for each(var styleObj:String in styleObjects)  {
        var style:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration(styleObj);
        styleManager.setStyleDeclaration(styleObj, style, true);   
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\ mx\charts\chartClasses\ChartBase.as:1862]
    at mx.charts.chartClasses::ChartBase/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBas e.as:1894]
    at mx.charts.chartClasses::PolarChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\PolarCha rt.as:223]
    at mx.charts::PieChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\PieChart.as:203]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1590]
    at spark.components::Group/addElementAt()[E:\dev\4.y\frameworks\projects\spark\src\spark\com ponents\Group.as:1387]
    at spark.components::SkinnableContainer/addElementAt()[E:\dev\4.y\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:775]
    at mx.states::AddItems/addItemsToContentHolder()[E:\dev\4.y\frameworks\projects\framework\sr c\mx\states\AddItems.as:782]
    at mx.states::AddItems/apply()[E:\dev\4.y\frameworks\projects\framework\src\mx\states\AddIte ms.as:563]
    at mx.core::UIComponent/applyState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:10741]
    at mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10487]
    at mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]
    at mx.core::UIComponent/set currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
    at BloodPressure/bloodpressureDg_selectionChangeHandler()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:311]
    at BloodPressure/__bloodpressureDg_selectionChange()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:41]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::DataGrid/commitInteractiveSelection()[E:\dev\4.y\frameworks\projects\sp ark\src\spark\components\DataGrid.as:3634]
    at spark.components::DataGrid/setSelectionAnchorCaret()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\DataGrid.as:4210]
    at spark.components::DataGrid/grid_mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\s rc\spark\components\DataGrid.as:4679]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::Grid/dispatchGridEvent()[E:\dev\4.y\frameworks\projects\spark\src\spark \components\Grid.as:4038]
    at spark.components::Grid/grid_mouseDownDragUpHandler()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\Grid.as:3883]
    at Function/<anonymous>()[E:\dev\4.y\frameworks\projects\spark\src\spark\utils\MouseEventUti l.as:84]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:2918]

    It appears as though this error has been going on for a while. See the following link http://forums.adobe.com/thread/941849

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

  • 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

  • Please help with Error #1009 Cannot access a property

    Hi All,
    I have a simple flash movie where play_btn should go to a label on a timeline where I have a video playing and a stop_btn should go back to a first frame (label "start") and thus give an illustion of stopping the movie.
    I have no problem with the play_btn, however stop_btn doesn't work and when I test the movie I get the following error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at FSV_header1_fla::MainTimeline/frame1()
    below is my code - any help is very appreciated!
    stop();
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playMovie);
    close_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopMovie);
    function playMovie(event:MouseEvent):void {
        trace("Play!");
        gotoAndPlay("start");
    function stopMovie(event:MouseEvent):void {
        trace("Close!");
        gotoAndStop("stop");
    Thank you!!

    Thank you!!
    I was able to fix it by putting all the buttons on the first frame and toggling visibility on/off. Here's the code:
    stop();
    close_btn.visible = false;
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playMovie);
    close_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopMovie);
    function playMovie(event:MouseEvent):void {
        trace("Play!");
        gotoAndPlay("start");
        play_btn.visible = false;
        close_btn.visible = true;
    function stopMovie(event:MouseEvent):void {
        trace("Stop!");
        gotoAndPlay("stop");
        close_btn.visible = false;
        play_btn.visible = true;

Maybe you are looking for

  • Is there a way to "reset" the games "played count" on the 5th Gen iPod Nano

    I was just looking through my new iPod Nano (16 GB), and happened to select all three games (Klondike, Maze and Vortex), but never played them, just looked and then quit out of each game. Now I have a "game played" count on all three games. I'm not s

  • ITunes update Version 6.0.3.5-Having Problems

    I updated iTunes to the current version, 6.0.3.5 and am now have serious problems. I can't even open the program; I tried restarting the computer, uninstallin then reinstalling and nothing works, the progrom does not resond. Is anyone else have any p

  • No standard agreement found Error.

    Hi i am working on File to IDOC scenario and i am getting the below error. "No standard agreement found for , D_XXX_YY, B_XXX, ECC1800". I deleted all my Config objects and recreated and reactivated.cache is up to date but still no use. When i test t

  • Adding spry fade effect to thumbnail gallery??

    Hi, I have a gallery page with a set of thumbnail images each linking to a main image. I would like to add a simple javascript fade in for each main image. So when the user clicks on the thumbnail, the main image will fade in. I took a look at the sp

  • Optimum RAM for Solaris 10 on Ultra 40M2

    I currently have 4GB on this Ultra 40M2 running Solaris 10 5/08 but wonder if I should get 8GB. I don't really have any problems with the current setup.