home *** CD-ROM | disk | FTP | other *** search
/ 3D World 110 / 3DW_110.iso / mac / Menu / Scenes / home.dir / 00016_Script_Sub_Item_Rollover < prev    next >
Text File  |  2008-09-12  |  766b  |  41 lines

  1. global gRootPath
  2. global gDiv
  3. global gMenuList
  4. global rollcolor
  5. global SectionNumber
  6. global SectionPath
  7. global gFullPath
  8. property Sp
  9. property myEntry
  10.  
  11. on Initialize me, aNumber, aListEntry, aItemTitle
  12.   Sp = sprite(aNumber)
  13.   myTitle = aItemTitle
  14.   myEntry = aListEntry
  15.   Sp.member.color = rgb(255,255,255)
  16. end
  17.  
  18. on mouseEnter me
  19.   cursor 280
  20.   Sp.member.color = rgb(132,220,253)
  21. end
  22.  
  23. on mouseLeave me
  24.   cursor -1
  25.   Sp.member.color = rgb(255,255,255)
  26. end
  27.  
  28. on mouseUp me
  29.   
  30.   fullPath = gRootPath & "DiscContent" & gDiv & SectionPath & gDiv & (gMenuList[SectionNumber].itemList[myEntry].itemPath) & gDiv
  31.   
  32.   gFullPath = fullPath
  33.   
  34.   
  35.   generateProductPage(fullPath)
  36.   
  37.   
  38.   
  39.   member("product_title").text = Sp.member.text
  40. end
  41.