Hi to ALL
WHY
"on MuoviRacchetta
repeat forever
-- move btn "Start" to the loc of btn "Start" -- excluding this line nothing goes on
if within (fld "Campo", the mouseloc) then
set the loc of grc "Racchetta" to the mouseloc
else
exit repeat
end if
end repeat
end MuoviRacchetta"
There are only one field ( "Campo") and one graphic (Racchetta")
many thanks
mario
it is possible to experiment the little stack at
http://xoomer.alice.it/mbacches/why/why.html
--------------------
ANY answer is wellcome......... also stupid
WHY???????????????
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 13
- Joined: Mon Oct 26, 2009 7:30 pm
WHY???????????????
Last edited by mario baccheschi on Sun Jan 17, 2010 2:50 pm, edited 1 time in total.
Re: WHY???????????????
Hi Mario,
Maybe because when you launch your script "MuoviRacchetta", the mouseloc is not within the rect of fld "Campo".
So, you tell "MuoviRacchetta" and the script says "exit repeat"... !!!
try this
Hope this will help you,
Renaud
Maybe because when you launch your script "MuoviRacchetta", the mouseloc is not within the rect of fld "Campo".
So, you tell "MuoviRacchetta" and the script says "exit repeat"... !!!
try this
Code: Select all
on MuoviRacchetta
put "0" into count
repeat forever
if the mouseloc is not within the rect of fld "Campo" and count = "0" then next repeat
else
put "1" into count
repeat while the mouseloc is within the rect of fld "Campo"
set the loc of grc "Racchetta" to the mouseloc
end repeat
if count = "1" then
exit repeat
end if
end if
end repeat
end MuoviRacchetta
Renaud
Re: WHY???????????????
Buongiorno Mario,
per favore, use a less dramatic and pathetic title for you post the next time!
Mille grazie!
Best
Klaus
per favore, use a less dramatic and pathetic title for you post the next time!
Mille grazie!

Best
Klaus