Note that there are some explanatory texts on larger screens.

plurals
  1. POas3, flash: problems with motion tween and moveover/mouseout and mutiple objects
    primarykey
    data
    text
    <p>I am working on an animation that when you hover over it other things will side out. However when i put my mouse over the other object it stops working. and goes back to frame one.</p> <p>demo can be found here <a href="http://www47.zippyshare.com/v/32340248/file.html" rel="nofollow">http://www47.zippyshare.com/v/32340248/file.html</a></p> <p>I think it has something to do with the factu that 1. i am using multiple layers 2. it are multiple objects</p> <p>Does anyone know how he can reconise the shape as one mouseover and mouseout and not handle each shape indivualy?</p> <p>this is the code: animations are done in the timeline</p> <pre><code>package com.objecten { import flash.display.MovieClip; import flash.display.MovieClip; import flash.display.DisplayObject; import fl.transitions.Tween; import fl.transitions.easing.Strong; import flash.events.Event; import flash.events.MouseEvent; /** * ... * @author ... */ public class BucketBucket extends MovieClip { public function BucketBucket() { this.addEventListener(MouseEvent.MOUSE_OVER, AnimateStart); this.addEventListener(MouseEvent.MOUSE_OUT, AnimateReverse); } private function AnimateStart(e:MouseEvent):void { trace("AnimateStart"); this.play(); } function AnimateReverse(e:MouseEvent):void { trace("AnimateReverse"); this.addEventListener(Event.ENTER_FRAME, playReverse, false, 0, true); } function playReverse(e:Event):void { if (this.currentFrame == 1) { stopPlayReverse(); } else { this.prevFrame(); } } function stopPlayReverse():void { if (this.hasEventListener(Event.ENTER_FRAME)) { this.removeEventListener(Event.ENTER_FRAME, playReverse); } } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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