-
TextFormat Problem
I am trying to change the font of an input field in my flash movie using a comboBox. The input text field is set to Arial as default. When I select Verdana, the text in the field disappears. When I choose Arial the text re-appears. My code shown below. Any help would be appreciated. Thanks in advance.
function change(evt){
trace(evt.target.selectedItem.data);
var myformat = new TextFormat();
myformat.font = evt.target.selectedItem.label;
_root.O.Text.setTextFormat(myformat);
}
cbx_FontSelector.addEventListener("change", this);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|