1 Reply Latest reply on Dec 27, 2007 2:03 PM by mianor64121

    AIR transparent window and Mouse events

    mianor64121
      Hi,

      I think I found a bug with transparent window and mouse events.
      Let's say I want to create a Button (issue occurs with all components) in a transparent window.
      When I mouse over the button, the mouseOver event is triggered, it's logged in console as "mouseOver".
      But when I mouse out of the button, mouseOut and mouseOver events are triggered, "mouseOut" and then "mouseOver" are logged into the console!
      Only mouseOut event is triggered if my window is not transparent.

      quote:


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

      <mx:Style>
      Application
      {
      background-color:"";
      background-alpha: 0;
      padding: 0px;
      }
      </mx:Style>

      <mx:Button width="100" height="100" mouseOver="trace('mouseOver')" mouseOut="trace('mouseOut')" />
      </mx:Application>



      Here is the configuration file for this application :

      quote:


      <?xml version="1.0" encoding="utf-8" standalone="no"?>
      <application xmlns=" http://ns.adobe.com/air/application/1.0.M6" version="1.0 Beta">
      <id>MouseEventsTest</id>
      <filename>MouseEventsTest</filename>
      <initialWindow>
      <content>!ApolloApplicationWizardPage.rootContentValue!</content>
      <systemChrome>none</systemChrome>
      <transparent>true</transparent>
      <width>800</width>
      <height>600</height>
      <visible>true</visible>
      </initialWindow>
      </application>



      Tell me if there's a workaround!!