home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- set cena to 17972
- set c_w1 to 255
- set c_w2 to 69
- set c_w3 to 213
- set c_w4 to 157
- set c_w5 to 224
- set c_w6 to 455
- set c_w7 to 105
- set the cursor of sprite 1 to [0]
- set the cursor of sprite 2 to [1]
- set the cursor of sprite 3 to [1]
- set the cursor of sprite 4 to [1]
- set the floatPrecision to 2
- set wyn to 0
- set kurs to value(field "dane")
- set wyn to cena * kurs
- if the hilite of member "w1" then
- set wyn to wyn + (kurs * c_w1)
- end if
- if the hilite of member "w2" then
- set wyn to wyn + (kurs * c_w2)
- end if
- if the hilite of member "w3" then
- set wyn to wyn + (kurs * c_w3)
- end if
- if the hilite of member "w4" then
- set wyn to wyn + (kurs * c_w4)
- end if
- if the hilite of member "w5" then
- set wyn to wyn + (kurs * c_w5)
- end if
- if the hilite of member "w6" then
- set wyn to wyn + (kurs * c_w6)
- end if
- if the hilite of member "w7" then
- set wyn to wyn + (kurs * c_w7)
- end if
- put wyn into field "wynik"
- end
-
- on exitFrame
- go(the frame)
- end
-