Re: [Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-10 Thread Gregory N
Don't know if it's applicable in your case of expandable banner, but you can
consider:
1) creating special mouse detector SWF in AS3
2)  using it with your AS2 project via LocalConnection

This can be a way to handle users'  MOUSE_LEAVE event if they have Flash
Player 9+


colin moock wrote:

 looks like you're using ActionScript 2.0, but just for the record, in
 ActionScript 3.0 you can use the Event.MOUSE_LEAVE event to detect when
 the mouse leaves Flash Player's display area.

 colin



-- 
-- 
Best regards,
GregoryN

http://GOusable.com
Flash components development.
Usability services.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-09 Thread [EMAIL PROTECTED]
looks like you're using ActionScript 2.0, but just for the record, in 
ActionScript 3.0 you can use the Event.MOUSE_LEAVE event to detect when 
the mouse leaves Flash Player's display area.


colin

Hans Wichman wrote:

Hi,

that is only detectable when the mouse is down (try tracing xmouse and
ymouse while mouse is down, versus when its not).
Another thing you can do is look at how long the mouse hasnt moved.

greetz
JC

On Feb 8, 2008 1:40 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:


hi guys

just a quickie

i've got an expandable flash banner that has a transparent movie clip
(called roll_mc) over the top of it to detect whether to expand or
not but because i can't seem to get an accurate false from my hittest
if the mouse goes out of the banner, i was wondering if there was a
way to detect if the mouse was in the movie at all

here is what i have

function gotoExpand():Void {
   trace (x mouse is +_root._xmouse);
   trace (y mouse is +_root._ymouse);
   if (roll_mc.hitTest(_root._xmouse, _root._ymouse) 
_root._xmouse345  _root._ymouse345) nextFrame();
}

the movie is 350x350 but if you move the mouse out of the movie
pretty quickly, it registers that the mouse is still within the movie

example traces:
//mouse is moved fairly slowly
x mouse is 349
y mouse is 208
x mouse is 349
y mouse is 208
x mouse is 185
y mouse is 349
x mouse is 348
y mouse is 95
//mouse moved fairly quickly
x mouse is 336
y mouse is 225

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


Re: [Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-09 Thread Allandt Bik-Elliott (Receptacle)

thanks for the advice guys

i've found out that tangozebra actually have a leave event and  
override mine so it's okay but it's been a good excercise


btw colin - just got the book - nice work - gonna get all oop and ting


On 9 Feb 2008, at 15:45, [EMAIL PROTECTED] wrote:

looks like you're using ActionScript 2.0, but just for the record,  
in ActionScript 3.0 you can use the Event.MOUSE_LEAVE event to  
detect when the mouse leaves Flash Player's display area.


colin

Hans Wichman wrote:

Hi,
that is only detectable when the mouse is down (try tracing xmouse  
and

ymouse while mouse is down, versus when its not).
Another thing you can do is look at how long the mouse hasnt moved.
greetz
JC
On Feb 8, 2008 1:40 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

hi guys

just a quickie

i've got an expandable flash banner that has a transparent movie  
clip

(called roll_mc) over the top of it to detect whether to expand or
not but because i can't seem to get an accurate false from my  
hittest

if the mouse goes out of the banner, i was wondering if there was a
way to detect if the mouse was in the movie at all

here is what i have

function gotoExpand():Void {
   trace (x mouse is +_root._xmouse);
   trace (y mouse is +_root._ymouse);
   if (roll_mc.hitTest(_root._xmouse, _root._ymouse) 
_root._xmouse345  _root._ymouse345) nextFrame();
}

the movie is 350x350 but if you move the mouse out of the movie
pretty quickly, it registers that the mouse is still within the  
movie


example traces:
//mouse is moved fairly slowly
x mouse is 349
y mouse is 208
x mouse is 349
y mouse is 208
x mouse is 185
y mouse is 349
x mouse is 348
y mouse is 95
//mouse moved fairly quickly
x mouse is 336
y mouse is 225

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


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


[Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-08 Thread Allandt Bik-Elliott (Receptacle)

hi guys

just a quickie

i've got an expandable flash banner that has a transparent movie clip  
(called roll_mc) over the top of it to detect whether to expand or  
not but because i can't seem to get an accurate false from my hittest  
if the mouse goes out of the banner, i was wondering if there was a  
way to detect if the mouse was in the movie at all


here is what i have

function gotoExpand():Void {
trace (x mouse is +_root._xmouse);
trace (y mouse is +_root._ymouse);
	if (roll_mc.hitTest(_root._xmouse, _root._ymouse)   
_root._xmouse345  _root._ymouse345) nextFrame();

}

the movie is 350x350 but if you move the mouse out of the movie  
pretty quickly, it registers that the mouse is still within the movie


example traces:
//mouse is moved fairly slowly
x mouse is 349
y mouse is 208
x mouse is 349
y mouse is 208
x mouse is 185
y mouse is 349
x mouse is 348
y mouse is 95
//mouse moved fairly quickly
x mouse is 336
y mouse is 225

anyone have any ideas?

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


Re: [Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-08 Thread Hans Wichman
Hi,

that is only detectable when the mouse is down (try tracing xmouse and
ymouse while mouse is down, versus when its not).
Another thing you can do is look at how long the mouse hasnt moved.

greetz
JC

On Feb 8, 2008 1:40 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 hi guys

 just a quickie

 i've got an expandable flash banner that has a transparent movie clip
 (called roll_mc) over the top of it to detect whether to expand or
 not but because i can't seem to get an accurate false from my hittest
 if the mouse goes out of the banner, i was wondering if there was a
 way to detect if the mouse was in the movie at all

 here is what i have

 function gotoExpand():Void {
trace (x mouse is +_root._xmouse);
trace (y mouse is +_root._ymouse);
if (roll_mc.hitTest(_root._xmouse, _root._ymouse) 
 _root._xmouse345  _root._ymouse345) nextFrame();
 }

 the movie is 350x350 but if you move the mouse out of the movie
 pretty quickly, it registers that the mouse is still within the movie

 example traces:
 //mouse is moved fairly slowly
 x mouse is 349
 y mouse is 208
 x mouse is 349
 y mouse is 208
 x mouse is 185
 y mouse is 349
 x mouse is 348
 y mouse is 95
 //mouse moved fairly quickly
 x mouse is 336
 y mouse is 225

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