Hi, I have 5 links that exist as one large font and four small fonts. The large one dictates the current page and the smaller ones are links to other pages, which become the large font if they are clicked to dictate they are now the new page.

When a link is small font link is clicked, it activates 3 tween animations for presentations sake, all dont in actionscript 2. The small font ._y is placed at the bottom of the page and swoops back up. The current large font ._y swoops down and, over this, the newly selected page large font swoops up to replace the previous large font.

I have tried specifying what the current page is in a new object variable so that is is remembered for when a new link (small font) is clicked. However, whenever a new function is started it seems to wipe out the current value of the object, so it cannot pass on what the current page is. Here is the code (I posted this earlier in the newbies section but think it's more suited to this forum, please delete the earlier post if necessary, sorry):

Code:
import mx.transitions.Tween; 
import mx.transitions.easing.*; 
var currentchoice:Object = new Object(); 
currentchoice.selection = large_anne; 

small_portfolio.onRollOver = function () { 
var colorful = new Color("small_portfolio"); 
colorful.setRGB(0xAAAAAA); 
}

small_portfolio.onRollOut = function () { 
var colorful = new Color("small_portfolio"); 
colorful.setRGB(0xFFFFFF); 
} 

small_portfolio.onRelease = function() { 
var myHoriTween:Tween = new Tween (small_portfolio,"_y",Strong.easeOut,100,10,1,true ); 
var myHoriTween:Tween = new Tween (currentchoice.selection,"_y",Strong.easeOut,-10,100,2,true);
attachMovie("large_portfolio", "large_portfolio", 1); 
var myHoriTween:Tween = new Tween (large_portfolio,"_y",Strong.easeOut,100,-10,2,true); 
currentchoice.selection = large_portfolio; 
} 

small_statement.onRollOver = function () { 
var colorful = new Color("small_statement"); 
colorful.setRGB(0xAAAAAA); 
} 

small_statement.onRollOut = function () { 
var colorful = new Color("small_statement"); 
colorful.setRGB(0xFFFFFF); 
} 

small_statement.onRelease = function() { 
var myHoriTween:Tween = new Tween (small_statement,"_y",Strong.easeOut,100,10,1,true ); 
var myHoriTween:Tween = new Tween (currentchoice.selection,"_y",Strong.easeOut,-10,100,2,true);
attachMovie("large_statement", "large_statement", 1); 
var myHoriTween:Tween = new Tween (large_statement,"_y",Strong.easeOut,100,-10,2,true);
currentchoice.selection = large_portfolio; 
} 

small_biography.onRollOver = function () { 
var colorful = new Color("small_biography"); 
colorful.setRGB(0xAAAAAA); 
} 

small_biography.onRollOut = function () { 
var colorful = new Color("small_biography"); 
colorful.setRGB(0xFFFFFF); 
} 

small_biography.onRelease = function() { 
text_txt.text = currentchoice.selection; 
}
Thanks!