hi all. i posted this over at the http://laco.wz.cz/
but i think these forums are move activite, so no one bite my head off for doing this. and i hope they dont mind.
BUT.
http://laco.wz.cz/tween/?page=examples
if you go here… the first example ([navigation like yugop.com v4 (without lmctween)](javascript:showswf(‘yugoplikemenu’,550,200))) is what my question is about, the fla download is next to it.
when you put ur mouse over a button, there is a niffty little random text effect before it goes into the proper name.
how do i do this on something totaly new!
function startTextAnimation(oldId,newId){
//duration = 20
//printf(“//”,newId,items_arr[newId].smallText);
items_arr[oldId].mc.label = items_arr[oldId].smallText
//items_arr[newId].mc.label = items_arr[newId].smallText +“:”+ items_arr[newId].text
var strlen = items_arr[newId].text.length
textanim_mc.onEnterFrame = function(){
var rndstr = “”;
//
if ((textanimDuration - textanimTime) < strlen){
rndstr += items_arr[newId].text.substr(0, strlen - (textanimDuration - textanimTime))
for (var i = 0; i<(textanimDuration - textanimTime); i++){
rndstr+= String.fromCharCode(random(50) + 20)
}
} else {
for (var i = 0; i<strlen; i++){
rndstr+= String.fromCharCode(random(50) + 20)
}
}
items_arr[newId].mc.label = items_arr[newId].smallText +":"+ rndstr
//
if (textanimTime++ > textanimDuration){
items_arr[newId].mc.label = items_arr[newId].smallText +":"+ items_arr[newId].text
textanimTime = 0
delete this.onEnterFrame
}
}
i think it has something to do with this, but not sure.
i hope someone can help, and i hope im not doing anything illegal by posting here.
thanks.