I want to make a dynamic textbox with html, but the code is just written instead of being translated… Anyone know why?
u have to enable html 2 be used. it’s something like this:
lloadText = new loadVars();
loadText.load("kirupa.txt");
loadText.html = yes;
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
};
I’m not really sure on this, but u can try it.
Nope… Nothing works… It just writes
<b>yadayada</b>
There’s a tutorial on the site (I think it’s in the ActionScript section though) for loading HTML files. Check there.
You sure?! I can’t find anything on html in a dynamic textbox…
http://www.kirupa.com/developer/actionscript/changing_font.asp <-- this changes the font, but I’m sure it’s easy enough to change around for what you want
loadText = new loadVars();
loadText.load("kirupa.txt");
loadText.html = yes;
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};
You have to HTML enable your text box first.
It still won’t work! I have enabled html rendering! But it just does’nt work!
Well if you are using the code I posted in my last post, html text should be working fine and dandy.
Your font has to be bigger than size 11 on Verdana for the bold to show up I think.
Now nothing happens! The text between the tags does’nt even show up!
Dude, what tags are you using?
That definitely shouldn’t be happening.
Well just
<b>Something</b>
That’s the only html in there!
So inside your .txt file you have…
kirupatext= <B>something</B>
Yup! And nothing happens when I load the txt file…
You sure it is kirupatext= and not kirupatext = , that space makes all the difference.
None of them work…
Ah crap… I forgot to change something in my script…
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};
Now try that code.
Still does’nt work…
I tested the code. Works fine for me.
You are making sure that your font size is 11 or higher right?
Check my attachment to see what I did. Works great for me.
Something has to be wrong… Your fla works fine, but ours does not… Go figure…