home *** CD-ROM | disk | FTP | other *** search
- global answer, currentcard, oldcard, newcard, orig, stack1, stack2, stack3, stack4, stack5, stack6, stack7, stack8, stack9, stack10, stack11, stack12, stack13
-
- on mouseUp
- if currentcard > 0 then
- if sprite(currentcard).visible then
- puppetSound(3, "dropcard")
- GetTheSpace(the mouseH, the mouseV)
- updateTotal()
- sprite(currentcard).visible = 0
- currentcard = 0
- end if
- end if
- oldcard = 0
- end
-
- on exitFrame me
- go(the frame)
- end
-
- on TestIt row
- if row = 1 then
- append(stack1, sprite(currentcard).memberNum)
- sprite(10).memberNum = stack1[count(stack1)]
- else
- if row = 2 then
- append(stack2, sprite(currentcard).memberNum)
- sprite(11).memberNum = stack2[count(stack2)]
- else
- if row = 3 then
- append(stack3, sprite(currentcard).memberNum)
- sprite(12).memberNum = stack3[count(stack3)]
- else
- if row = 4 then
- append(stack4, sprite(currentcard).memberNum)
- sprite(13).memberNum = stack4[count(stack4)]
- else
- if row = 5 then
- append(stack5, sprite(currentcard).memberNum)
- sprite(14).memberNum = stack5[count(stack5)]
- else
- if row = 6 then
- append(stack6, sprite(currentcard).memberNum)
- sprite(15).memberNum = stack6[count(stack6)]
- else
- if row = 7 then
- append(stack7, sprite(currentcard).memberNum)
- sprite(16).memberNum = stack7[count(stack7)]
- else
- if row = 8 then
- append(stack8, sprite(currentcard).memberNum)
- sprite(17).memberNum = stack8[count(stack8)]
- else
- if row = 9 then
- append(stack9, sprite(currentcard).memberNum)
- sprite(18).memberNum = stack9[count(stack9)]
- else
- if row = 10 then
- append(stack10, sprite(currentcard).memberNum)
- sprite(19).memberNum = stack10[count(stack10)]
- else
- if row = 11 then
- append(stack11, sprite(currentcard).memberNum)
- sprite(20).memberNum = stack11[count(stack11)]
- else
- if row = 12 then
- append(stack12, sprite(currentcard).memberNum)
- sprite(21).memberNum = stack12[count(stack12)]
- else
- if row = 13 then
- append(stack13, sprite(currentcard).memberNum)
- sprite(22).memberNum = stack13[count(stack13)]
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on GetTheSpace mx, my
- if (my > 24) and (my < 100) then
- if (mx > 100) and (mx < 160) then
- TestIt(1)
- else
- if (mx > 167) and (mx < 221) then
- TestIt(2)
- else
- if (mx > 231) and (mx < 285) then
- TestIt(3)
- else
- if (mx > 294) and (mx < 348) then
- TestIt(4)
- else
- if (mx > 359) and (mx < 413) then
- TestIt(5)
- else
- if (mx > 423) and (mx < 477) then
- TestIt(6)
- else
- TestIt(orig)
- end if
- end if
- end if
- end if
- end if
- end if
- else
- if (my > 180) and (my < 256) then
- if (mx > 71) and (mx < 125) then
- TestIt(7)
- else
- if (mx > 135) and (mx < 189) then
- TestIt(8)
- else
- if (mx > 199) and (mx < 253) then
- TestIt(9)
- else
- if (mx > 263) and (mx < 317) then
- TestIt(10)
- else
- if (mx > 327) and (mx < 381) then
- TestIt(11)
- else
- if (mx > 391) and (mx < 445) then
- TestIt(12)
- else
- if (mx > 455) and (mx < 509) then
- TestIt(13)
- else
- TestIt(orig)
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- else
- TestIt(orig)
- end if
- end if
- end
-