all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Re: dynamix text manipulation


Re: dynamix text manipulation viperx116
9/15/2004 10:27:07 PM
flash actionscript:
Ok, everything works except for the new fonts, it only changes once. Can you
see what's wrong? My script is a bit different different from yours because I
don't think I'm suppose to write it like yours.
Re: dynamix text manipulation kglad
9/15/2004 10:43:05 PM
case counts in flash. the length property of an array is accessed with a lower
case "el". change your newFont_btn code to:

newFont_btn.onRelease = function() {
var fontArray = TextField.getFontList();
var randIndex = Math.floor(Math.random()*fontArray.length);
myformat_fmt.font = fontArray[randIndex];
mytext_txt.setTextFormat(myformat_fmt);
};

p.s. you don't need to embed those fonts that are in your library, you don't
new fontA anymore and you don't need to embed fonts anymore. remove those
things.
Re: dynamix text manipulation viperx116
9/15/2004 10:56:09 PM
Re: dynamix text manipulation kglad
9/16/2004 3:25:22 AM
AddThis Social Bookmark Button