A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help!!! my text file won't load

  1. #1
    Junior Member
    Join Date
    Oct 2006

    Help!!! my text file won't load


    im having problems loading some text from a text file..

    used the trick before without any problems, but for some ... reason it just won't work in my current project.

    the code im using------------------------------------------------------

    // Load text as variable and assign it to the
    // dynamic text field
    var MyContent_lv:LoadVars = new LoadVars();
    MyContent_lv.onLoad = onText;
    function onText(success:Boolean) {
    if (success) {
    _root.Content_txt.text = MyContent_lv.welcome_txt;
    } else {
    _root.Content_txt.text = "unable to load text file.";

    *The code is in the firtst frame on the main timeline of my .fla

    *The textfield is named "Content_txt" and resides on the first frame of the main timeline (in a separate layer that is)

    I attached the files needed to this post.

    Thanx in advance
    Last edited by 476producties; 10-20-2006 at 04:26 AM.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    no files attached
    what is the content of your text file ?
    it should read - &welcome_txt=Hello World&

  3. #3
    Junior Member
    Join Date
    Oct 2006

    attachment second try

    for some reason the attachment wasn't posted, (guess its to big)

    so for those who want to see the files please browse your way to:
    download here

    oh and if am at is anyway i might as wel ask something more urgent than loading a textfile...

    my project now has a dynamic slideshow (xml based) which loads a new pic every so often. The slideshow resides in its own swf which is loaded in the main swf. this all works well but when the slideshow runs it blocks all other functionality (i.e. buttons, and other animations)
    It seems that utilizing the {this._parrent....} will do the same as {._lockroot}. How to overcome this and keep functionality in my main swf
    to see what i mean go to: http://www.476producties.nl/PG2007

    *can't send the files couse there to large for the FK upload*
    Last edited by 476producties; 10-20-2006 at 05:00 AM.

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