PDA

View Full Version : externally imported data



VoS
May 24th, 2005, 02:10 PM
Hey there, having a bit of difficulty with a code
im importing a variable:
http://www.valj.nu/live/script/show.php

hej=<b> <font size='2' color='#620000'>Får man ha mobiltelefoner på lektionen?</font> <br><font size='1' color='#134553'>Ja, men de ska vara på ljudlöst</font><br><br></b>

to be displayed in an html text box, the problem is it is not importing the data.
it works if i set it to like, hej=wweeeee.
but not with what ive got there, anyone mind telling me whats wrong?



System.useCodepage = true;


//info_txt.htmlText = true; //enabled the html by dyn textbox button thingy instead
if(!Wee){
Wee=true;
loadText = new LoadVars();
loadText.load("http://www.valj.nu/live/script/show.php");
loadText.onLoad = function() {

info_txt.htmlText = this.hej;
trace(this.hej);
};
}



so , any help is greatly appreciated =)
Thanks
//VoS

VoS
May 25th, 2005, 11:38 AM
bump..
Simply need an answer to how i display the variable

hej=<b> <font size='2' color='#620000'>hej hej heesdgsfd</font> <br><font size='1' color='#134553'>hej på dej</font><br><br></b><b> <font size='2' color='#620000'>Är skolans mat god</font> <br><font size='1' color='#134553'>Nej det är den inte</font><br><br></b><b> <font size='2' color='#620000'>Får man ha mobiltelefoner på lektionen?</font> <br><font size='1' color='#134553'>Ja, men de ska vara på ljudlöst</font><br><br></b>

in a html box in flash thanks

Inept
May 26th, 2005, 02:26 AM
I think it may be the fact that your trying to load a php file as a text file, i don't know how to load text from a php file so someone else would have to help you there.

-Inept

matthewjumps
May 26th, 2005, 02:53 AM
COldnt you just make a dynamic textfield with the relevant variable and then check the "Display as HTML" option in the properties windoew?