Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread hermit
 In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?

 They seem to be the same as MOUSE_OVER and MOUSE_OUT...

ROLL_OVER and ROLL_OUT = mouse button down

MOUSE_OVER and MOUSE_OUT = no mouse button down

HTH
Hermit



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread T. Michael Keesey
On 9/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
 
  They seem to be the same as MOUSE_OVER and MOUSE_OUT...

 ROLL_OVER and ROLL_OUT = mouse button down

Wouldn't that be DRAG_OVER and DRAG_OUT?

 MOUSE_OVER and MOUSE_OUT = no mouse button down

-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread R�kos Attila

Citation from the doc:

The purpose of the rollOut event is to simplify the coding of
rollover behaviors for display object containers with children. When
the mouse leaves the area of a display object or the area of any of
its children to go to an object that is not one of its children, the
display object dispatches the rollOut event. This is different
behavior than that of the mouseOut event, which is dispatched each
time the mouse leaves the area of any child object of the display
object container, even if the mouse remains over another child object
of the display object container.

 Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Patrick Matte|BLITZ [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
Date:Saturday, September 8, 2007, 2:55:22 AM
Subject: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?
--===--
In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?

They seem to be the same as MOUSE_OVER and MOUSE_OUT...

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread Paul Venton
From the docs:

The purpose of the rollOver event is to simplify the coding of rollout 
behaviors for display object containers with children. When the mouse leaves 
the area of a display object or the area of any of its children to go to an 
object that is not one of its children, the display object dispatches the 
rollOver event. This is different behavior than that of the mouseOver event, 
which is dispatched each time the mouse enters the area of any child object of 
the display object container, even if the mouse was already over another child 
object of the display object container.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey
Sent: 08 September 2007 19:22
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

On 9/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
 
  They seem to be the same as MOUSE_OVER and MOUSE_OUT...

 ROLL_OVER and ROLL_OUT = mouse button down

Wouldn't that be DRAG_OVER and DRAG_OUT?

 MOUSE_OVER and MOUSE_OUT = no mouse button down

-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread Rich Shupe

 In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
 
 They seem to be the same as MOUSE_OVER and MOUSE_OUT...
 
 ROLL_OVER and ROLL_OUT = mouse button down
 
 MOUSE_OVER and MOUSE_OUT = no mouse button down

I don't think this is true, but someone correct me if I'm wrong. I may not
understand. I can't tell if this means that no mouse down is fired with
MOUSE_OVER/_OUT or if a mouse down is fired automatically with
ROLL_OVER/_OUT, or something else.

What I guessed this means is that ROLL_OVER/_OUT occurs when the mouse is
down when the rollovers occur, and MOUSE_OVER/_OUT occurs when the mouse is
up when the rollovers occur.

In any case, I can't find an instance where mouse down has any impact.

The short story is, ROLL_OVER/_OUT was introduced to prevent out/over
sequences between touching/overlapping children of a display object
container. For example, if you created a menu by grouping three touching
buttons inside a display object container, and rolled into the first,
through the middle and out the last, you would get this with
ROLL_OVER/_OUT...

over
out

...but this with MOUSE_OVER/_OUT...

over
out
over
out
over
out

You can see this by setting up a file this way: button or clip 1, touching
button or clip 2, inside a parent clip in the main timeline, then make
another copy of the parent clip, instancing the first doc1 and the second
doc2, using this code:

doc1.addEventListener(MouseEvent.ROLL_OVER, report)
doc1.addEventListener(MouseEvent.ROLL_OUT, report)

doc2.addEventListener(MouseEvent.MOUSE_OVER, report)
doc2.addEventListener(MouseEvent.MOUSE_OUT, report)

function report(evt:MouseEvent):void {
trace(evt)
}

Rich

From the documentation:
The purpose of the rollOver event is to simplify the coding of rollout
behaviors for display object containers with children. When the mouse leaves
the area of a display object or the area of any of its children to go to an
object that is not one of its children, the display object dispatches the
rollOver event. This is different behavior than that of the mouseOver event,
which is dispatched each time the mouse enters the area of any child object
of the display object container, even if the mouse was already over another
child object of the display object container.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread John VanHorn
http://www.kirupa.com/forum/showthread.php?p=1948052#post1948052


On 9/7/07, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote:

 In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?

 They seem to be the same as MOUSE_OVER and MOUSE_OUT...

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
John Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-07 Thread Patrick Matte|BLITZ
In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?

They seem to be the same as MOUSE_OVER and MOUSE_OUT...

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com