home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 41
/
MOBICLIC41.ISO
/
pc
/
Data
/
INTRO.DIR
/
00031_Script_31
< prev
next >
Wrap
Text File
|
2002-02-07
|
7KB
|
189 lines
on prepareMovie
-- case(the platform contains ("Win")) of
-- 1:
-- DmPack1Reg("74246")
-- DmPack2Reg("355181")
-- DmXTremePackReg("274943")
-- 0:
-- DmPack1Reg("65258")
-- DmPack2Reg("346193")
-- DmXTremePackReg("265955")
-- end case
end
----------------------------
on startMovie
-- chargement des xtras
chargeXtras
-- enregistrement des xtras
if the machineType=256 then
OK = baSaveRegistration("MILAN PRESSE", 2868605)
end if
register(xtra "PrintOMatic","PMAT162-964-29318")
-- crΘation Θventuelle des dossiers de prefs -------------------------------
-- nouveautΘ de Mobiclic 33 ------------------------------------------------
creationRepertoires
-- installationVideos
-- test des couleurs de l'Θcran
global nbCouleurs
nbCouleurs = the colorDepth
case the machineType of
256 :-- la machine est un PC
if the colorDepth < 8 then
alert field "alerte2"
quit
else
if the colorDepth=8 then
alert field "alerte"
end if
end if
otherwise :-- la machine est un Mac
if the colorDepth=8 then
alert field "alerte"
end if
end case
-- zapper l'intro
if the optionDown=1 then
go to movie "sommaire"
end if
end startMovie
on mouseUp
filmSuivant
end mouseUp
on filmSuivant
sound close 2
if quickTimeVersion()<5 then
go to movie "linstal"
else
go to movie "sommaire"
end if
end
on joueSon nom, n
if the machineType = 256 then
repeat with i=1 to the number of chars of nom
if char i of nom = ":" then
put "\" into char i of nom
end if
end repeat
end if
put the pathName & nom & ".aif" into nom
sound playFile n, nom
end joueSon
on chargeXtras
set p = the platform
case p of
"Windows,32": -- windows 95 et 98
openXlib the pathName & "xtras\Win32\budapi.x32"
openXlib the pathName & "xtras\Win32\PMatic.x32"
openXlib the pathName & "xtras\Win32\FileIo.x32"
openXlib the pathName & "xtras\Win32\Sound Import Export.x32"
openXlib the pathName & "xtras\Win32\infonts.x32"
otherWise:-- macintosh
openXlib the pathName & "xtras:Mac:Buddy API Xtra"
openXlib the pathName & "xtras:Mac:PMatic"
openXlib the pathName & "xtras:Mac:FileIO PPC Xtra"
openXlib the pathName & "xtras:Mac:Sound Import Export"
openXlib the pathName & "xtras:Mac:InstalledFonts Xtra"
end case
end
on creationRepertoires
rdm = field "repDuMois"
case the machineType of
256 : -- la machine est un PC --------------------------------------------------------
repertoire = baSysFolder("windows") & "MilanPresse"
OK = baFolderExists(repertoire)
if OK=0 then
-- toute l'arborescence doit Ωtre crΘΘe
baCreateFolder(repertoire)
repMilan = the PathName & "Install\MilanPresse"
XCopyDirectory(repMilan,repertoire)
else
-- le rΘpertoire Mobiclic est-il prΘsent ?
repertoire = baSysFolder("windows") & "MilanPresse\Mobiclic"
OK = baFolderExists(repertoire)
if OK=0 then
baCreateFolder(repertoire)
repMobi = the PathName & "Install\MilanPresse\Mobiclic"
XCopyDirectory(repMobi,repertoire)
else
-- le rΘpertoire du mois est-il prΘsent ?
repertoire = baSysFolder("windows") & "MilanPresse\Mobiclic\" & rdm
OK = baFolderExists(repertoire)
if OK=0 then
-- crΘation du rΘpertoire du mois
repertoire = baSysFolder("windows") & "MilanPresse\Mobiclic"
repMilan = the PathName & "Install\MilanPresse\Mobiclic"
XCopyDirectory(repMilan,repertoire)
end if
end if
end if
otherWise : -- la machine est un Mac -------------------------------------------------
repertoire = baSysFolder("prefs") & "MilanPresse"
OK = baFolderExists(repertoire)
if OK=0 then
-- toute l'arborescence doit Ωtre crΘΘe
baCreateFolder(repertoire)
repMilan = the PathName & "Install:MilanPresse"
XCopyDirectory(repMilan,repertoire)
else
-- le rΘpertoire Mobiclic est-il prΘsent ?
repertoire = baSysFolder("prefs") & "MilanPresse:Mobiclic"
OK = baFolderExists(repertoire)
if OK=0 then
baCreateFolder(repertoire)
repMobi = the PathName & "Install:MilanPresse:Mobiclic"
XCopyDirectory(repMobi,repertoire)
else
-- le rΘpertoire du mois est-il prΘsent ?
repertoire = baSysFolder("prefs") & "MilanPresse:Mobiclic:" & rdm
OK = baFolderExists(repertoire)
if OK=0 then
-- crΘation du rΘpertoire du mois
repertoire = baSysFolder("prefs") & "MilanPresse:Mobiclic"
repMilan = the PathName & "Install:MilanPresse:Mobiclic"
XCopyDirectory(repMilan,repertoire)
end if
end if
end if
end case
end
on installationVideos
rdm = field "repDuMois"
if the machineType=256 then
-- copie des ΘlΘments α installer sur PC -------------
v = baSysFolder("windows")
volume = v.char[1]
-- copie si au moins 20 MO libres
if baDiskInfo(volume,"free") > 20480 then
repeat with i=1 to field("installPC").lines.count
SourceFile = the pathName & field("installPC").line[i].word[1] & field("installPC").line[i].word[2]
DestFile = baSysFolder("windows") & "MilanPresse\Mobiclic\"& rdm &"\Temp\" & field("installPC").line[i].word[2]
baCopyFile( SourceFile , DestFile , "IfNotExist" )
sprite(6).width = sprite(5).width*i/field("installPC").lines.count
updateStage
end repeat
end if
else
-- copie des ΘlΘments α installer sur Mac ------------
v = baSysFolder("prefs")
P = offset(":", v)
volume = v.char[1..p-1]
-- copie si au moins 20 MO libres
if baDiskInfo(volume,"free") > 20480 then
repeat with i=1 to field("installMac").lines.count
SourceFile = the pathName & field("installMac").line[i].word[1] & field("installMac").line[i].word[2]
DestFile = baSysFolder("prefs") & "MilanPresse:Mobiclic:" & rdm & ":Temp:" & field("installMac").line[i].word[2]
baCopyFile( SourceFile , DestFile , "IfNotExist" )
sprite(6).width = sprite(5).width*i/field("installMac").lines.count
updateStage
end repeat
end if
end if
end