home *** CD-ROM | disk | FTP | other *** search
/ Smart Steps: 2nd Grade / SSGRADE2.iso / pc / dkcode / intro.dxr / 00001_Start.ls next >
Encoding:
Text File  |  1999-04-28  |  1.0 KB  |  43 lines

  1. on startMovie
  2.   global gDataPathname, gCDPathname, gImage, gReturn, gHasard, gBoiteImage, gNomJoueur, gSommaire, gUser, gNiveau, gQuitter, gPortrait, gVue3D, gAlbum
  3.   set gVue3D to "CGā”œāŒnā”œāŒ"
  4.   set gPortrait to 0
  5.   set gQuitter to the fileName of castLib 1
  6.   set gNiveau to "CE1"
  7.   set gReturn to "None"
  8.   set gImage to []
  9.   set gHasard to 1
  10.   set gBoiteImage to []
  11.   set gNomJoueur to "SERGE"
  12.   set gSommaire to "TABLEF"
  13.   set gAlbum to "P1"
  14.   if the machineType = 256 then
  15.     set gDataPathname to the pathName & "SUIVI\"
  16.     set gCDPathname to the pathName & "MEDIA\"
  17.     set gUser to "User1\"
  18.   else
  19.     set gDataPathname to the pathName & "SUIVI:"
  20.     set gCDPathname to "Smart Steps 2nd Grade:MEDIA:"
  21.     set gUser to "User1:"
  22.   end if
  23.   repeat with i = 1 to 300
  24.     add(gImage, 0)
  25.   end repeat
  26.   set the mouseDownScript to "jeClique"
  27. end
  28.  
  29. on jeClique
  30.   go(76)
  31. end
  32.  
  33. on ExistFichier Fichier
  34.   set gReadObject to fileio(mnew, "read", Fichier)
  35.   if gReadObject < 0 then
  36.     set result to 0
  37.   else
  38.     set result to 1
  39.     gReadObject(mdispose)
  40.   end if
  41.   return result
  42. end
  43.