Saving multiple text fields to a txt file and then loading them back

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Saving multiple text fields to a txt file and then loading them back

    Hi

    I am trying to create a movie where the user can edit the text within
    the movie and save what they have entered. I know i need to use the
    get/set pref command, or use file IO, the problem i have is handling
    the text from the fields,
    I can get the text from the fields,using

    myList = [member(23).text, member(24).text, member(25).text]
    myString = myList.string
    put myString

    this gives me the text from text members 23,24,25. what i don't
    understand is how to retrieve the text from the string and put it back
    into the text fields

    any help would be gratefully appreciated

    Thanks
    Mike McC Guest

  2. Similar Questions and Discussions

    1. Loading Multiple Text files
      Hi! I've got several archived text files - 040107.txt, 040207.txt, 040307.txt, for example - and I want to be able to build a dynamic link which...
    2. Adobe CS2 looses live text fields in PDF files when saved back out
      We have a customer that provides us with PDF files that contain text fields. We need to add graphics in AICS2 and then save the PDF file back out....
    3. Saving multiple pictures in a single file
      When saving three or four Illustrator files as PDF is there a way to save them as separate pages in a single file instead of separate files. Could...
    4. multiple text fields
      As frame5 is entered, multiple text fields are supposed to be created. I have 3 createTextFields. Each one works, if it's the only one I didin't...
    5. Saving Text In Txt File
      I am using Flash 5. I am creating a simple game and i want to add a score list at the end of the program. So i need to save the score in a file like...
  3. #2

    Default Re: Saving multiple text fields to a txt file and then loading them back

    Cheers Sludge, your a star!!

    sludge <aaa@aaa.com> wrote in message news:<250920031028274639%aaa@aaa.com>...
    > use the setat, getat and appendat commands...
    >
    > e.g.
    >
    > myList = [member(23).text, member(24).text, member(25).text]
    > myString1 = getat(myList,1)
    > myString2 = getat(myList,2)
    > myString3 = getat(myList,3)
    > myString = myString1 & myString2 & myString3
    > put "myString= " & myString & RETURN
    > put "myString1= " & myString1 & RETURN
    > put "myString2= " & myString2 & RETURN
    > put "myString3= " & myString3 & RETURN
    >
    > member(23).text = myString1
    >
    > etc.
    >
    >
    > ade
    >
    > In article <1b5a11a8.0309240337.379410f1@posting.google.com >, Mike McC
    > <mike@literacymatters.com> wrote:
    >
    > > Hi
    > >
    > > I am trying to create a movie where the user can edit the text within
    > > the movie and save what they have entered. I know i need to use the
    > > get/set pref command, or use file IO, the problem i have is handling
    > > the text from the fields,
    > > I can get the text from the fields,using
    > >
    > > myList = [member(23).text, member(24).text, member(25).text]
    > > myString = myList.string
    > > put myString
    > >
    > > this gives me the text from text members 23,24,25. what i don't
    > > understand is how to retrieve the text from the string and put it back
    > > into the text fields
    > >
    > > any help would be gratefully appreciated
    > >
    > > Thanks
    Mike McC Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139