[flash CS3] AS2 gallery remains when changing scene

Hi,

Using Flash CS3, AS2

Can anyone tell me why the gallery remains on the page after navigating to a different scene?

Is there a way to keep it on that scene only and then make it go away after coming out of the gallery?

It may just be something I’m missing in the actionscript.

Please take a look.

link to .fla file - http://rapidshare.com/files/42227674...llery_test.fla

If you click on brands > then the rossetto logo, at the bottom of the page the view gallery button should take you there. Once navigating off of that gallery to any other scene, the gallery remains.

This is the code I have for the gallery scene.


stop();

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

this.createEmptyMovieClip("container",1);

var imagesNumber:Number = 10;
var scrolling:Boolean = true;

for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._x = (i-1)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2
myThumb_mc._alpha=50;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function(){
this._alpha=100;
}
myThumb_mc.onRollOut = function(){
this._alpha=50;
}
myThumb_mc.onRelease = function(){
this._alpha=50;
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = false;
}
scrolling = false;
	_root.attachMovie("image"+this.largerImage,"large_mc",2);
large_mc._x = (Stage.width - large_mc._width)/2;
large_mc._y = (Stage.height - large_mc._height)/2.22;
new Tween(large_mc,"_alpha",Strong.easeOut,0,100,0.5,true);
new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
large_mc.onRelease = function(){
scrolling = true;
var myFadeOut = new Tween (large_mc,"_alpha",Strong.easeOut, 100,0,0.5,true);
new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
myFadeOut.onMotionFinished=function(){
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = true;
}
large_mc.removeMovieClip();
}
};
};
}
container.onEnterFrame = function (){
if (scrolling) {
this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*7;
if (this._x>0) {
this._x = 0;
}
if (-this._x>(this._width-Stage.width)) {
this._x = -(this._width-Stage.width);
}
}
};

Tutorial source - http://www.republicofcode.com/tutori...lery/index.php

Please Help. Thanks