View Full Version : Loading Text To Flash
bahrami
10-28-2001, 10:53 PM
hELLLLO!
I'm loading a text-file to flash and I use html in that textfile.
But one tag is not working. <center>
Is that tag not supported or what.
red penguin
10-29-2001, 02:09 PM
how about <div>?
bahrami
10-29-2001, 11:03 PM
thanx 4 trying but I've allready found my answer
red penguin
10-29-2001, 11:28 PM
We are limited to...
<b>,<i>,<u>,<font>,<p>,<br>,<a>
:(
mad_A
10-30-2001, 01:14 PM
the centre tag is not supported. You can set the text filed the text is being loaded into to align centre (text properties dialog).
That is not much good if you want just one line to be loaded - so the best way I'd suggest would be to use XML and have a load of text fields one line high, aligned under each other.
Name each one sequentially.
Load in the lines of text from the xml and assign to the sequential names.
something like...
array1=new Array();
myXML.load("the xml file");
myXML.onLoad = runtext;
function runtext(){
array1=myXML.firstChild.childNodes;
for(i=0;i<array1.length;i++){
eval("textfield" add i) = array1[i];
}
}
then set the text fields / lines you want centred to be centred.
There is probably an easier way.....but I don't know it!
A:)
bahrami
10-30-2001, 09:18 PM
<P ALIGN="CENTER">centered text</P>
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.