Hey’a :D!
So I really need yas help here please.
I’ve got a Dynamic Textbox in Flash and I’m importing HTML/CSS fine. However if I have any tabs/enters etc in the code it also includes those when displayed in the Dynamic Textbox.
Eg:
This is the text I want
<br />
This should be on a second new line, right under the other line - However it is double spaced because this is on a new line in the HTML file.
This is especially makin it an issue when I pick up data from MySQL - It add’s <br /> like I want but also adds new lines because in the MySQL Database the text also has ‘enters’ in it.
Please help
This is the code I am using to pickup the HTML:
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.load("theCSS.css");
theText.html = true;
theText.styleSheet = styles;
var lv:LoadVars = new LoadVars();
lv.onData = function(contents) {
theText.text = contents;
}
lv.load("home.php");