A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: External .txt in movie in a movie HELP!

  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    4

    External .txt in movie in a movie HELP!

    Hello!
    OK, I've got an external .txt file loading into a .swf. It works just fine on its own. Once I try to add it into another .swf, the .txt doesn't show up. I don't know what's going on. Thanks in advance!

  2. #2
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    have you tried copying the textarea from the original file to the new file? Maybe the font is missing? Maybe your path is not set correctly, I think the best way for us to help you is for you to upload the file is not working

    V
    it is your mind that decides - it is with your mind that you fly


    vevmedia

  3. #3
    Junior Member
    Join Date
    May 2004
    Posts
    4
    maybe if I send you the link you can see what I mean. It's on the right side panel, there should be text showing up in the news and events sections. On it's own without loading it into the main page it works, it pulls in the text and everything. Once I include it to be displayed in the index everything comes up but the text, like you'll see. Thank you so much for your quick response.

    http://www.racescoringtechnologies.com

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    What are you using to load in the text? loadVariables or LoadVars()?

  5. #5
    Junior Member
    Join Date
    May 2004
    Posts
    4
    LoadVars()

    Here's what my code looks like:

    myData = new LoadVars();
    myData.onLoad=function(){
    field1_txt.text=this.content1;
    };
    myData.load("news1.txt");

    myData2 = new LoadVars();
    myData2.onLoad=function(){
    field2_txt.text=this.content2;
    };
    myData2.load("news2.txt");

    myData3 = new LoadVars();
    myData3.onLoad=function(){
    field3_txt.text=this.content3;
    };
    myData3.load("events1.txt");

    myData4 = new LoadVars();
    myData4.onLoad=function(){
    field4_txt.text=this.content4;
    };
    myData4.load("events2.txt");

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Then I guess you're loading this movie in a container clip in the other main movie, and you would need to adjust the path to your textfields.

  7. #7
    Junior Member
    Join Date
    May 2004
    Posts
    4
    OK, I'm not real sure how to do that. Someone else started this projecct and I've just taken over. How do I adjust them. I've been looking through all the code in the main movie and the side part, I don't even know where to start.

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