home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stickerpedia Stickerbook
/
Stickerbook.iso
/
pc
/
DATA
/
main.dxr
/
00002_Script_2
< prev
next >
Wrap
Text File
|
2003-03-24
|
4KB
|
115 lines
--\
file copy
global gWhichCD
--This is the accompanying CD for 3 Children Stickerbooks:
--
--- Dinosaurs
--- Animals
--- Oceans & Rivers
--
--To cut costs, there will only be ONE CD for all three books, containing 3 picture libraries, 1 for Dino's, 1 for animals and 1 for Oceans.
--However, the user will only be able to access 1 library through a password printed in the book he has aquired.
--
--
--PASSWORDS are:
--
--for Dinosaurs
--REPTILE
--
--for Animals
--TIGER
--
--for Oceans & Rivers
--
-- baCopyFile
--Platform: Windows and Macintosh
--Description: baCopyFile copies a file.
--Usage: Result = baCopyFile( SourceFile , DestFile , Overwrite )
--Arguments: String, String, String.
--SourceFile is the file to copy.
--DestFile is the name to copy it to.
--Overwrite determines how the copy is done. Can be:
--"Always" always copies the file
--"IfNewer" copies the file if SourceFile is newer than DestFile
--"IfNotExist" copies only if DestFile does not already exist
--Returns: Integer.
--Returns 0 if the file was copied successfully, otherwise one of these:
--1 Invalid Source file name
--2 Invalid Dest file name
--3 Error reading the Source file
--4 Error writing the Dest file
--5 Couldn't create directory for Dest file
--6 Dest file exists
--7 Dest file is newer that Source file
--Examples: Director:
--set OK = baCopyFile("c:\data\student.dat", "c:\data\backup\student.dat", "IfNewer")
--Authorware:
--OK := baCopyFile("c:\\data\\student.dat", "c:\\data\\backup\\student.dat", "IfNewer")
--Notes: By default, this function will not overwrite an existing file if that file is marked as
--read-only. However, by adding "+" to the "Always" and "IfNewer" options ( eg
--"Always+" or "IfNewer+"), the files will be overwritten if they are read-only.
--A return value of 6 (Dest file exists) can only be returned when Overwrite is
--"IfNotExist".
--A return value of 7 (Dest file is newer than Source file) can only be returned when
--Overwrite is "IfNewer". The other return values can be returned for all Overwrite
--options.
--The "IfNewer" option operates as follows on Windows: if both files have internal
--version numbers, then these numbers are used for comparison, otherwise the
--dates of the two files are used for comparison. On Macintosh, only the file dates
--are used for comparison.
--The DestFile must contain the full name of the file, not just the name of the folder it
--is being copied to.
--See also: baCopyXFiles
--GetFolder
--Platform: Windows
--Description: baGetFolder displays a directory dialog box and returns the folder selected..
--Usage: Result = baGetFolder( StartDir, Instruction, Flags, Caption, X, Y )
--Arguments: String, string, integer, string, integer, integer.
--StartDir is the initial directory. Use "" for the current directory.
--Instruction is the instruction to display to the user.
--Flags modifies the behaviour of the dialog.
--Caption is the caption of the dialog.
--X is the horizontal position of the dialog.
--Y is the vertical position of the dialog.
--Returns: String.
--Returns the folder selected, or "" if the user cancelled.
--Examples: Director:
--set folder = baGetFolder( "c:\temp", "Please select a folder to install into:", 1,
--"Select a folder", -1, 0 )
--Authorware:
--folder := baGetFolder( "c:\\temp", "Select installation directory", 0, "", 200, 200 )
--Notes: The flags argument allows you to change the way the dialog box looks and
--behaves. Currently, only one value is defined.
--1 ODN_EXPLORER
--Makes the dialog box a 32 bit Explorer style. If this style is not available, for example
--if running under Windows 3.1, then a 16 bit style dialog will be shown. The 16 bit
--Xtra/UCD ignores this style - it will always show the 16 bit style dialog.
--2 ODN_NEWBUTTON
--Displays a ëNewí button to allow the user to create a new folder. This style is only
--available with the 16 bit style dialog. It cannot be combined with ODN_EXPLORER.
--The Caption argument is only used if a 32 bit dialog box is used. If it is an empty
--string, then the default "Browse for Folder" will be displayed.
--The X and Y values are the number of pixels from the top left corner of the screen.
--Set X to -1 to position the dialog in the center of the calling Director/Authorware
--window. Set X to -2 to position the dialog in the center of the screen.