Modular Text into Projector

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

  1. #1

    Default Modular Text into Projector

    This is probably something simple, but I can't seem to make it work. I want to be able to create a Shockwave project that will end up being a CD distributed to a lot of people. In the idea of being able to have someone else update the cd next year, I want to include all the text that will be on the CD as txt files so that they dont' have to know Director to be able to update it. I have looked and tried several things, the closest thing I have seen to what I need to do is this.

    on enterframe
    importFileInto(member "Date", "Date.rtf")
    end if

    I want the files to be stored locally and not a webserver as some of the people that will want to view it might not have internet connections. What I have is a text box called Date, and a file called Date.rtf I have tried txt also, and I just want it to read the text from the file and populate the text box with that data. Can someone point out what I have missed or possibly direct me to a good tutorial website. Thanks in advance!

    Toolman21



    Toolman21 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. CGI scripts and modular design?
      Howdy, I've been poking through some different shopping cart software, trying to decide which one to use. All of them use piped filehandles or...
    2. Modular Photoshop?
      Maybe this topic should be in the request section, but I think here it will get more attention and probably this suggestion is too dumb as I don't...
    3. Modular design using ASP
      Mike, I don't follow this exactly. In your third paragraph, what is a concrete example of what you can do with PHP but not ASP? Paul "Mike"...
    4. Dynamic Text in a Projector
      Hi, I'm developing a way to put general education courses on an interactive cd. Some of the courses have content that would need to be changed yearly...
    5. Ideas for a modular config file?
      Hi folk, Right now I have a project that has a "bind-style" config file that is parsed with the aid of flex and bison. It looks a bit like this:...
  3. #2

    Default Re: Modular Text into Projector

    You could use FileIO:

    fileObj=new(Xtra "FileIO")
    filename=the moviepath & "date.txt"
    openfile(fileObj, filename,1)
    member("Date").text=readfile(fileObj)
    closefile(fileObj)

    Judy
    "Toolman21" <webforumsuser@macromedia.com> wrote in message
    news:brd1jn$k01$1@forums.macromedia.com...
    > This is probably something simple, but I can't seem to make it work. I
    want to be able to create a Shockwave project that will end up being a CD
    distributed to a lot of people. In the idea of being able to have someone
    else update the cd next year, I want to include all the text that will be on
    the CD as txt files so that they dont' have to know Director to be able to
    update it. I have looked and tried several things, the closest thing I have
    seen to what I need to do is this.
    >
    > on enterframe
    > importFileInto(member "Date", "Date.rtf")
    > end if
    >
    > I want the files to be stored locally and not a webserver as some of the
    people that will want to view it might not have internet connections. What
    I have is a text box called Date, and a file called Date.rtf I have tried
    txt also, and I just want it to read the text from the file and populate the
    text box with that data. Can someone point out what I have missed or
    possibly direct me to a good tutorial website. Thanks in advance!
    >
    > Toolman21
    >
    >

    JPrice Guest

  4. #3

    Default Re: Modular Text into Projector

    I had a similar problem and here's what I did: I created two text members,
    one of them is visible on the stage (member("explanation")), the other one
    is - as its name says - a dummy to load the text from a file.

    theFile = the moviePath & "/text1.txt"
    member("loadingDummy").filename = theFile

    After these statements all of the text from file "text1.txt" is loaded into
    member "loadingDummy". Now you can copy portions (single lines) or all of
    the text into the member shown on the stage, for example:

    member("explanation").text = member("loadingDummy").text.line[i]

    Hope this helps you :-)
    L.S.


    Loren Schwarz 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