disable command

Nicolas Cueto nicolas_cueto at yahoo.com
Fri Nov 18 10:07:35 EST 2005


An hour or two of debugging but...

My card has 16 images, each with
a mouseUp script. I only want one
script to run at a time. So, within
the mouseUp script of each image
I added calls to lock/unlock handlers
contained in the card script, i.e.,

==== START OF SCRIPT
-- image's script
on mouseUp
  lockMaze
  -- do some other stuff
  unlockMaze
end mouseUp

-- card's script
on lockMaze
  repeat with i = 1 to 16
    disable image i
   end repeat
end lockMaze

-- also in card's script
on unlockMaze
   repeat with i = 1 to 16
     enable image i
   end repeat
end unlockMaze
===== END OF SCRIPT

However, even though I thought
this'd disable all the images, they
remain clickable.

My guess? Because I'm disabling
all 16 images, which includes the image
that should be running, this is somehow
interfering.

If so, what's a way of preventing the
mouseUp scripts of the other images
from being activated?

Thanks.

--
Nicolas Cueto
can still click on the other images'
During testing,
I was surprised to discover that,
after clicking on one image, I could
still click on other images. So, I
added a Showing on a card are 16 images,
each with a mouseUp script. And
even though
prevent more than one image's mouseUp
handler while another's is still running,
the image that is running while another's
is already
prevent the other images from
running when one has been clicked,
IWhen
one image has been clicked and its
mouseUp handler is in process, to
prevent other
----- Original Message ----- 
From: "Malte Brill" <revolution at derbrill.de>
To: <use-revolution at lists.runrev.com>
Sent: Tuesday, November 15, 2005 4:54 PM
Subject: Re: maze wall algorithm


> Hi Nicolas,
>
>  >If given a maze in the form of a
>  >grid such as this...
>
> Adding to Scotts suggestions I have a few questions.
>
> Will the maze be hard coded or does it change randomly?
> Do you want to move through the grid cell by cell (to the center of
> each cell) or do you want to be able to move to any possible loc in
the
> cell?
> Is the object that moves through the maze steered by the user (hero)
or
> by script (enemy)?
>
> All the best,
>
> Malte
>
> ---
> ArcadeEngine - prepare to WOW your audience within minutes
> http://www.runrev.com/section/revselect/arcadeengine
> http://www.derbrill.com/arcadeengine/forum
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list