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

  1. #1

    Default note files

    Ok, no NASA jokes,

    I am creating a note base to work with a slide show. Each slide will have a
    note associated with it that is either blank or filled by the user. I would
    guess there would be no more than 50 notes that each of which might contain
    100 or more words.

    Would the best way to handle this be to read from the text file that
    contains the notes each time the user turns to another note or to read the
    text file in at the beginning of the session and just refer to the text
    variable each time another note is needed?

    Notes will also be edited and will have to be saved again. This can be done
    in the text variable or can be done by writing to a text file each time.

    I suppose the answer to this question depends on the size limit of a
    variable in Director. By the way, I'm using simple ascii text from fields,
    not RTF or other text from text members.

    Since each note is associated with a slide, I was thinking of tagging each
    note with the slide name and loading it all into a property list on start up
    to make referencing the text easier.

    Comments, answers?



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]


    Word of Mouth Productions Guest

  2. Similar Questions and Discussions

    1. Urgent: Online files accessing local files Issue
      Hi.. We are working on a online project where we have some 600 MB videos. The complete project is made using flash & HTML.
    2. Preserving links between Illustrator files and image files during system upgrade
      Client is a design firm with thousands of Illustrator files spread across about five non-RAID external SCSI drives, most with partitions, attached to...
    3. note 33957 added to features.remote-files
      In response too: -------------------- "Be careful when you use something like index.php?showpage=news.php and include() that $showpage file....
    4. note 33906 added to features.remote-files
      Does anyone know whether it is possible to use this feature with proxy servers? ---- Manual Page --...
    5. note 33896 added to features.remote-files
      Note that in the last example, you could still request a dodgy file from the local server. For instance, /etc/passwd may allow you to get some...
  3. #2

    Default Re: note files

    if notes are stored on a single user system, you could use a separate
    savepref, getpref file for each note, this is the simplest way to store
    text.

    One common notes file could be used, this is more suitable for multiple
    user systems, with logged in user name used for notes file name.

    You would invent some delimiter scheme to seperate notes with the common
    file, such as

    ///note12

    with /// excluded from body of notes.


    alternative, an entire list variable may be stored in text file.

    the trick here is to restore the list from the tedt file using
    value(readText), validating list with not voidp() or listp() test of
    result.
    JB 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