home *** CD-ROM | disk | FTP | other *** search
- property Sp, myPath, menuTree
- global bHeight, bWidth, gRootPath, dv, ActiveSection, gActionPath
-
- on beginSprite me
- Sp = sprite(me.spriteNum)
- menuTree = member("menutree")
- end
-
- on mouseEnter me
- cursor(280)
- sprite(me.spriteNum).member.color = rgb(0, 120, 180)
- end
-
- on mouseLeave me
- cursor(-1)
- sprite(me.spriteNum).member.color = rgb(0, 0, 0)
- sprite(2).visible = 0
- end
-
- on mouseUp me
- Sp = sprite(me.spriteNum)
- menuTree = member("menutree")
- tragic = Sp.member.text
- repeat with i = 1 to menuTree.line.count
- if menuTree.line[i] contains ActiveSection then
- repeat with o = 1 to menuTree.line[i].word.count
- if menuTree.line[i].word[o] contains "@@" then
- lineEnd = menuTree.line[i].word.count
- ActiveSection = menuTree.line[i].word[o..lineEnd]
- delete ActiveSection.char[1..2]
- end if
- end repeat
- repeat with k = i + 1 to menuTree.line.count
- if menuTree.line[k] contains tragic then
- put "Found"
- repeat with l = 1 to the number of words in menuTree.line[k]
- if menuTree.line[k].word[l] contains "@@" then
- lineEnd = menuTree.line[k].word.count
- myPath = menuTree.line[k].word[l..lineEnd]
- delete myPath.char[1..2]
- end if
- end repeat
- end if
- end repeat
- end if
- end repeat
- gActionPath = gRootPath & "DiscContent" & dv & ActiveSection & dv & myPath & dv
- put gActionPath
- GatherActions(gActionPath)
- sendAllSprites(#HideMenu, 0)
- end
-