Drag n Drop Objects in Flash vs. Rev

Roman Opendak ropendak at comcast.net
Thu Dec 4 03:50:05 EST 2003


what if instead of mouseup you use a loop in mousedown with the same ideas
applied. like,

on mousedown
    repeat while the mouse is down
    set the loc of me (the target) to the mouseloc
    end repeat
    drop
end mousedown

now that i think about it, its only twenty ticks or so. cause instead of
waiting for the messages to go through and waisting time on a function, you
avoid stepping into it.

i usually do it with icons and drag around a tooltip too

Rome


----- Original Message -----
From: "Sarah Reichelt" <sarahr at genesearch.com.au>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Wednesday, December 03, 2003 8:02 PM
Subject: Re: Drag n Drop Objects in Flash vs. Rev


> That is the advantage. It checks the new loc continuously so instead of
> dragging and then checking, this way checks as you go. Because
> mouseMove is generated all the time, not just when the mouse is down,
> you need the flag to tell it when to move and when not to.
>
> Cheers,
> Sarah
>
> On 4 Dec 2003, at 1:50 pm, Judy Perry wrote:
>
> > I just checked this link out.
> >
> >> From what I read, it's a much  more verbose solution and the only
> > advantage I see mentioned is that it prevents the user from dragging an
> > object out of bounds (whatever that means -- out of its intended
> > target?
> > Off the card?).
> >
> > Am I understanding it correctly?  Sorry to be so dense...
> >
> > Judy
> >
> > On Thu, 4 Dec 2003, Sarah wrote:
> >
> >> Check out:
> >> http://lists.runrev.com/pipermail/use-revolution/2002-March/
> >> 002702.html
> >>
> >> Cheers,
> >> Sarah
> >>
> >> On 4 Dec 2003, at 8:06 am, Judy Perry wrote:
> >>
> >>> Hi,
> >>>
> >>> Here's how I have done this; since other solutions have been
> >>> presented,
> >>> perhaps someone could advise me if I'm doing it the wrong way?
> >>>
> >>> on mouseStillDown
> >>>   set the loc of me to the mouseLoc
> >>> end mouseStillDown
> >>>
> >>> If I only want items deposited in a certain area, I do a loc
> >>> detection
> >>> on
> >>> a mouseUp handler.
> >>>
> >>> Is this a bad way of doing things?
> >>>
> >>> Thanks!
> >>>
> >>> Judy
> >>>
> >>> On Wed, 3 Dec 2003, Monte Goulding wrote:
> >>>
> >>>>
> >>>>> Can anyone point me in the right direction? Do Rev objects have
> >>>>> built
> >>>>> in drag and drop functionality, and if so, how is it accessed?
> >>>>
> >>>> If it's a simple drag then you might want to see the grab command.
> >>>> More
> >>>> complex drags can be done using mouse events (particularly
> >>>> mouseMove).
> >>>>
> >>>> Cheers
> >>>>
> >>>> Monte
> >>>>
> >>>> _______________________________________________
> >>>> use-revolution mailing list
> >>>> use-revolution at lists.runrev.com
> >>>> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>>>
> >>>
> >>> _______________________________________________
> >>> use-revolution mailing list
> >>> use-revolution at lists.runrev.com
> >>> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> >
> >
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list