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 Try this out: <html> <head> <title></title> <script language="JavaScript"> function announceFocus() { var obj00 = document.getElementById("oid"); obj00.onfocus = function() { alert("Object tag has focus"); } obj00.focus(); var obj01 = document.getElementById("oide"); obj01.onfocus = function() { alert("Embed tag has focus") ; } obj01.focus(); } </script> </head> <body> <OBJECT id="oid" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0 " WIDTH="550" HEIGHT="400" id="myMovieName"> <PARAM NAME=movie VALUE="test.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> </OBJECT> <EMBED id="oide" onfocus="alert('focus')" src="test.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="oide" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> <script language="JavaScript"> announceFocus(); </script> </body> </html> hth, Mike _______________________________________________ [email protected] 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

