Don't forget that you can get focus from Tab also, so just watching
for a click event may miss some instances of focusing.
On 2/27/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
> Thanks again,
>
> Just another thought.
>
> If you know that you have received focus when the mouse is pressed on the
>
I would look at onClick as the event handler if a mouse click is the entry
point. Both object and embed tags support it, but don't forget that the
code I showed only works in Mozilla if the embed tag is taken out of the
object tag. I'd have to work more with it to come up with anything more
speci
Thanks again,
Just another thought.
If you know that you have received focus when the mouse is pressed on the
stage (onMouseDown()), can't you use that to detect the focus and onblur to
detect the loss of focus? Or is there another reason for using your code to
detect when you receive the foc
No - just when you receive it. When you lose focus, onblur is called. The
event handler would look like
var obj00 = document.getElementById ("oid");
obj00.onblur = function() {
alert("Embed tag has lost focus");
}
On 2/27/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
>
> Thanks Mi
Thanks Mike,
I'm going to try this out as soon as possible. I had a quick look at it, for
which I have only one question. Would this handle both when you loose focus
and when you receive it?
_
Are you using the latest version of
IE and Mozilla handle this differently. I wasn't able to detect focus via
JavaScript unless I took the embed tag out of the object tag.
Ref:
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/object.asp
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/embed.asp
T
Ok, so I have a pretty simple question.
How can I know if the SWF has the focus within the Browser.
I need to do something like this:
if ( playerHasFocus == true )
{
myMC._visible = true;
}
else
{
myMC._visible = false;
}
Thanks,
Claudia
___
7 matches
Mail list logo