Heylo!
I’m trying to align some text to the right with css but it doesn’t seem to work.
Here’s the code i used:
var css = new TextField.StyleSheet();
css.load("ref/flash.css");
flash.css :
.link {
text-align : right;
}
assigning stylesheet to textfield…
_root.link.styleSheet = css;
_root.link.text = '<span class="link">sometext</span>';
This won’t work, but when i replace the text align in the css file with, say, color : #ff9900;, it does work…
What am i doing wrong? Thanks!