swfObject Reloaded


This plugin allows easy embedding of swf files and better media management for swf files, allowing swf files to have a height, width, and their own minimum flash version.  This plugin adds a swfobject shortcode that can be inserted via the “Add media” button while editing a post.  SWF files are now also automatically embedded on their respective attachment pages. The theme is released under GPL


media upload screen showing the new fields added by swfObject Reloaded for Width, Height and SWF Version

swfobjects settings added to the Settings->Media menu


Click here to download swfobject-reloaded.zip


The swfObject Reloaded free WordPress plugin is licensed under the GNU Public License v2.0 (GPL2). You are free to use and modify the plugin as you see fit.


  • 1.0 – Initial public release (2010-09-27)
  • 1.2 – Added support for the feed so that a sprintf’d string is used instead of a swfobject.


Coders love caffeine — and I’m no exception 😉

If you like my free plugins, feel free to donate. Doing so allows me to continue work on this and other great WordPress plugins, themes, etc.

27 thoughts on “swfObject Reloaded

  1. hi,

    does your flashembed works with mozilla, chrome and navigaotr besides ie aer installation on word press?

    becuase most of flash embed wont show flash movies on those browsers!!!

    thkx errol

  2. Hello, on my word press page, I wonder what code to use when i have a flash animation inside a post when a user does not have flash installed? or when they are using iphone, ipad, droid? to be re-directed to a non-flash page (.htm) to open in the same window?

    if there is such code, does it have to be inserted inside the page with the flash animation?

    will this plug in do the job for it?



    • The Alt-Content is defined in the swf-objects setting on the Settings->Media page.

      The setting can be any string, including an link (a tag) to go to another page.

      The alt-content is a global setting and does not need to be set for each flash animation.

      Hope that helps.

  3. Hi there. I’m still a bit of a noob when it comes to flash, but i managed to make a dorky little movie as a placeholder for a site i’m working on. the movie was built at 800×800 px, but when I insert it into my theme it comes out 300×300 no matter what settings I put in the plugin. I used firebug to try and isolate where this is coming from, and while I can see the code in firebug I can’t find it in my css or php for the life of me… The following is the code snippet that firebug identified, and when i use firebug to change the dimensions it works perfect, but i can’t find where to put the code to make the change permanent. Can you help? FYI I tried some other movies also (that I didn’t create) and they behave the same way. Thanks so much for your time.

    • Sabrina, on the media page there is an option titled: Scale Flash content (while preserving aspect ratio). Make sure it is unchecked, and make sure you are specifying a width and height on the media/options page or in the shortcode.

      Hope that helps.

      • facepalm Works perfectly. I had looked all over to see if there was a main settings page and had not found it, until now of course. Thank you for the super fast response! I will recommend this plugin to everyone I know!!

        • Glad you got it working. The setting is an attempt to keep the flash movie narrower than the post. 800×800 is a pretty wide flash movie, so you probably want to keep that in mind.

  4. Hi, I’m one of swfobjectreloaded fans. Glad to found this plugin because its so easy and simple and integrated with the media no need other menu. But I have problem with the fullscreen mode. I already follow your instruction on swfobject setting > additional params > I fill it with this allowFullScreen:”true”, menu:”false” but the settings seem not working. For your additional info I have test with embedding my swf file on html page with additional params and and its working. do you have any solution? can you help? Thanks so much for your time.

    CMIIW and sorry for my bad in english writing 😀

  5. I’m sorry but for the life of me, I can’t find this “media page” you spoke of “media page there is an option titled: Scale Flash content (while preserving aspect ratio)”. Can you tell me where in wordpress 3 this page can be found?

  6. Hi,

    I replaced this plugin to the other old one but still the swf object is not displayed in IE. It does on Firefox.

    In IE, it says: Sorry, either Adobe flash is not installed or you do not have it enabled.

    Please help.


  7. Hi Robert,

    This is a great plugin thanks,

    I have zero flash coding but I can follow simple instructions. I would like to be able to ad STOP START and PLAY buttons I have this code so far [swfobject]282[/swfobject] which works OK and I am experimenting with various sizes but have no idea on the buttons mentioned. If you could show the code I can paste it in.

    Regards Allan

    • The plugin can only embed the flash content. You will need the Flash IDE or Flex to actually author the Flash content.

      It is outside the scope of the plugin.

      In the Actionscript docs look at the stop(), play(), gotoAndStop(), gotoAndPlay() methods.

      Also look at adding a button to the stage an giving it an event-listener.

  8. Hi Robert

    Thanks I’ll look into what you suggest. I would like to know how to code but with so much else to have to do it get a low priority stamp. Till the next time when I need it 🙂

    Regards Allan

  9. Hi, Glade to find your plugin but…i cant make it working on custom boxe field. I have a second wysiwyg editor on post page when id like to use your plugin but it display only text on single page, not flash. Can you help e please? Thank you.

    • Whatever plugin or theme you are using to insert a custom-field onto a page needs to run the custom-field through the do_shortcode() function before inserting it onto the page.

      Hopefully the plugin or theme has defined a filter that runs that you can attach a function to perform and return the do_shortcode() function. If not, I would suggest asking for the ability to use shortcodes in your custom field, for your second wysiwyg.

      I assume this is your thread here: Not working on second wysiwyg editor. I added a similar response on that thread.

  10. I installed your plug-in within the Infinity theme and uploaded my .swf file. In this theme, the media is loaded into post as “projects” and then displayed on the front page. No matter what I do, I cannot get the size of the .swf to be bigger than the thumbnail size. I have specified the size in the shortcode, made sure the dimensions in the media library are correct, and changed the dimensions in the “Maximum Embed Size” and “Image Sizes->Medium Size”. The display window width increased when I unchecked “Scale Flash Content”, but the height did not, and the size of the .swf did not change.

    Any ideas? I’m a little frustrated with it.

    • I’d check the size in Firebug or some other inspector, and check the script to see what size it is giving for arguments to swfObject.

      I suspect it is as wide or tall as you expect it to be, but a css rule on embeds/objects has set a max-height or max-width, or the container is narrower or shorter than the swf.

      That is one of the reasons the option to scale down the swf is there, to make sure it fits in the post properly.

      If you have the same issue with a vanilla html embed/object tag, that is more than likely the issue.

    • In your theme files?

      You might want to look up the do_shortcode function.

      I recommend against putting it in your theme, especially if you decide to switch themes, use a theme switcher, or use something like wp-touch. Your flash content wont show where you have not placed to code to show it.

Leave a Reply

Your email address will not be published. Required fields are marked *