I tried using shared objects instead but it's giving the same results:
Code:import mx.transitions.Tween; import mx.transitions.easing.*; user_so = SharedObject.getLocal("user"); if(user_so.data.largetext1 != undefined) { //data exists //do actions user_so.data.largetext1 = large_anne; } else { //data does not exists //do actions user_so.data.largetext1 = 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() { attachMovie("large_portfolio", "large_portfolio", 1); user_so.data.largetext2 = large_portfolio; var myHoriTween:Tween = new Tween (small_portfolio,"_y",Strong.easeOut,100,10,1,true); var myHoriTween:Tween = new Tween (user_so.data.largetext1,"_y",Strong.easeOut,-10,100,2,true); var myHoriTween:Tween = new Tween (user_so.data.largetext2,"_y",Strong.easeOut,100,-10,2,true); myHoriTween.onMotionFinished = function (){ user_so.data.largetext1 = 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() { attachMovie("large_statement", "large_statement", 1); user_so.data.largetext2 = large_statement; var myHoriTween:Tween = new Tween (small_statement,"_y",Strong.easeOut,100,10,1,true); var myHoriTween:Tween = new Tween (user_so.data.largetext1,"_y",Strong.easeOut,-10,100,2,true); var myHoriTween:Tween = new Tween (user_so.data.largetext2,"_y",Strong.easeOut,100,-10,2,true); myHoriTween.onMotionFinished = function (){ user_so.data.largetext1 = large_statement; text2_txt.text = large_statement; } } 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 = user_so.data.largetext1; }




Reply With Quote