RE: [Flashcoders] Detecting mouse events over non-white parts of amovieClip

2007-02-08 Thread Steven Sacks | BLITZ
class com.domain.RollWhileWithin extends MovieClip 
{
public var rolled:Boolean;

function RollWhileWithin () 
{
rolled = false;
}
public function doRollOver():Void 
{
if (!rolled) {
rolled = true;
gotoAndStop(over);
}
}
public function doRollOut():Void 
{
if (rolled) {
rolled = false;
gotoAndStop(up);
}
}
}




One level above it, you can manage as many clips as there are.

var checkMouseInterval:Number;
clearInterval(checkMouseInterval);
checkMouseInterval = setInterval(this, checkMouse, 100);
private function checkMouse():Void 
{
var i:Number = 5;
while (i--) {
var clip:MovieClip = this[MC_RollClip + i];
if (_xmouse  clip._x  _xmouse  clip._x + clip._width
 _ymouse  clip._y  _ymouse  clip._y + clip._height) {
clip.doRollOver();
} else {
clip.doRollOut();
}
}
}
___
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 mouse events over non-white parts of amovieClip

2007-02-07 Thread Keith Reinfeld

If you don't want the cursor to change just use 
 
yourMovieClip.useHandCursor = false; 
 
for each clip with button behaviors. 
 
HTH

-Keith 
http://keithreinfeld.home.comcast.net
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Boyd
Sent: Wednesday, February 07, 2007 10:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Detecting mouse events over non-white parts of
amovieClip


 My understanding is that it's the default behaviour of a clip with
 any mouse events handled at all, that the cursor changes when it
 enters the clip.


Oh right, sorry. So I wonder if it is possible to override this by
definining an onMouseOver and changing the cursor to the default one?
___
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 mouse events over non-white parts of amovieClip

2007-02-07 Thread Keith Reinfeld
 The code to
convert a bitmap into vectors would be the tricky part, but is technically
doable.

ModifyBitmapTrace Bitmap...


-Keith 
http://keithreinfeld.home.comcast.net
 


___
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 mouse events over non-white parts of amovieClip

2007-02-07 Thread Jason Boyd

Good point. Yeah I'm tired.

On 2/8/07, Keith Reinfeld [EMAIL PROTECTED] wrote:


 The code to
convert a bitmap into vectors would be the tricky part, but is
technically
doable.

ModifyBitmapTrace Bitmap...


-Keith
http://keithreinfeld.home.comcast.net



___
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 mouse events over non-white parts of amovieClip

2007-02-07 Thread Dave Wood

Thanks John, Bob, Jason and Keith for your thoughts and advice.

I think we'll be making vector graphics to match all the bitmaps .

For now, sleep beckons...

Cheers

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