Note that there are some explanatory texts on larger screens.

plurals
  1. POweird behaviour on stage resize
    primarykey
    data
    text
    <p>As soon I hover the blue mc, the navigation with the pics expands. Whenever the mouse is over the navigation, the navigation stays expanded. As soon the mouse leaves the navigation, it moves back underneath the blue mc.</p> <p>When it has been loaded, it does like it should. A resizing of the stage centers the whole parent-mc. </p> <p>The problem: A stage-resize causes that the MOUSE_OUT event of the navigation fires, even though the mouse has not left the navigation-mc.</p> <p><img src="https://i.stack.imgur.com/GEBLO.png" alt="enter image description here"> </p> <pre><code>private function onNavOver(e:MouseEvent):void { this._bluemc.removeEventListener(MouseEvent.MOUSE_OVER,onMouseAreaBottomOver); this._bluemc.removeEventListener(MouseEvent.MOUSE_OUT,onMouseAreaBottomOut); TweenLite.to(this._navigation,0.7,{y:this._offsetY,ease:Expo.easeInOut}); TweenLite.killTweensOf(this._navigation,false); } private function onNavOut(e:MouseEvent):void { this._bluemc.addEventListener(MouseEvent.MOUSE_OVER,onMouseAreaBottomOver,false,0,true); this._bluemc.addEventListener(MouseEvent.MOUSE_OUT,onMouseAreaBottomOut,false,0,true); TweenLite.to(this._navigation,0.7,{y:this._initialY,ease:Expo.easeInOut}); } </code></pre> <p>the code above are the event-functions called when being over or out of the navigation. The bluemc events will be removed in order to keep the navigation opened. I think here is a potential conflict: the MOUSE_OUT event of the blue mc could be fired before removed(onNavOver). But the strange thing is that only when I resized the stage, the failure appears. The navigation moves back even when the mouse is withing the navigation.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload