With the variables loaded, now comes the easy part: using text properties and TextFormat to assign them to the various attributes of my text box.
onClipEvent(enterFrame){
loadVariables("variables.txt", this);
_root.textbox.text=typetext;
textvariables = new TextFormat();
textvariables.multiline = true;
textvariables.wordWrap = true;
textvariables.border = false;
textvariables.color = "0x"+typecolor;
textvariables.font = typestyle;
textvariables.size = typesize;
_root.textbox.setTextFormat(textvariables);
}
You don't need to use paths for the variables because they're loaded right into the clip and are all considered "local". Just fill the variable names in where you would normally type absolute values for things like instancename.text, TextFormatname.color, etc.