Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Sortem
Text2Graphic Pro
Make Bitmaps from Flash
Convert Decimal to Comma (EU)
Detecting Quicktime
Windows and Cascading Menus for Shockwave
Useful list functions
Tony's Quick Script Maker
Prepare for movie (Sound Card and Screen Saver Check)
Protected Code
 

 

 

Behavior Export Text for proofing

Added on 6/8/1999

 

Compatibilities:
D6_5 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

This is a quick one I wrote a couple of years ago to export all my text members for the proof-reader.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

on makeFileFromTexta whichFile, whatLib  
  set myFile = new(xtra "fileio")  
  if fileExists(whichFile) <> 0 then
    createFile(myFile, whichFile)
  end if  
  openFile(myFile, whichFile, 0)
  repeat with x = 1 to the number of members of castLib whatLib
    if the type of member (member x of castlib whatLib) = #richText then
      set whatText = the text of member x of castlib whatLib
      setPosition(myfile,getLength(myFile))
      set tCRLF  = numToChar(13) & numToChar(10)
      writeString(myFile, whatText & tCRLF & tCRLF)  
    end if
  end repeat
  closeFile(myFile)                    
  set myFile = 0                        
end  

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail