home *** CD-ROM | disk | FTP | other *** search
- property Sp, myEntry
- global gRootPath, gDiv, gMenuList, rollcolor, SectionNumber, SectionPath, gFullPath
-
- on Initialize me, aNumber, aListEntry, aItemTitle
- Sp = sprite(aNumber)
- myTitle = aItemTitle
- myEntry = aListEntry
- end
-
- on mouseEnter me
- cursor(280)
- Sp.color = rollcolor
- end
-
- on mouseLeave me
- cursor(-1)
- Sp.color = rgb(0, 0, 0)
- end
-
- on mouseUp me
- aPath = gMenuList[SectionNumber].ItemList[myEntry].ItemPath
- me.GenerateGallery(aPath)
- end
-
- on GenerateGallery me, aPath
- repeat with i = 200 to 250
- sprite(i).visible = 0
- sprite(199).visible = 1
- end repeat
- _movie.updateStage()
- fullPath = gRootPath & "DiscContent" & gDiv & SectionPath & gDiv & aPath & gDiv
- gFullPath = fullPath
- generateProductPage(fullPath)
- sendSprite(7, #pFormat, 7)
- found = 0
- galleryLoc = point(460, 120)
- put fullPath & "images.cst"
- if baFileExists(fullPath & "images.cst") then
- pTime = the milliSeconds
- castLib("images").fileName = fullPath & "images.cst"
- galPath = fullPath & "images.cst"
- found = 1
- pTime = the milliSeconds - pTime
- else
- if baFileExists(fullPath & "images.cxt") then
- castLib("images").fileName = fullPath & "images.cxt"
- galPath = fullPath & "images.cxt"
- found = 1
- end if
- end if
- if found = 1 then
- repeat with k = 1 to the number of castMembers of castLib "images"
- member(k, "images").regPoint = point(0, 0)
- end repeat
- end if
- if found = 1 then
- repeat with j = 200 to 250
- sprite(j).scriptInstanceList = []
- channel(j).removeScriptedSprite()
- end repeat
- chn = 200
- cnt = 0
- chans = []
- repeat with i = 1 to the number of castMembers of castLib "images"
- member(i, "images").regPoint = point(0, 0)
- cnt = cnt + 1
- chans.add(chn)
- sprite(chn).visible = 0
- channel(chn).makeScriptedSprite(member(i, "images"), galleryLoc)
- sprite(chn).rect = rect(galleryLoc.locH, galleryLoc.locV, galleryLoc.locH + 100, galleryLoc.locV + 80)
- sprite(chn).scriptInstanceList.add(script("galleryThumb").new())
- sendSprite(chn, #init, chn, i, galPath)
- chn = chn + 1
- galleryLoc.locH = galleryLoc.locH + 108
- if cnt = 3 then
- galleryLoc.locH = 460
- galleryLoc.locV = galleryLoc.locV + 100
- cnt = 0
- end if
- end repeat
- repeat with i = 1 to chans.count
- if sprite(chans[i]).member.regPoint = point(0, 0) then
- sprite(chans[i]).visible = 1
- end if
- end repeat
- sprite(199).visible = 0
- end if
- member("product_title").text = Sp.member.text
- end
-