Is there a possibility to avoid this ugly frame in IE when you mouse over a flash file?
And also to avoid the double click on links in this flash file?

Dani AI

Generated

The frame seen in Internet Explorer is the browser drawing a focus/activation outline around the plugin; the "double‑click" symptom is the related focus/activation behavior that shows up when a Flash movie is embedded in windowless modes (wmode=opaque or transparent) or when the control is not dynamically activated. As noted, switching the embedding method can remove the activation step; pointed toward a JavaScript-based approach.

Preferred fix: use a dynamic JavaScript embedder (SWFObject or similar) so the OBJECT/EMBED is created after page load. This avoids IE's click‑to‑activate behavior while still allowing wmode when required. Example SWFObject usage:

<script type="text/javascript">
  var flashvars = {};
  var params = { wmode: "opaque", menu: "false", allowScriptAccess: "always" };
  var attrs  = { id: "mySwf", name: "mySwf", tabindex: "-1" };
  swfobject.embedSWF("myswf.swf", "flashDiv", "600", "400", "9.0.0", null, flashvars, params, attrs);
</script>

If JavaScript embedding is not possible, adding focus-suppressing attributes helps (IE-specific): tabindex="-1", onfocus="this.blur()", and hideFocus="true", plus style="outline:none". Example markup snippet:

<object ... tabindex="-1" onfocus="this.blur()" hideFocus="true" style="outline:none;">
  <!-- params / embed -->
</object>

Caveats: using wmode=transparent/opaque can hurt performance, disable full-screen mode, and change keyboard handling. If transparency is not required, wmode=window avoids the focus/activation problems altogether. For up-to-date embedding patterns and details, see the SWFObject documentation: SWFObject README.

Recommended Answers

All 2 Replies

Thanks, So it will work when using JAVASRCIPT
to embed the SWF file.

I will try this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.