Flipping thru cards, capturing the mouse position

Bernard Devlin bdrunrev at gmail.com
Tue Mar 31 03:47:48 EDT 2009


Hi Kay
I don't quite get your problem.  After all, if the user clicks on the
button, surely the mouse position is going to remain the same?  Or are
you expecting your user to be prompted on each 'flipped' card to click
elsewhere?
It all depends on what you mean by 'flipping'. In case you have missed
it, there has recently been a discussion on a 'page turning' effect
when navigating between cards.  I can't paste in a URL to the
discussion as the Nabble site is currently under 'scheduled
maintenance'.  However, the subject of the discussion was: "Animate
contents of a stack/card to turn like a page"

The flipping should be done by using 'visual effect' e.g. in your
button you would have

visual effect push left -- visual effect wipe left
go next card

Navigating between cards in this manner dates back to Hypercard. You
can try the various effects and see which is most suitable. However,
please bear in mind this bugreport:
http://quality.runrev.com/qacenter/show_bug.cgi?id=7358 .  Maybe they
will work for you, but for me navigation using visual effects is
broken in many ways.

As to capturing the coordinates of the mouse pointer, you need to use
the 'mouseLoc'.  You can find more information on that in the
Revolution Dictionary.

Hope that is of some help.

Bernard

On Tue, Mar 31, 2009 at 6:31 AM, klists <klists at sites.kerflooey.com> wrote:
>
> Hi:
>
> I'm a newbie who is stumped by this: I would like to click a button, which would start a process of flipping thru the cards of a stack, capturing the mouse position over each card as it runs. I would like to write the mouse position coordinates to each card, and to set the speed of the flipping before starting. I can get the mouse position ok, but am having trouble seeing how to build the flipping process "the Revolution Way". Any help on what concepts or functions would be useful is appreciated!
>
> Thanks,
>
> kay
> _______________________________________________
> 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