Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6567301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:19:14+00:00 2026-05-25T14:19:14+00:00

I have a tree and I can arrange the nodes inside using drag and

  • 0

I have a tree and I can arrange the nodes inside using drag and drop and my programs throws the null pointer exception. When I see the trace the error is actually in the core library and not on my code. do anyone know the meaning of this?

TypeError: Error #1009: null のオブジェクト参照のプロパティまたはメソッドにアクセスすることはできません。
at mx.controls.listClasses::ListBase/hideDropFeedback()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:8619]
at mx.controls::Tree/dragDropHandler()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree.as:3328]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:374]
at mx.managers.dragClasses::DragProxy/mouseUpHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:599]

The exception happens when I start dragging a node (at least a pixel or two away). I have this initialization and after this I programatically add the children

      eventsTree.dragEnabled=true;
        eventsTree.dropEnabled=true;
        eventsTree.dragMoveEnabled=true;
        eventsTree.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, itemDoubleClickHandle
        eventsTree.addEventListener(DragEvent.DRAG_DROP, dragDropHandler); 
        eventsTree.addEventListener(ListEvent.ITEM_CLICK,itemClickListener)
        loadTreeContents();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:19:14+00:00Added an answer on May 25, 2026 at 2:19 pm

    An object that evaluates to null can have no properties. This error can occur in some unexpected (though valid) situations. For example, consider the following code, which creates a Sprite object. Since this Sprite object is never added to the display list (via the addChild() method of a DisplayObjectContainer object), then its stage property is set to null, and as such, its stage property cannot have any properties. So the code generates the errror: import flash.display.Sprite;

    var sprite1:Sprite = new Sprite();
    var q:String = sprite1.stage.quality;

    There are two known fixes that I can suggest you try.

    • Make sure the script is run after the object is loaded or the frame in the animation has been reached.
    • Check your targeting

    Perhaps re-arranging the code to this?

        eventsTree.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, itemDoubleClickHandle); 
        eventsTree.addEventListener(DragEvent.DRAG_DROP, dragDropHandler);  
        eventsTree.addEventListener(ListEvent.ITEM_CLICK,itemClickListener);
        eventsTree.dragEnabled=true; 
        eventsTree.dropEnabled=true; 
        eventsTree.dragMoveEnabled=true; 
        loadTreeContents(); 
    

    Hope this helps you.

    P.S remember the semi-colons and to close the brackets.

    References:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html

    http://curtismorley.com/2007/08/15/flash-cs3-flex-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JTree in which the user can drag/drop or re-arrange nodes, upon
I have tree where user can drag and drop element and change elements positions.
I have a basic layout where different components can be selected using a tree
I have a tree structure that can be n-levels deep, without restriction. That means
I want to have a tree in memory, where each node can have multiple
I have a tree view <asp:TreeView ID=TreeView1 runat=server DataSourceID=SiteMapDataSource1 ShowExpandCollapse=False> </asp:TreeView> As you can
I have a binary tree where each node can have a value. I want
I have an unordered tree. Each node represents a task that can be done
I have a N-Ary non sorted in any way tree and each node can
I have tree control object created using CTreeCtrl MFC class. The tree control needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.