home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D World 111
/
3DW_111.iso
/
pc
/
Menu
/
Scenes
/
home.dir
/
00028_Script_action_button_rollover
< prev
next >
Wrap
Text File
|
2008-09-12
|
2KB
|
107 lines
property Sp
property myAction
property myTarget
global gRootPath
global Divi
global gFullPath
global gFormat
on initialize me, aTarget, aspritenum, aAction
Sp = sprite(aSpritenum)
myAction = aAction
myTarget = aTarget
end
on mouseEnter me
Sp.member = member("INSTALL_OVER")
cursor 280
end
on mouseLeave me
Sp.member = member("iNSTALLbUTTON")
cursor -1
end
on mouseUp me
case myAction of:
"website":
me.doAction(myAction)
"local_link":
me.doAction(myAction)
"register":
me.doAction(myAction)
"upgrade":
me.doAction(myAction)
"folder":
me.doAction(myAction)
"install_pc":
if the platform contains "win" then
theAction = "install"
me.doAction(theAction)
else
if gFormat = "both" then
alert "Please click the other install button"
else
alert("Sorry, but this software is for PC only")
end if
end if
"install_mac":
if the platform contains "mac" then
theAction = "install"
me.doAction(theAction)
else
if gFormat = "both" then
alert "Please click the other install button"
else
alert "Sorry, but this software is for MAC only"
end if
end if
end case
end
on DoAction me, anAction
case anAction of
"register":
gotonetpage(myTarget)
"install":
put "gFullPath = " & gfullpath & myTarget
OK = baOpenFile( gFullPath & myTarget , "normal" )
"folder":
put "gFullPath = " & gfullpath & myTarget
OK = baOpenFile( gFullPath & myTarget , "normal" )
if the platform contains "mac" then
baActivateWindow (baFindWindow ("MACS",""))
end if
"website":
put myTarget
gotonetpage(myTarget)
"local_link":
OK = BaOpenFile( myTarget, "maximised")
end case
end