home *** CD-ROM | disk | FTP | other *** search
- -- 2000.03.10
- -- Clive Green <clivegreen@atlas.co.uk>
-
- ------------------------------------------------------------------------------------------------------
-
- -- declare globals:
- global gRoot -- the stubFile or runtime projector's parent directory path
-
- ------------------------------------------------------------------------------------------------------
-
- on openMain L
-
- -- this handler MUST be called from the stub/projector file!
-
- -- return to caller if no arguments have been provided:
- if ilk(L) <> #propList then return 0
-
- r = L[#rootPath]
- m = L[#mainPath]
-
- -- perform a cursory check - string values are required:
- if not stringP(r) or not stringP(m) then return 0
-
- --------------------
-
- -- store the projector's parent directory path:
- gRoot = r
-
- -- use a platform-independent filePath relative to the current
- -- location by using the @ symbol:
- go movie "@" & m
-
- ----------------------------------------------------------------------------------------------------