dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Extern text file

  1. #1
    Member
    Join Date
    May 2008
    Posts
    46

    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)
    Don't blame me cuz' my English sucks ) i'm from romania XD

    www.xelubest.ro

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    91
    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.

  3. #3
    Member
    Join Date
    May 2008
    Posts
    46
    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
    Don't blame me cuz' my English sucks ) i'm from romania XD

    www.xelubest.ro

  4. #4
    Member
    Join Date
    Jul 2007
    Posts
    91
    Before i reply for your question i check this tutorial (with 3dfa 4.9.8.6). Here you can download my sample.

  5. #5
    Member
    Join Date
    May 2008
    Posts
    46
    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
    Don't blame me cuz' my English sucks ) i'm from romania XD

    www.xelubest.ro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center