-
Extern text file
Hey guys...
i'm owrking on a site... and at the NEWS i wanna load an external.txt
that will be uploaded on the host..
how can i make that??
i assume it's something with an editbox and a little scripting... PLEASE
help :3 (i'll give cookies)
-
Loading Text from External Sources
Code:
loadText = new LoadVars();
loadText.load("external.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
}
Add variable name "newsBox" to your edit box, and make txt file.
external.txt
myNews=<b>Lorem ipsum</b> dolor sit amet <font color="#ff0000">consectetuer amet</font> dictumst augue Phasellus quis. Rhoncus Suspendisse dapibus interdum Lorem eros pede interdum Praesent Integer Lorem. Felis Pellentesque elit tincidunt auctor Pellentesque interdum sodales elit lorem parturient. Pede leo quis tristique justo quam egestas nibh nibh quis Sed. Sem Vivamus Curabitur et urna pulvinar consectetuer rutrum tortor elit vitae. Sed platea nunc vitae pede justo tristique Nam nibh condimentum.
-
thanks for the reply.. i have tried everything and it's not working
changing the external file name , trying all the editbox settings...
in 3dfa it's not working
-
Before i reply for your question i check this tutorial (with 3dfa 4.9.8.6). Here you can download my sample.
-
OMG.. thanks A LOT !!!! it's working :"> i didn't make the "assing element to variable" thing..
thanks alot again.. you saved me :P
you can view work in progress here www.facepalmstudio.com/index2.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|