Old 29-06-2007, 11:24   #1 (permalink)
timpan
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);
_____________________________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8