• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Working with FileIO

Enough of the theory. Let's put the parent/child methodology to work by tackling FileIO, Director's main tool for reading and writing files. We'll start by initializing a new child object we'll call scribe. But before we do that, let's open a new movie in Director and save it. Doing this will set the system property the moviePath, and that will make it easier to talk about the file we will be creating (because we'll be using the moviePath to define the newly created file's location on your system). It doesn't matter what you call the movie, but you'll be putting the new text file in the same folder as the movie.

  1. Open Director and save the movie in your projects folder.

  2. In the Message window, enter this line:

    put the moviePath
    

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint