[CS3/4] swapDepth problem/question

Hey all,

I’m working on a little animation, kind of a “Fake-3D-Timeline”, where a bunch of rectangles “float” out from the center of the stage, increase in size as they float “closer” and eventually disappear … loop the whole shebang, and done is the animation.

When the user moves his/her mouse over one of the rectangles (= an “event”), the timeline’s supposed to pause and said rectangle has to come to the foreground of the animation so its contents become visible. Once the user moves the cursor out of the rectangle area, it is supposed to resume its initial depth and the animation continues.

This is also where my issue comes in … I’ve got no problem getting the whole thing to animate properly, and the “pausing part” works fine, too (see AS in the right side box of screenshot below), but I can’t figure out the “swap” order part of the ActionScript (two annotation boxes at top). It’ll change the depth “onRollOver” just fine but fails to resume the animation “onRollOut”, and I got no clue why.

Here’s a screenshot of the functional concept with just two “events” (= rectangles) as examples:

In case it helps, here’s a link to the *.fla file.

Any help/tips/pointers would be greatly appreciated! :slight_smile: