# Transition Effect

**URL:** https://forum.kirupa.com/t/transition-effect/131722
**Category:** Uncategorized
**Created:** [December 19, 2004, 1:26am UTC](https://forum.kirupa.com/t/transition-effect/131722 "2004-12-19T01:26:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lenny/32/942_2.png) [@lenny](https://forum.kirupa.com/u/lenny)
#### Post date: [December 19, 2004, 1:26am UTC](https://forum.kirupa.com/t/transition-effect/131722/1 "2004-12-19T01:26:51Z")

</div>

Hello 🙂

I want to make three “pages” in flash. The user can click a button to navigate through the example i want to make.

The buttons, for simplicities sake, are ONE, TWO, THREE.

What i want to be able to do is have a transition between the pages, where content boxes reshape depending on the page.

I have thought about how to do this, and i thought I could have a movie sequence for tranisition between ONE and TWO, ONE and THREE, TWO and THREE, TWO and ONE, THREE and ONE and THREE and TWO.

I thought i could define a variable

```auto
page=1;

```

and

```auto
new=1;

```

initially, as the swf starts looking at ONE, and then when the user clicks TWO or THREE, it would firstly set :

```auto
new=2; 

```

and then:

```auto
gotoAndPlay(page+new);

```

where page is a frame label, e.g. if the user clicks TWO when

```auto
page=1; 

```

then

```auto
new=2;

```

, and the moviejumps to frame label 12 and the page variable becomes equal to 2…

Any idea how to do this? I think the problem lies in my coding for the “gotoAndPlay(page+new)”

Sorry for the length of this post!

andy xx
