home *** CD-ROM | disk | FTP | other *** search
- property Sp, myAction, myTarget
- global gRootPath, divi, gFullPath, 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", EMPTY))
- end if
- "website":
- put myTarget
- gotoNetPage(myTarget)
- "local_link":
- Ok = baOpenFile(myTarget, "maximised")
- end case
- end
-