|
On your timeline window be sure to create a movieclip called “mc_instancename“. In the movieclip “mc_instancename” create a textbox called “txt_instancename”. Adjust the x and y coordinates and alpha amounts yourself in the tween class. Please note that this does not loop. But you can easily adjust the code to have it loop.
function tweenText() {
new mx.transitions.Tween(mc_instancename, “_alpha”, mx.transitions.easing.Regular.easeOut, 0, 100, 2, true);
new mx.transitions.Tween(mc_instancename, “_x”, mx.transitions.easing.Regular.easeOut, 533, 276, 1, true);
}
var intervalId:Number;
var count:Number = 0;
var maxCount:Number = 6;
var duration:Number = 5000;
var rotatingtext:Array = new Array();
rotatingtext[0] = “Place text here”;
rotatingtext[1] = “Place text here“;
rotatingtext[2] = “Place text here“;
rotatingtext[3] = “Place text here”;
rotatingtext[4] = “Place text here“;
rotatingtext[5] = “Place text here“;
rotatingtext[6] = “Place text here“;
function rotateText(param:String) {
tweenText();
mc_instancename.txt_instancename.htmlText = param;
clearInterval(intervalId);
if (count