PDA

View Full Version : Get rid of bounding boxes from swf files on web pages



Bossos
July 15th, 2008, 04:48 PM
Anyone know how to get rid of the bounding boxes that appear when you click inside a swf movie area ? Example below. Any help would be much appreciated.

http://www.sportandlivevision.com/public/images/bounding.gif

sw0bes
July 15th, 2008, 05:04 PM
Anyone know how to get rid of the bounding boxes that appear when you click inside a swf movie area ? Example below. Any help would be much appreciated.

http://www.sportandlivevision.com/public/images/bounding.gif
There are ways to get around it - swfobject works great for one. The reason you have to click to active certain elements on a page can be found here:

http://blog.seattlepi.nwsource.com/microsoft/archives/120899.asp

Here's a link to swfobject:

http://code.google.com/p/swfobject/

Happy reading =)

sekasi
July 15th, 2008, 05:19 PM
you can put onFocus="this.blur()" on the object as well..

Bossos
July 15th, 2008, 07:19 PM
I'm already using swfobject, but can't see where to turn off bounding borders in the swf generator or in the documentation.

Also tried:


<div id="slvMenu" onfocus="this.blur()">

which is the html reference of the swf object, but no luck either.

I see there is a javascript approach also, so I guess I'll try that next.

Bossos
July 15th, 2008, 07:28 PM
Great, managed to fix it.

Its apparently an issue in Firefox 3 which I just downloaded a few days ago :D

If you put the following code in the header of the html document or in your CSS file, it goes away:


<style type="text/css" media="screen">
object { outline:none; }
</style>

Thanks for the help.