dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: One Text File for all my text boxes?

  1. #1
    Member
    Join Date
    Feb 2002
    Location
    ST PAUL
    Posts
    31
    When setting up a text file that sends to flash, I know you can set text for one box by starting the text file:

    textBox=Text goes here.

    But can I add text for more boxes after it in the same text file? So one text file could import different text for different text boxes:

    textBox1=Text goes here.

    textBox2=Different text goes here.

    textBox3=More text goes here.


    Thanks,
    Eric

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    separate the variables in the text file with & like this

    textbox1=some text here&textbox2=some more text&textbox3=this is for a third textbox&textbox4=this could go on for some time



  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Box1=aaa&Box2=bbb&Box3=ccc


    Just use the '&' to seperate them.

    N.B. This explains why you should not use '&' as part of a loaded variable value.

    if you used Names = Jim&John

    Flash would ascribe the value "Jim" to Names and then look for a variable called 'John'

    ~mgb

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