A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Don´t anybody know how to have more than one textfile in a movie?

  1. #1
    Tomatos
    Join Date
    Aug 2001
    Location
    Vejle, Denmark
    Posts
    85
    In a movie with an external dynamic .txt or .xml file, which loads other movies in a containerclip, which also has an external dynamic .txt file - why does the mainmovie with ex. a .txt file called test.txt, loads in this test.txt file in the other movies in the containerclip, eventhough they have totally other names those textfiles?

    Please flash guru´s, help me out :-)

    Thanks,
    Thomas

  2. #2
    Junior Member
    Join Date
    Mar 2001
    Posts
    12
    Is each files variable named differently?
    or does all textfiles start with defining the same variable name?
    eg
    -----texfile1 start ------
    myVar=hello
    -----textfile1 stop -----
    -----texfile2 start ------
    myVar=hello2u2
    -----textfile2 stop -----
    and you might end up having "hello" or "hello2u2" in all textfields
    The right thing would be to;
    -----texfile1 start ------
    myVar1=hello
    -----textfile1 stop -----
    -----texfile2 start ------
    myVar2=hello2u2
    -----textfile2 stop -----
    and refer each textfield to "myvar1" or "myVar2"

    maybe?

  3. #3
    Tomatos
    Join Date
    Aug 2001
    Location
    Vejle, Denmark
    Posts
    85

    .Txt files

    Hallo Leif,
    I can give you an example - this is what I write in the first keyframe of every movie in order to load the .xml file:

    "_root.loadVariables("factstext.xml", "");"

    and in another movie:

    "_root.loadVariables("historytext.xml", "");"

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