# Pan Again! Again! Please!

**URL:** <https://forum.kirupa.com/t/pan-again-again-please/218018>\
**Category:** flash\
**Created:** [March 4, 2007, 8:27am UTC](https://forum.kirupa.com/t/pan-again-again-please/218018 "2007-03-04T08:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlaffan](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nlaffan](https://forum.kirupa.com/u/nlaffan)\
**Post date:** [March 4, 2007, 8:27am UTC](https://forum.kirupa.com/t/pan-again-again-please/218018/1 "2007-03-04T08:27:59Z")

</div>

If anyone could help me with this, it might just save me my job. I have a site which involves a section than pans behind a set of buttons. (The navigation is relocated w/each pan, as well as an empty MC to load in content) Everything works beautifully…but it only works once. After the one time, everything stays as is, and doesn’t pan/load/move/anything

This is my AS…if anyone could help…

//inside main MC

animationpg.targety = clip.\_y;

g=“home.swf”;  
h=-544;  
w=-10;  
strip();

animationpg.navigation.home.onRelease = function() {  
g=“section2.swf”;  
h=-544;  
strip();  
animationpg.navigation.gotoAndStop(1);

};

animationpg.navigation.about.onRelease = function() {  
g=“section2.swf”;  
h=-1088;  
strip();  
animationpg.navigation.gotoAndStop(2);

};

animationpg.navigation.team.onRelease = function() {  
g=“section3.swf”;  
h=-1632;  
strip();  
animationpg.navigation.gotoAndStop(2);

animationpg.onEnterFrame = function() {  
var speed = 10;  
this.\_y += (animationpg.targety - animationpg.\_y)/speed;  
};

//moves the container for the color image.  
function strip() {  
animationpg.loadsection.\_y = (h + 544)_-1;  
animationpg.navigation.\_y = (h + 272)_-1;  
scrollpage();  
}

//scrolling the contact sheet using the button variables.

function scrollpage() {  
animationpg.targety = (h + 272);  
picksection();  
}

function picksection() {  
if(this == Number(this)){  
loadMovieNum(“pages/” + g,animationpg.loadsection);  
} else {  
animationpg.loadsection.loadMovie(“pages/” + g);  
}

}

THANK YOU!!!
