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

getObjectsUnderPoint fails to find items launched via PopupManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • PopUp Manager
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Description:
      getObjectsUnderPoint doesnt seem to register any objects launched via the popup manager.

      Steps:
      1. Create an mxml application:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute"
      mouseDown="showObjectsUnderPoint(mouseX,mouseY)"
      creationComplete="initApp()">
      <mx:Script>
      <![CDATA[
      import mx.managers.PopUpManager;
      import mx.containers.Panel;
      private function initApp():void

      { var p:Panel = PopUpManager.createPopUp(this,mx.containers.Panel,false) as Panel; p.title = "I Exist"; p.width= 300; p.height=200; p.addEventListener("mouseDown",handleClick); }

      private function handleClick(event:MouseEvent):void

      { showObjectsUnderPoint(mouseX,mouseY); }

      private function showObjectsUnderPoint(x:int,y:int):void{
      var o:Array = this.getObjectsUnderPoint(new Point(x,y));
      for(var i:int=0;i<o.length;i++)

      { trace("found "+o[i] ); trace(o[i] is Panel); } }

      ]]
      >
      </mx:Script>
      </mx:Application>
      2.Debug the app
      3.click on the Panel

      actual results: trace statements show panel is not found:
      found Test_ObjectsUnderPoint_3.null
      false
      found [object Shape]
      false

      expected results: Panel should be returned with found objects.

      computer configuration:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: