I have a textarea I want the font changed for when they choose the corresponding font from a combobox.
On the combo box itself I have it named “myCombo”. This is the code for it…
on (change) {
if (myCombo.getSelectedItem() == "Garamond") {
user_output.setStyle("fontFamily", "Garamond");
} else if (myCombo.getSelectedItem() == "Arial") {
user_output.setStyle("fontFamily", "Arial");
} else if (myCombo.getSelectedItem() == "Verdana") {
user_output.setStyle("fontFamily", "Verdana");
}
}
the textarea is called user_output.
Ideas?