# Tween nav effect

**URL:** <https://forum.kirupa.com/t/tween-nav-effect/178511>\
**Category:** Uncategorized\
**Created:** [February 11, 2006, 6:13am UTC](https://forum.kirupa.com/t/tween-nav-effect/178511 "2006-02-11T06:13:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirksmith](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dirksmith](https://forum.kirupa.com/u/dirksmith)\
**Post date:** [February 11, 2006, 6:13am UTC](https://forum.kirupa.com/t/tween-nav-effect/178511/1 "2006-02-11T06:13:18Z")

</div>

hi

I’m trying to achieve a simplified version of the move to screen area and zoom nav similiar to: [http://www.leoburnett.ca](http://www.leoburnett.ca).

I’ve read and completed the macromedia tweening tutorials ([http://www.macromedia.com/devnet/fla.../tweening.html](http://www.macromedia.com/devnet/fla.../tweening.html)) and gained overview of tween class etc ([http://www.gotoandlearn.com](http://www.gotoandlearn.com) has some useful tutorials on all this too).

So, I created an example (credit :sophistikat) using the macromedia tween class:

```auto
import mx.transitions.Tween;
import mx.transitions.easing.*;

myBtn.onRelease = function () {
    //first move to center in one second witih no delay
    main_mc.tween("_x", 50, 1, "easeinoutElastic");
    main_mc.tween("_y", 50, 1, "easeinoutElastic");
     
    // and in 2 seconds scale closer
    main_mc.tween("_xscale", 150, 1, "easeinoutElastic", 2, true);
    main_mc.tween("_yscale", 150, 1, "easeinoutElastic", 2, true);
}

```

The script in layer 1, the bt in layer 2 and the main\_mc in layer 3 - all correctly ‘instanced’.

But not working - the main\_mc isn’t moving and then zooming in when btn is clicked.

Any ideas on what’s not working? - .fla attached

thx

d
