A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with loading text file (loadvars). Works in pc but no in internet [NOT SOLVED]

  1. #1
    Join Date
    Mar 2006

    Help with loading text file (loadvars). Works in pc but no in internet [NOT SOLVED]

    Hey guys
    I have this script in my flash

    on (release) {
        loadText = new LoadVars();
        loadText.onLoad = function(success) {
            if (success) {
                // trace(success);
                _parent.newsBox.html = true;
                _parent.newsBox.htmlText = this.myNews;
    It loads a small text with this info:
    HTML Code:
    myNews=<font size="16px" color="#FFFFFF"><b>Tampa, FL</b></font>
    402 East Oak Avenue Suite 204 Tampa, FL 33602-2704
    T. 813.221.5060                F. 813.221.

    Everything works fine in my pc, I change the URL and stuff and nothing, the server is just "reading'. Both files are together in the same folder.

    What should I do? Thank you in advance

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    CFA2h (respect the HEX)
    PHP Code:
    loadText = new LoadVars();
    loadText.onLoad = function(success) {
        if (!
    success) {
    trace("Cant find data");
    //_parent.newsBox.html = true;
            //_parent.newsBox.htmlText = this.myNews;
    trace("NEWS: "+this.myNews);

    seems to load fine for me...

    what is the other URL you are trying to load? I would also NOT add those linebreaks and extra spaces in the text file.. use HTML tags to format....or CSS

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