home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 165 / XENIATGM165.ISO / cddata / main.dxr / 00001.ls next >
Encoding:
Text File  |  2003-05-29  |  19.6 KB  |  738 lines

  1. on startMovie
  2.   global plailist, csong, channel, gm, ts, mk, audioon, pcl, pcd, ft, volgen, cheat, showm, chm
  3.   process_config()
  4.   plailist = []
  5.   showm = 0
  6.   chm = 0
  7.   if (plailist = []) or (plailist = VOID) then
  8.     plailist = currentFolder()
  9.   end if
  10.   member("_page_").startURL = EMPTY
  11.   member("videompg").file = EMPTY
  12.   set the exitLock to 1
  13.   cheat = EMPTY
  14.   pcl = 1
  15.   pcd = 1
  16.   csong = 1
  17.   ft = 1
  18.   volgen = 255
  19.   pcd = pcl
  20.   set the keyDownScript to "myNoEscape"
  21.   if voidp(audioon) then
  22.     audioon = 1
  23.     set the soundLevel to 7
  24.   end if
  25.   if csong = VOID then
  26.     channel = 0
  27.   end if
  28.   if csong = VOID then
  29.     csong = 0
  30.   end if
  31.   sound fadeOut 1, 1
  32.   sound fadeOut 2, 1
  33.   repeat with i = 1 to 200
  34.     sprite(i).visible = 1
  35.   end repeat
  36.   repeat with i = 161 to 167
  37.     sprite(i).visible = 0
  38.   end repeat
  39. end
  40.  
  41. on imaging chan, src, dest
  42.   chan = sprite(chan)
  43.   dy = 0
  44.   repeat with dx = 100 down to 0
  45.     member("sfondo_fake").image.copyPixels(src.image, rect(0, 0, 1024, 398), src.rect, [#blendLevel: 100 - dx, #useFastQuads: 1])
  46.     dx = dx - integer(dx / 5)
  47.     updateStage()
  48.   end repeat
  49.   member("sfondo_fake").image.copyPixels(src.image, rect(0, 0, 1024, 398), src.rect, [#blendLevel: 255, #useFastQuads: 0])
  50.   updateStage()
  51. end
  52.  
  53. on prepareMovie
  54.   global gm, ts, mk, rndmenu
  55.   oldm = member("sfondo._fake")
  56.   rmenu = random(5)
  57.   repeat while rndmenu = rmenu
  58.     rmenu = random(5)
  59.   end repeat
  60.   rndmenu = rmenu
  61.   imaging(8, member("main" & rndmenu), oldm)
  62. end
  63.  
  64. on calldescr me, desc
  65.   puppetSprite(27, 1)
  66.   if the frame > 5 then
  67.     return 
  68.   end if
  69.   if desc <> 0 then
  70.     sprite(27).member = member(desc & "_descr")
  71.     sprite(27).loc = point(209, 405)
  72.   else
  73.     puppetSprite(27, 0)
  74.     sprite(27).member = member("null")
  75.     updateStage()
  76.   end if
  77.   put desc
  78. end
  79.  
  80. on setsong me, song
  81.   global plailist, csong, channel, pcl, pcd, ft, volgen
  82.   if plailist = [] then
  83.     repeat with i = 1 to 5
  84.       setVariable(sprite(25), "t" & i, EMPTY)
  85.       sprite(25).tellTarget("c" & i)
  86.       sprite(25).goToFrame(2)
  87.       sprite(25).endTellTarget()
  88.     end repeat
  89.     return 
  90.   end if
  91.   ft = 0
  92.   if (value(song) + pcl - 1) <= plailist.count then
  93.     changesong(value(song) + pcl - 1)
  94.   end if
  95. end
  96.  
  97. on removemusic
  98.   global plailist, csong, channel, pcl, pcd, ft, volgen
  99.   if plailist = [] then
  100.     repeat with i = 1 to 5
  101.       setVariable(sprite(25), "t" & i, EMPTY)
  102.       sprite(25).tellTarget("c" & i)
  103.       sprite(25).goToFrame(2)
  104.       sprite(25).endTellTarget()
  105.     end repeat
  106.     return 
  107.   end if
  108.   if plailist.count > 1 then
  109.     plailist.deleteAt(csong)
  110.     pcd = 0
  111.     pcl = 0
  112.     changesong()
  113.   end if
  114. end
  115.  
  116. on updatelist vl
  117.   global plailist, csong, channel, pcl, pcd, ft, volgen
  118.   if plailist = [] then
  119.     repeat with i = 1 to 5
  120.       setVariable(sprite(25), "t" & i, EMPTY)
  121.       sprite(25).tellTarget("c" & i)
  122.       sprite(25).goToFrame(2)
  123.       sprite(25).endTellTarget()
  124.     end repeat
  125.     return 
  126.   end if
  127.   if ((pcd + vl) <= plailist.count) and ((pcl + vl) > 0) then
  128.     pcd = pcd + vl
  129.     pcl = pcl + vl
  130.   end if
  131.   repeat with i = pcl to pcd
  132.     tx = plailist[i]
  133.     l = tx.length
  134.     repeat while (tx.char[l..l] <> "\") and (l > 1)
  135.       l = l - 1
  136.     end repeat
  137.     tx = tx.char[l + 1..tx.length - 4]
  138.     setVariable(sprite(25), "t" & i - pcl + 1, tx)
  139.     sprite(25).tellTarget("c" & i - pcl + 1)
  140.     sprite(25).goToFrame(1)
  141.     sprite(25).endTellTarget()
  142.   end repeat
  143.   if (csong >= pcl) and (csong <= pcd) then
  144.     sprite(25).tellTarget("c" & csong - pcl + 1)
  145.     sprite(25).goToFrame(2)
  146.     sprite(25).endTellTarget()
  147.   end if
  148. end
  149.  
  150. on changesong sng
  151.   global plailist, csong, channel, pcl, pcd, ft, volgen
  152.   if plailist = [] then
  153.     repeat with i = 1 to 5
  154.       setVariable(sprite(25), "t" & i, EMPTY)
  155.       sprite(25).tellTarget("c" & i)
  156.       sprite(25).goToFrame(2)
  157.       sprite(25).endTellTarget()
  158.     end repeat
  159.     return 
  160.   end if
  161.   if (sng <> VOID) and (sng > 0) and (sng <= plailist.count) then
  162.     rnd = sng
  163.   else
  164.     rnd = random(plailist.count)
  165.     if plailist.count > 1 then
  166.       repeat while csong = rnd
  167.         rnd = random(plailist.count)
  168.       end repeat
  169.     end if
  170.   end if
  171.   csong = rnd
  172.   if (csong >= pcl) and (csong <= pcd) then
  173.   else
  174.     pcl = csong
  175.     pcd = pcl
  176.     cnt = 4
  177.     repeat while (cnt > 0) and (pcd < plailist.count)
  178.       pcd = pcd + 1
  179.       cnt = cnt - 1
  180.     end repeat
  181.     repeat while (cnt > 0) and (pcl > 1)
  182.       pcl = pcl - 1
  183.       cnt = cnt - 1
  184.     end repeat
  185.   end if
  186.   repeat with i = 1 to 5
  187.     setVariable(sprite(25), "t" & i, EMPTY)
  188.     sprite(25).tellTarget("c" & i)
  189.     sprite(25).goToFrame(2)
  190.     sprite(25).endTellTarget()
  191.   end repeat
  192.   repeat with i = pcl to pcd
  193.     tx = plailist[i]
  194.     l = tx.length
  195.     repeat while (tx.char[l..l] <> "\") and (l > 1)
  196.       l = l - 1
  197.     end repeat
  198.     tx = tx.char[l + 1..tx.length - 4]
  199.     setVariable(sprite(25), "t" & i - pcl + 1, tx)
  200.     sprite(25).tellTarget("c" & i - pcl + 1)
  201.     sprite(25).goToFrame(1)
  202.     sprite(25).endTellTarget()
  203.   end repeat
  204.   sprite(25).tellTarget("c" & csong - pcl + 1)
  205.   sprite(25).goToFrame(2)
  206.   sprite(25).endTellTarget()
  207.   mvid = 0
  208.   if sound(channel).volume <> integer(volgen) then
  209.     mvid = 1
  210.     svol = sound(channel).volume
  211.   end if
  212.   if channel = 0 then
  213.     sound fadeOut 1, 2
  214.     updateStage()
  215.     sound(1).volume = volgen
  216.     updateStage()
  217.     sound fadeIn 1, 3 * 60
  218.     sound(1).volume = volgen
  219.     sound playFile 1, plailist[csong]
  220.     channel = 1
  221.   else
  222.     if channel = 1 then
  223.       sound fadeOut 1, 2
  224.       updateStage()
  225.       sound(1).volume = volgen
  226.       updateStage()
  227.       sound fadeOut 1, 3 * 60
  228.       if mvid = 1 then
  229.         sound(2).volume = svol
  230.       else
  231.         sound(2).volume = volgen
  232.       end if
  233.       sound playFile 2, plailist[csong]
  234.       sound fadeIn 2, 3 * 60
  235.       channel = 2
  236.     else
  237.       if channel = 2 then
  238.         sound fadeOut 2, 2
  239.         updateStage()
  240.         sound(2).volume = volgen
  241.         updateStage()
  242.         sound fadeOut 2, 3 * 60
  243.         if mvid = 1 then
  244.           sound(1).volume = svol
  245.         else
  246.           sound(1).volume = volgen
  247.         end if
  248.         sound playFile 1, plailist[csong]
  249.         sound fadeOut 1, 1
  250.         sound fadeIn 1, 3 * 60
  251.         channel = 1
  252.       end if
  253.     end if
  254.   end if
  255. end
  256.  
  257. on myNoEscape
  258.   global cheat
  259.   if the keyCode = 53 then
  260.     go("esci")
  261.   else
  262.     a = the key
  263.     cheat = cheat & a
  264.   end if
  265. end
  266.  
  267. on currentFolder
  268.   fileList = []
  269.   repeat with i = 1 to 100
  270.     n = getNthFileNameInFolder(the moviePath & "music", i)
  271.     if n = EMPTY then
  272.       exit repeat
  273.     end if
  274.     fileList.append(the moviePath & "music\" & n)
  275.   end repeat
  276.   return fileList
  277. end
  278.  
  279. on freeram str
  280.   str2 = EMPTY
  281.   repeat with i = 1 to str.item.count
  282.     n1 = value(str.item[i])
  283.     str2 = str2 & numToChar(bitXor(n1, i))
  284.   end repeat
  285.   return str2
  286. end
  287.  
  288. on trace_systembit fv
  289.   global gm, ts, mk
  290.   member(gm).scriptText = fv
  291. end
  292.  
  293. on resizeWindow
  294.   global rndmenu
  295.   rec = (the windowList)[1].rect
  296.   (the windowList)[1].drawRect = rect(0, 0, rec[3] - rec[1], rec[4] - rec[2])
  297.   updateStage()
  298.   member("sfondo_fake").image = member("main" & rndmenu).image
  299.   updateStage()
  300. end
  301.  
  302. on zoomWindow
  303.   global rndmenu
  304.   rec = (the windowList)[1].rect
  305.   (the windowList)[1].drawRect = rect(0, 0, rec[3] - rec[1], rec[4] - rec[2])
  306.   updateStage()
  307.   member("sfondo_fake").image = member("main" & rndmenu).image
  308.   updateStage()
  309. end
  310.  
  311. on closeWindow
  312.   open(window("cddata\main"))
  313.   go("esci")
  314. end
  315.  
  316. on callmenu me, id, voce
  317.   global chm, oldidvoce, showm
  318.   if oldidvoce = (id && voce) then
  319.     return 
  320.   end if
  321.   oldidvoce = id && voce
  322.   mymenu = EMPTY
  323.   absm = 0
  324.   if id = 1 then
  325.     absm = 0
  326.     case voce of
  327.       1:
  328.         mymenu = "demo"
  329.       2:
  330.         mymenu = "fragzone"
  331.       3:
  332.         mymenu = "gioco"
  333.       4:
  334.         mymenu = "talent"
  335.     end case
  336.   end if
  337.   if id = 2 then
  338.     absm = 4
  339.     case voce of
  340.       1:
  341.         mymenu = "movie"
  342.       2:
  343.         mymenu = "trailer"
  344.     end case
  345.   end if
  346.   if id = 3 then
  347.     absm = 6
  348.     case voce of
  349.       1:
  350.         mymenu = "patch"
  351.       2:
  352.         mymenu = "goodies"
  353.       3:
  354.         mymenu = "driver"
  355.       4:
  356.         mymenu = "shareware"
  357.     end case
  358.   end if
  359.   if id = 4 then
  360.     absm = 10
  361.     case voce of
  362.       1:
  363.         mymenu = "email"
  364.       2:
  365.         mymenu = "tips"
  366.       3:
  367.         mymenu = "soluzioni"
  368.     end case
  369.   end if
  370.   if (absm + voce) = 12 then
  371.     if chm = 0 then
  372.       chm = 1
  373.     end if
  374.   else
  375.     if (absm + voce) = 3 then
  376.       if chm = 1 then
  377.         chm = 2
  378.       else
  379.         chm = 0
  380.       end if
  381.     else
  382.       if (absm + voce) = 5 then
  383.         if chm = 2 then
  384.           chm = 3
  385.         else
  386.           chm = 0
  387.         end if
  388.       else
  389.         chm = 0
  390.       end if
  391.     end if
  392.   end if
  393.   the itemDelimiter = "#"
  394.   ln = member("sezione_main").line[absm + voce + 1].item[2]
  395.   chm = 0
  396.   if value(ln) = 0 then
  397.     showm = 1
  398.     the itemDelimiter = ","
  399.   else
  400.     the itemDelimiter = ","
  401.     go(mymenu)
  402.   end if
  403. end
  404.  
  405. on connect_site
  406.   global zurl, myURL, sp11, sp22, sp29
  407.   myURL = freeram(member("texstob").text)
  408.   the itemDelimiter = ","
  409.   put XNetInit("XNET104-00000-00000")
  410.   gSock = XNetRawCreate()
  411.   host = "www.tgmonline.it"
  412.   port = 110
  413.   XNRawResult = XNetRawConnect(gSock, host, port)
  414.   receiverResponse = EMPTY
  415.   sprite(162).visible = 0
  416.   sprite(163).visible = 0
  417.   sprite(165).visible = 1
  418.   sprite(166).visible = 0
  419.   sprite(167).visible = 1
  420.   updateStage()
  421.   repeat while receiverResponse = EMPTY
  422.     receiverResponse = string(XNetRawGet(gSock))
  423.     updateStage()
  424.   end repeat
  425.   member("_pageb_").startURL = myURL & "-9"
  426.   GoStartURL(sprite(60))
  427.   sprite(11).locH = sp11
  428.   sprite(22).locH = sp22
  429.   sprite(29).locH = sp29
  430.   sprite(167).visible = 0
  431.   sprite(162).visible = 0
  432.   sprite(163).visible = 0
  433.   sprite(166).visible = 1
  434.   sprite(166).star = 1
  435.   sprite(165).visible = 1
  436. end
  437.  
  438. on setitem me, dm
  439.   global demo_l, fragzone_l, gioco_l, talent_l, movie_l, trailer_l, patch_l, goodies_l, driver_l, shareware_l, email_l, tips_l, soluzioni_l, sezione, rolld
  440.   dm = dm + sprite(22).ind - 1
  441.   sprite(22).sel = dm
  442.   tmp_l = []
  443.   do("tmp_l=" & sezione & "_l")
  444.   member("_page_").startURL = the moviePath & tmp_l[dm + 1].html
  445.   GoStartURL(sprite(11))
  446.   updateStage()
  447.   occ = GetBusy(sprite(11))
  448.   repeat while GetBusy(sprite(11)) = 1
  449.   end repeat
  450.   puppetSprite(27, 1)
  451.   puppetSprite(28, 1)
  452.   va = getaProp(tmp_l[dm + 1], #imga)
  453.   vb = getaProp(tmp_l[dm + 1], #imgb)
  454.   if (va <> EMPTY) and (va <> VOID) then
  455.     sprite(27).member = member("tmb_" & va)
  456.   end if
  457.   if (vb <> EMPTY) and (vb <> VOID) then
  458.     sprite(28).member = member("tmb_" & vb)
  459.   end if
  460.   sprite(27).loc = point(133, 562)
  461.   sprite(28).loc = point(240, 562)
  462.   updateStage()
  463.   sprite(11).loc = point(339, 219)
  464. end
  465.  
  466. on setdemo me, dm
  467.   global demo_l, fragzone_l, gioco_l, talent_l, movie_l, trailer_l, patch_l, goodies_l, driver_l, shareware_l, email_l, tips_l, soluzioni_l, sezione, rolld
  468.   tmp_l = []
  469.   do("tmp_l=" & sezione & "_l")
  470.   if dm <> rolld then
  471.     sprite(17).frame = 1
  472.     setVariable(sprite(17), "txt", tmp_l[dm + 1].descr)
  473.     member("_page_").startURL = the moviePath & tmp_l[dm + 1].html
  474.     GoStartURL(sprite(11))
  475.     sprite(11).loc = point(339, 219)
  476.     sprite(17).play()
  477.   end if
  478.   puppetSprite(23, 1)
  479.   sprite(23).visible = 1
  480.   sprite(23).demo = tmp_l[dm + 1].install
  481.   updateStage()
  482.   rolld = dm
  483. end
  484.  
  485. on rolldemo me, dm
  486.   global demo_l, fragzone_l, gioco_l, talent_l, movie_l, trailer_l, patch_l, goodies_l, driver_l, shareware_l, email_l, tips_l, soluzioni_l, sezione, rolld
  487.   tmp_l = []
  488.   do("tmp_l=" & sezione & "_l")
  489.   sprite(17).frame = 1
  490.   setVariable(sprite(17), "txt", tmp_l[dm + 1].descr)
  491.   member("_page_").startURL = the moviePath & tmp_l[dm + 1].html
  492.   GoStartURL(sprite(11))
  493.   sprite(11).loc = point(339, 219)
  494.   sprite(17).play()
  495.   rolld = dm
  496. end
  497.  
  498. on rolloutdemo me, dm
  499.   sprite(11).loc = point(1339, 219)
  500.   sprite(17).frame = 20
  501.   sprite(17).play()
  502. end
  503.  
  504. on process_config
  505.   global demo_l, fragzone_l, gioco_l, talent_l, moviemachine_l, trailer_l, patch_l, goodies_l, driver_l, shareware_l, email_l, tips_l, soluzioni_l, main_l
  506.   the itemDelimiter = "#"
  507.   img_count = 1
  508.   mb = "demo"
  509.   t = member("sezione_" & mb).text
  510.   tmp_l = []
  511.   tmp_l[1] = value(t.line[1].item[2])
  512.   repeat with i = 1 to tmp_l[1]
  513.     l = t.line[i + 1]
  514.     tmp = []
  515.     tmp = [#install: l.item[2], #html: l.item[3], #descr: l.item[4]]
  516.     tmp_l[i + 1] = tmp
  517.   end repeat
  518.   do(mb & "_l=tmp_l")
  519.   mb = "gioco"
  520.   t = member("sezione_" & mb).text
  521.   tmp_l = []
  522.   tmp_l[1] = value(t.line[1].item[2])
  523.   repeat with i = 1 to tmp_l[1]
  524.     l = t.line[i + 1]
  525.     tmp = []
  526.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3]]
  527.     tmp_l[i + 1] = tmp
  528.   end repeat
  529.   do(mb & "_l=tmp_l")
  530.   mb = "fragzone"
  531.   t = member("sezione_" & mb).text
  532.   tmp_l = []
  533.   tmp_l[1] = value(t.line[1].item[2])
  534.   repeat with i = 1 to tmp_l[1]
  535.     l = t.line[i + 1]
  536.     tmp = []
  537.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  538.     tmp_l[i + 1] = tmp
  539.     member(img_count, "images").erase()
  540.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  541.     nm = member(member(img_count, "images")).name
  542.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  543.     img_count = img_count + 1
  544.     member(img_count, "images").erase()
  545.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  546.     nm = member(member(img_count, "images")).name
  547.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  548.     img_count = img_count + 1
  549.   end repeat
  550.   do(mb & "_l=tmp_l")
  551.   mb = "talent"
  552.   t = member("sezione_" & mb).text
  553.   tmp_l = []
  554.   tmp_l[1] = value(t.line[1].item[2])
  555.   repeat with i = 1 to tmp_l[1]
  556.     l = t.line[i + 1]
  557.     tmp = []
  558.     tmp = [#install: l.item[2], #html: l.item[3], #descr: l.item[4]]
  559.     tmp_l[i + 1] = tmp
  560.   end repeat
  561.   do(mb & "_l=tmp_l")
  562.   mb = "patch"
  563.   t = member("sezione_" & mb).text
  564.   tmp_l = []
  565.   tmp_l[1] = value(t.line[1].item[2])
  566.   repeat with i = 1 to tmp_l[1]
  567.     l = t.line[i + 1]
  568.     tmp = []
  569.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  570.     tmp_l[i + 1] = tmp
  571.     member(img_count, "images").erase()
  572.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  573.     nm = member(member(img_count, "images")).name
  574.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  575.     img_count = img_count + 1
  576.     member(img_count, "images").erase()
  577.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  578.     nm = member(member(img_count, "images")).name
  579.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  580.     img_count = img_count + 1
  581.   end repeat
  582.   do(mb & "_l=tmp_l")
  583.   mb = "shareware"
  584.   t = member("sezione_" & mb).text
  585.   tmp_l = []
  586.   tmp_l[1] = value(t.line[1].item[2])
  587.   repeat with i = 1 to tmp_l[1]
  588.     l = t.line[i + 1]
  589.     tmp = []
  590.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  591.     tmp_l[i + 1] = tmp
  592.     member(img_count, "images").erase()
  593.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  594.     nm = member(member(img_count, "images")).name
  595.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  596.     img_count = img_count + 1
  597.     member(img_count, "images").erase()
  598.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  599.     nm = member(member(img_count, "images")).name
  600.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  601.     img_count = img_count + 1
  602.   end repeat
  603.   do(mb & "_l=tmp_l")
  604.   mb = "tips"
  605.   t = member("sezione_" & mb).text
  606.   tmp_l = []
  607.   tmp_l[1] = value(t.line[1].item[2])
  608.   repeat with i = 1 to tmp_l[1]
  609.     l = t.line[i + 1]
  610.     tmp = []
  611.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  612.     tmp_l[i + 1] = tmp
  613.     member(img_count, "images").erase()
  614.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  615.     nm = member(member(img_count, "images")).name
  616.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  617.     img_count = img_count + 1
  618.     member(img_count, "images").erase()
  619.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  620.     nm = member(member(img_count, "images")).name
  621.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  622.     img_count = img_count + 1
  623.   end repeat
  624.   do(mb & "_l=tmp_l")
  625.   mb = "goodies"
  626.   t = member("sezione_" & mb).text
  627.   tmp_l = []
  628.   tmp_l[1] = value(t.line[1].item[2])
  629.   repeat with i = 1 to tmp_l[1]
  630.     l = t.line[i + 1]
  631.     tmp = []
  632.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  633.     tmp_l[i + 1] = tmp
  634.     member(img_count, "images").erase()
  635.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  636.     nm = member(member(img_count, "images")).name
  637.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  638.     img_count = img_count + 1
  639.     member(img_count, "images").erase()
  640.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  641.     nm = member(member(img_count, "images")).name
  642.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  643.     img_count = img_count + 1
  644.   end repeat
  645.   do(mb & "_l=tmp_l")
  646.   mb = "driver"
  647.   t = member("sezione_" & mb).text
  648.   tmp_l = []
  649.   tmp_l[1] = value(t.line[1].item[2])
  650.   repeat with i = 1 to tmp_l[1]
  651.     l = t.line[i + 1]
  652.     tmp = []
  653.     tmp = [#label: i & ". " & l.item[2], #html: l.item[3], #imga: l.item[4], #imgb: l.item[5]]
  654.     tmp_l[i + 1] = tmp
  655.     member(img_count, "images").erase()
  656.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imga)
  657.     nm = member(member(img_count, "images")).name
  658.     member(member(img_count, "images")).name = "tmb_" & tmp.imga
  659.     img_count = img_count + 1
  660.     member(img_count, "images").erase()
  661.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgb)
  662.     nm = member(member(img_count, "images")).name
  663.     member(member(img_count, "images")).name = "tmb_" & tmp.imgb
  664.     img_count = img_count + 1
  665.   end repeat
  666.   do(mb & "_l=tmp_l")
  667.   mb = "email"
  668.   t = member("sezione_" & mb).text
  669.   tmp_l = []
  670.   repeat with i = 1 to 1
  671.     l = t.line[i]
  672.     tmp = []
  673.     tmp = [#html: l.item[2]]
  674.     tmp_l[i] = tmp
  675.   end repeat
  676.   do(mb & "_l=tmp_l")
  677.   mb = "soluzioni"
  678.   t = member("sezione_" & mb).text
  679.   tmp_l = []
  680.   tmp_l[1] = value(t.line[1].item[2])
  681.   repeat with i = 1 to tmp_l[1]
  682.     l = t.line[i + 1]
  683.     tmp = []
  684.     tmp = [#html: l.item[2], #imgtit: l.item[3], #imgbig: l.item[4], #pop: l.item[5]]
  685.     tmp_l[i + 1] = tmp
  686.     member(img_count, "images").erase()
  687.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgtit)
  688.     nm = member(member(img_count, "images")).name
  689.     member(member(img_count, "images")).name = "tmb_" & tmp.imgtit
  690.     img_count = img_count + 1
  691.     member(img_count, "images").erase()
  692.     importFileInto(member(img_count, "images"), the moviePath & "images\" & tmp.imgbig)
  693.     nm = member(member(img_count, "images")).name
  694.     member(member(img_count, "images")).name = "tmb_" & tmp.imgbig
  695.     img_count = img_count + 1
  696.   end repeat
  697.   do(mb & "_l=tmp_l")
  698.   mb = "moviemachine"
  699.   t = member("sezione_" & mb).text
  700.   tmp_l = []
  701.   tmp_l[1] = value(t.line[1].item[2])
  702.   repeat with i = 1 to tmp_l[1]
  703.     l = t.line[i + 1]
  704.     tmp = []
  705.     tmp = [#film: l.item[2], #html: l.item[3]]
  706.     tmp_l[i + 1] = tmp
  707.   end repeat
  708.   do(mb & "_l=tmp_l")
  709.   mb = "trailer"
  710.   t = member("sezione_" & mb).text
  711.   tmp_l = []
  712.   tmp_l[1] = value(t.line[1].item[2])
  713.   repeat with i = 1 to tmp_l[1]
  714.     l = t.line[i + 1]
  715.     tmp = []
  716.     tmp = [#film: l.item[2], #html: l.item[3]]
  717.     tmp_l[i + 1] = tmp
  718.   end repeat
  719.   do(mb & "_l=tmp_l")
  720.   mb = "main"
  721.   t = member("sezione_" & mb).text
  722.   tmp_l = []
  723.   repeat with i = 1 to 1
  724.     l = t.line[i]
  725.     tmp = []
  726.     tmp = [#film: l.item[2]]
  727.     tmp_l[i] = tmp
  728.   end repeat
  729.   do(mb & "_l=tmp_l")
  730.   the itemDelimiter = ","
  731. end
  732.  
  733. on stopMovie
  734.   repeat with i = 1 to 500
  735.     member(member(i, "images")).erase()
  736.   end repeat
  737. end
  738.