RE: [Flashcoders] Detecting Rollover w/o onRollOver

2007-02-07 Thread Kalani Bright
You could be right.  I'm not sure what the original post mean't I was
assuming that they were incorporating some sort of drop down menu not a
movieclip under movieclip type of situation. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Wednesday, February 07, 2007 1:23 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver

 > Another post which has the cancelRollover is the best one to use imho.

That works in one direction (rollOver on the lower button being lost when
rolling onto the upper one) but fails on the other (rollOver on the upper
button disabling rollOver on the lower one). You have to have some means of
passing the event through to the hidden button.

Danny

> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Danny 
> Kodicek
> Sent: Tuesday, February 06, 2007 5:54 AM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver
> 
>  
> > It seems like in many of the projects I'm doing I need to have 
> > simultaneous onRollOver events. For example, a small movie
> clip with
> > additional buttons needs to enlarge when the mouse is over
> it so the
> > user can clearly click the buttons.
> > However, when the user mouses over a button, flash no
> longer detects
> > that the mouse is still over the movieclip and thus executes the 
> > onRollOut event making the movieclip shrink and the user
> can't see the
> > buttons clearly anymore.
> > 
> > I've used some code which can tell if the mouse is over an
> object, and
> > attaching that to onMouseMove events can basically make two mouse 
> > overs.
> > While its not checking the mouse position every frame, its
> still not
> > as efficient as I'd like.
> > 
> > 
> > Does anyone have any thoughts on a more efficient way to detect two 
> > mouse over events at the same time?
> 
> Keep a list of all the instances you're testing, in z-order. 
> Use onRollOver to activate each one; then while it's active, send 
> messages to all the ones beneath it to check if they should be active 
> too.
> 
> Danny
> 
> ___
> 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
> 

___
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] Detecting Rollover w/o onRollOver

2007-02-07 Thread Danny Kodicek
 > Another post which has the cancelRollover is the best one to use imho.

That works in one direction (rollOver on the lower button being lost when
rolling onto the upper one) but fails on the other (rollOver on the upper
button disabling rollOver on the lower one). You have to have some means of
passing the event through to the hidden button.

Danny

> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Danny Kodicek
> Sent: Tuesday, February 06, 2007 5:54 AM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver
> 
>  
> > It seems like in many of the projects I'm doing I need to have 
> > simultaneous onRollOver events. For example, a small movie 
> clip with 
> > additional buttons needs to enlarge when the mouse is over 
> it so the 
> > user can clearly click the buttons.
> > However, when the user mouses over a button, flash no 
> longer detects 
> > that the mouse is still over the movieclip and thus executes the 
> > onRollOut event making the movieclip shrink and the user 
> can't see the 
> > buttons clearly anymore.
> > 
> > I've used some code which can tell if the mouse is over an 
> object, and 
> > attaching that to onMouseMove events can basically make two mouse 
> > overs.
> > While its not checking the mouse position every frame, its 
> still not 
> > as efficient as I'd like.
> > 
> > 
> > Does anyone have any thoughts on a more efficient way to detect two 
> > mouse over events at the same time?
> 
> Keep a list of all the instances you're testing, in z-order. 
> Use onRollOver to activate each one; then while it's active, 
> send messages to all the ones beneath it to check if they 
> should be active too.
> 
> Danny
> 
> ___
> 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
> 

___
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] Detecting Rollover w/o onRollOver

2007-02-07 Thread Kalani Bright
Another post which has the cancelRollover is the best one to use imho.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Tuesday, February 06, 2007 5:54 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Detecting Rollover w/o onRollOver

 
> It seems like in many of the projects I'm doing I need to have 
> simultaneous onRollOver events. For example, a small movie clip with 
> additional buttons needs to enlarge when the mouse is over it so the 
> user can clearly click the buttons.
> However, when the user mouses over a button, flash no longer detects 
> that the mouse is still over the movieclip and thus executes the 
> onRollOut event making the movieclip shrink and the user can't see the 
> buttons clearly anymore.
> 
> I've used some code which can tell if the mouse is over an object, and 
> attaching that to onMouseMove events can basically make two mouse 
> overs.
> While its not checking the mouse position every frame, its still not 
> as efficient as I'd like.
> 
> 
> Does anyone have any thoughts on a more efficient way to detect two 
> mouse over events at the same time?

Keep a list of all the instances you're testing, in z-order. Use onRollOver
to activate each one; then while it's active, send messages to all the ones
beneath it to check if they should be active too.

Danny

___
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] Detecting Rollover w/o onRollOver

2007-02-06 Thread Steven Sacks | BLITZ
You can use hitTest, you can use mouse position, or you can set an
interval to fire a function in 10 ms when you rollout that checks to see
if a flag is true that the other button will set true onRollOver.

function checkFlag() {
clearInterval(checkInterval);
delete checkInterval;
if (btn2Flag) {
btn2Flag = false;
btn1.gotoAndStop("out");
}
}
btn1.onRollOut = function() {
checkInterval = setInterval(checkFlag, 10);
};
btn2.onRollOver = function() {
btn2Flag = true;
};
___
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] Detecting Rollover w/o onRollOver

2007-02-06 Thread Cay Garrido H.
I usually delete the rollOver handler while I'm over it, detecting the 
rollOut event through hitTest instead of onRollOut... its something like 
this:


myFunction
 clip.onRollOver
delete clip.onRollOver
clip.onMouseMove
 if(!clip.hitTest(_xmouse,_ymouse))
  delete clip.onMouseMove
  myFunction //redeclare onRollOver

Holth, Daniel C. escribió:

It seems like in many of the projects I'm doing I need to have
simultaneous onRollOver events. For example, a small movie clip with
additional buttons needs to enlarge when the mouse is over it so the
user can clearly click the buttons.  However, when the user mouses over
a button, flash no longer detects that the mouse is still over the
movieclip and thus executes the onRollOut event making the movieclip
shrink and the user can't see the buttons clearly anymore.

I've used some code which can tell if the mouse is over an object, and
attaching that to onMouseMove events can basically make two mouse overs.
While its not checking the mouse position every frame, its still not as
efficient as I'd like.


Does anyone have any thoughts on a more efficient way to detect two
mouse over events at the same time?

Thanks!

Daniel Holth




This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
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] Detecting Rollover w/o onRollOver

2007-02-06 Thread JOR
One solution I've used in the past was to use collapse() and 
cancelCollapse() methods.  The parent rollover would use setInterval() 
to call collapse() on a delay of a few milliseconds giving the child 
onRollOver events the ability to be handled first.  The child buttons 
would call cancelCollapse() on roll over which was basically a 
clearInterval() call.  If cancelCollapse() wasn't called by a button 
then collapse() would eventually be called by setInterval().



James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Holth, Daniel C. wrote:

It seems like in many of the projects I'm doing I need to have
simultaneous onRollOver events. For example, a small movie clip with
additional buttons needs to enlarge when the mouse is over it so the
user can clearly click the buttons.  However, when the user mouses over
a button, flash no longer detects that the mouse is still over the
movieclip and thus executes the onRollOut event making the movieclip
shrink and the user can't see the buttons clearly anymore.

I've used some code which can tell if the mouse is over an object, and
attaching that to onMouseMove events can basically make two mouse overs.
While its not checking the mouse position every frame, its still not as
efficient as I'd like.


Does anyone have any thoughts on a more efficient way to detect two
mouse over events at the same time?

Thanks!

Daniel Holth




This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
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] Detecting Rollover w/o onRollOver

2007-02-06 Thread Danny Kodicek
 
> It seems like in many of the projects I'm doing I need to 
> have simultaneous onRollOver events. For example, a small 
> movie clip with additional buttons needs to enlarge when the 
> mouse is over it so the user can clearly click the buttons.  
> However, when the user mouses over a button, flash no longer 
> detects that the mouse is still over the movieclip and thus 
> executes the onRollOut event making the movieclip shrink and 
> the user can't see the buttons clearly anymore.
> 
> I've used some code which can tell if the mouse is over an 
> object, and attaching that to onMouseMove events can 
> basically make two mouse overs.
> While its not checking the mouse position every frame, its 
> still not as efficient as I'd like.
> 
> 
> Does anyone have any thoughts on a more efficient way to 
> detect two mouse over events at the same time?

Keep a list of all the instances you're testing, in z-order. Use onRollOver
to activate each one; then while it's active, send messages to all the ones
beneath it to check if they should be active too.

Danny

___
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] Detecting Rollover w/o onRollOver

2007-02-06 Thread Holth, Daniel C.

It seems like in many of the projects I'm doing I need to have
simultaneous onRollOver events. For example, a small movie clip with
additional buttons needs to enlarge when the mouse is over it so the
user can clearly click the buttons.  However, when the user mouses over
a button, flash no longer detects that the mouse is still over the
movieclip and thus executes the onRollOut event making the movieclip
shrink and the user can't see the buttons clearly anymore.

I've used some code which can tell if the mouse is over an object, and
attaching that to onMouseMove events can basically make two mouse overs.
While its not checking the mouse position every frame, its still not as
efficient as I'd like.

Does anyone have any thoughts on a more efficient way to detect two
mouse over events at the same time?

Thanks!

Daniel Holth




This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
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