Thanks for the information. I think that may be part of my problem.  I
tried out the code on that site and Flash does not like the following
circle.contains(event.target)

If I take that out the code runs, but of course doesn't work.

Does anyone know where I can find a good example on how to do a drag and
drop in as3? I never had issues with this in 2.

Thanks!
Susan


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: Wednesday, September 24, 2008 3:25 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Problems creating a drag and drop

You might need to add the "releaseOutside" hack for AS3, since there
is no releaseOutside anymore:

http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182


On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am having problems with my event listener for my drag and drop.
> Sometimes it detects the mouse up event and sometimes it doesn't and
> won't let go of the object (stopDrag). Have any of you ever run into
> this? If so, is there a fix?
>
> Basically I have this coding...
>
> function stopDragging(event:MouseEvent):void {
>        trace("mouse up")
>            // There is more function code I just didn't want to paste
> it all in.
> }
>
> Triggered by:
>
> for (i= 0; i < aButtons.length; i++) {
>        aButtons[i].mouseChildren = false;
>        aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN,
> startDragging);
>        aButtons[i].addEventListener(MouseEvent.MOUSE_UP,
stopDragging);
>
> }
>
> Any ideas?
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to