Drag n Drop Objects in Flash vs. Rev

Sarah Reichelt sarahr at genesearch.com.au
Wed Dec 3 23:02:53 EST 2003


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
>
>
>



More information about the use-livecode mailing list