| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2007
Location: Milwaukee
Posts: 8
|
ActionScript Newbie
I am simply trying to make text fade in and out. I can do it through tweening, but forcing myself to do it in actionscript. So, I made a placeHolder_mc on my stage and trying to load up external swfs into it. (The client will have about 10 languages saying the same thing and thought this would be easiest if they changed things.) Below is my code. Flash claims I have no errors, but none of my external swfs appear when I publish the movie. What the hell am I doing wrong? _____________________________________ import mx.transitions.Tween; import mx.transitions.none.*; var currentLanguage:Array = ["english_0.swf","english_1.swf"] var myVariable:Number =0; function runner() { var mover:Object = new Tween(placeHolder_mc,"_alpha", Elastic.easeInOut, 1000, 0, 1, true); mover.onMotionFinished = function() { placeHolder_mc._alpha = 0; }; }; function changer(myVariable) { placeHolder_mc.loadMovie(currentLanguage[myVariable]); runner(); }; function counter () { _root.myVariable++ if (myVariable < currentLanguage.length){ changer(myVariable); } else { myVariable = 0; changer(myVariable); }; }; changer(myVariable); setInterval (counter, 1000); _____________________________________ |
|
|
|
![]() |