I'm trying to get StyleManager to have some effect, to no avail.
package {
import flash.text.*;
import flash.display.Sprite;
import fl.managers.StyleManager;
public class StyleManagerExample extends Sprite {
public function StyleManagerExample():void {
StyleManager.setComponentStyle(TextField, "selectable", false);
var exampleTextField:TextField = new TextField();
exampleTextField.text = "Something";
addChild(exampleTextField);
}
}
}
No value (eg. selectable
, color
, textFormat
, etc., using setStyle
, setComponentStyle
or otherwise) seems to have any effect on the outcome.
What am I missing?