A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: load text problem

  1. #1
    Senior Member gkbdave's Avatar
    Join Date
    Nov 2000
    Location
    Fort Bragg, NC
    Posts
    304

    load text problem

    I am trying to load a text file into a dynamic tex box. I have the following code on each button. There are a total of 3 buttons all going into the same box. But i get this error:

    The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
    loadText = new loadVars();




    Here is the code:

    on (release) {
    loadText = new loadVars();
    loadText.load ("meetinfo.txt");
    loadText.onLoad = function (success)
    {
    if (success)
    {
    // trace(success);
    newsBox.html = true;
    newsBox.htmlText = this.myNews;
    }
    };
    }

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Actionscript is case sensitive (since flash player 7/mx2004). You need to use

    loadText = new LoadVars();

    instead of,

    loadText = new loadvars();

  3. #3
    Senior Member gkbdave's Avatar
    Join Date
    Nov 2000
    Location
    Fort Bragg, NC
    Posts
    304
    Thanks Cat..
    that was the problem....

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