My wife spotted a major problem with the version of the stack I released.
A new version and an explanation of what was wrong and how I corrected it
is here:
http://forums.livecode.com/viewtopic.php?f=7&t=27837&p=145861#p145861
Richmond.
___
use-liveco
Super: I'll crack it open and have a look.
Richmond.
On 28.08.2016 00:00, Mike Bonner wrote:
Made some changes to your stack, link here.
https://www.dropbox.com/s/tdz7287r3w75vfw/CRAZY%20LETTERS.livecode?dl=0
Minor changes in the initial tile script, and more in the script of the
field fscrip
Made some changes to your stack, link here.
https://www.dropbox.com/s/tdz7287r3w75vfw/CRAZY%20LETTERS.livecode?dl=0
Minor changes in the initial tile script, and more in the script of the
field fscrip
On Sat, Aug 27, 2016 at 2:04 PM, Tore Nilsen wrote:
> Have you tried to set the behavior of th
Have you tried to set the behavior of these tiles to the script of an invisible
button, where you reference the object itself with me?
Tore
> 27. aug. 2016 kl. 21.52 skrev Richmond :
>
> Thanks to everybody for all sorts of suggestions: I tried all of them, but
> was unable to get
> any of t
Thanks to everybody for all sorts of suggestions: I tried all of them,
but was unable to get
any of them to work.
Here is the finished job:
http://forums.livecode.com/viewtopic.php?f=7&t=27837&p=145851#p145851
Richmond.
___
use-livecode mailing lis
The problem, and it is a problem, is that I have a set of alphabet tiles
called names such as
"A.png", "B.png" and "C.png" [trying to be original here]
and they all contain this script:
on mouseDown
put the short name of me into IMENA
delete the last char of IMENA
delete the last char
Well, assuming you are following the same sort of naming procedure for all
tiles and grid names… then what about
on mouseDown
grab me
end mouseDown
local tShortNameOfTarget
on mouseUp
put the short name of target into tShortNameOfTarget
repeat with x = 1 to the number of controls
Well, let's contextualise that:
It works in my example stack #3:
http://forums.livecode.com/viewtopic.php?f=7&t=27837&p=145849#p145849
but NOT in my stack with multiple targets.
Richmond.
On 27.08.2016 17:29, Richmond wrote:
That works!
Thank you.
R.
On 27.08.2016 16:24, Randy Hengst wro
That works!
Thank you.
R.
On 27.08.2016 16:24, Randy Hengst wrote:
Try this in the image “P” script
on mouseUp
repeat with x = 1 to the number of controls
if the loc of target is within the rect of control x then
if ("P" is in the short name of control x) AND (the ID of t
Try this in the image “P” script
on mouseUp
repeat with x = 1 to the number of controls
if the loc of target is within the rect of control x then
if ("P" is in the short name of control x) AND (the ID of the target
is not the ID of control x) then
set the loc of tar
I'm obviously getting something rather wrong, so I have uploaded
something here as explaining things without a sample stack and a pretty
picture is well-nigh impossible:
http://forums.livecode.com/viewtopic.php?f=7&t=27837
Richmond.
On 27.08.2016 00:59, Jeanne A. E. DeVoto wrote:
At 12:27 AM
Thank you very much.
Richmond.
On 27.08.2016 00:59, Jeanne A. E. DeVoto wrote:
At 12:27 AM +0300 8/27/2016, Richmond wrote:
This doesn't seem to work because this cycles through ALL the
controls, and, of course,
the object being dragged is also a control.
Ah. Forgot about that. You'll need
At 12:27 AM +0300 8/27/2016, Richmond wrote:
This doesn't seem to work because this cycles through ALL the
controls, and, of course,
the object being dragged is also a control.
Ah. Forgot about that. You'll need to add a condition:
if within(control x, the mouseLoc) \
AND ("P" is
This doesn't seem to work because this cycles through ALL the controls,
and, of course,
the object being dragged is also a control.
Richmond.
On 26.08.2016 22:15, Jeanne A. E. DeVoto wrote:
if within(control x, the mouseLoc) AND ("P" is not in the short name
of control x) then
_
*--pseudocode*
if the name of the object *underneath* this image contains "P" then
do nothing
else
send image "P" somewhere else
end if
*--end pseudocode*
end mouseUp
and I'm looking for help.
I think you'll need to test whether the pointer is within
At 9:40 PM +0300 8/26/2016, Richmond wrote:
on mouseUp
*--pseudocode*
if the name of the object *underneath* this image contains "P" then
do nothing
else
send image "P" somewhere else
end if
*--end pseudocode*
end mouseUp
and I'm looking for help.
p
*--pseudocode*
if the name of the object *underneath* this image contains "P" then
do nothing
else
send image "P" somewhere else
end if
*--end pseudocode*
end mouseUp
and I'm looking for help.
Richmond.
__
17 matches
Mail list logo