# Rying to make transissions between pages. need variable?

**URL:** <https://forum.kirupa.com/t/rying-to-make-transissions-between-pages-need-variable/221585>\
**Category:** Uncategorized\
**Created:** [April 5, 2007, 1:18pm UTC](https://forum.kirupa.com/t/rying-to-make-transissions-between-pages-need-variable/221585 "2007-04-05T13:18:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarmanje](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jarmanje](https://forum.kirupa.com/u/jarmanje)\
**Post date:** [April 5, 2007, 1:18pm UTC](https://forum.kirupa.com/t/rying-to-make-transissions-between-pages-need-variable/221585/1 "2007-04-05T13:18:58Z")

</div>

edit: thread name i mean TRying to…

hello. I want to make smooth transissions between pages, so when a link is clicked, the page currently loaded goes out in a cool way, then the new goes in a cool way.  
Please tell me if my theory on how to do this is correct:

For scene 1, I have frames 1-2 for preloads etc and frame 3 for loading the homepage

Now i set frame 4 for lets say “contacts page” and frame 5 for “links page”

In frames 4 and 5 is a movieclip, and inside that movieclip is the releveant page (links and contacts).

Inside these page movieclips, I have the first bunch of frames making an animation, then the page stays, then now i make it so that when a button in the MAIN page page of scene 1 is clicked, it will play the rest of the movieclip loaded of the page (which will then animate out) and then on the last frame of that little movieclip after it has animated i should send it to the beginning of frame 5 (the link page).

How do i tell the clip where to go after it has run? Because it is different depending what button has pressed…

DO i use a variable value? So if i click Links it sets a variable to 5, so i then put gotoAndPlay value of the variable

so if my theory is correct, and a healthy way of dealing between pages. these are my questions:

How do i define the variable  
How do i then change the value of that variable  
How do i READ from that variable (i.e. gotoandplay valueofthevariable)

Sorry for the long post

thanks a lot for help given

regards

UKguy
