Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-18352

CursorMgrImpl causes mouse cursor to disappear and throws error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • Cursor Manager
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Please note: I opened this bug because it is happening in the latest version of the SDK that flex builder is packaged with. This bug does not appear to exist in the more recent Flex SDK.

      Steps to reproduce:

      It's important to note that this happens with the SDK which contains the file flex-sdk-description.xml which has the contents (This is the version installed with the latest flex builder update for eclipse):

      <?xml version="1.0"?>
      <flex-sdk-description>
      <name>Flex 3.2</name>
      <version>3.2.0</version>
      <build>3958</build>
      </flex-sdk-description>

      1. Create a stand alone flex app with the following code (Call it CursorBug):

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:VDividedBox>
      <mx:TextArea id="thingone">

      </mx:TextArea>
      <mx:TextArea id="thingtwo">

      </mx:TextArea>
      </mx:VDividedBox>
      </mx:Application>

      2. Create the following AS3 App (Call it CursorBugLoader – Make sure to correct the path to CursorBug.swf):

      package {
      import flash.display.Loader;
      import flash.display.Sprite;
      import flash.events.Event;
      import flash.net.URLRequest;

      public class CursorBugLoader extends Sprite
      {
      private var oneLoader:Loader = new Loader();

      public function CursorBugLoader()

      { var oneUrl:URLRequest = new URLRequest("file:///C:/src/flex/CursorBug/bin-debug/CursorBug.swf"); oneLoader.contentLoaderInfo.addEventListener(Event.INIT, oneInit); oneLoader.load(oneUrl); }

      private function oneInit(event:Event):void

      { stage.addChild(oneLoader); }

      }
      }

      3. Run the cursor bug loader, wait for the app to fully display.
      4. Mouse over the pull affordance in the loaded swf.

      Actual Results:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.managers::CursorManagerImpl/showCurrentCursor()
      at mx.managers::CursorManagerImpl/setCursor()
      at mx.containers::DividedBox/http://www.adobe.com/2006/flex/mx/internal::changeCursor()
      at mx.containers.dividedBoxClasses::BoxDivider/mouseOverHandler()

      Expected Results:

      No exception.

      Workaround (if any):

      Build with (Replace for flex builder) the latest SDK version which contains the file flex-sdk-description.xml which has the contents:

      <?xml version="1.0"?>
      <flex-sdk-description>
      <name>Flex 3.3</name>
      <version>3.3.0</version>
      <build>4852</build>
      </flex-sdk-description>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: