hope get help in this code;
its for a calculator
when the user press "=" that containing this script the answer should apear
at first of all i make sprite(2) as the space which the process will apera
this is my code ; it dose not work !!
on mousedown
variable1=sprite(2).text
global s
s=variable1.word[2]
global plase
case (s) of
"+ ": plase=variable1.word[1]+variable1.word[4]
"*":multipl=variable1.word[1]*variable1.word[3]
otherwise:put "wrong process" after sprite(2).member
end case
end
on mouseup
case (s) of
"+":put plase after sprite(2).member
"*":put multipl after sprite(2).member
end case
end
let the process in sprite (2) be :
1*2=
[img]http://www.openiu.com/upload/071221/1372919869476c04581d7ed.GIF[/img]