SWFObject on Adobe Developer Center (Devnet)

Well, after a couple of months of waiting on Adobe Legal to decide that I couldn’t use ‘FlashObject’ any more, here’s the Devnet article on SWFObject.

If you are already familiar with the script, you probably won’t get anything new from the article, but if you are new to it, you should head over and give it a read. It’s basically the SWFObject page, only profesionally edited and tidied up.

Go have a look.

Also, in case you missed it, Adobe.com now uses a slighly customized version of SWFObject for their site wide Flash Player detection and embedding.

Also, notice the humping unicorns on my t-shirt I’m wearing in the photo I gave them ;)

18 thoughts on “SWFObject on Adobe Developer Center (Devnet)

  1. Thats really nice! I m not fully familiar with the script but now got to know the hidden aspects.Thanks a lot!

  2. hi
    the article is realy cool it realy helped me..

    Please help me …?

    How can I install flash player plugin (version 8 ) in browser without
    downloading setup or redirecting to macromedia site if flash plugin is not
    available in browser.

    what i mean is make the client stay in there page without going macromedia site for installing flash player, ofcorse i encorage the securiy warning box given by windows ( for IE ) for installing flash player.

  3. You are looking for Express Install, and you can only do that if the user has Flash Player 6.0.65 or higher already installed. If they don’t have Flash Player at all, you need to either invoke the browser’s plugin finder / ActiveX control installer, or send them to the Adobe website to install it.

  4. Thanks a lot for the article.Now i can use Flash Object which i was unable to do for a long time. Your article seemed to be very helpful.

  5. Geoff, is there a way to email you? :) I have a question related to this article @ DevCenter. Thanks in advance!

  6. Geoff,

    Hey, GREAT little script you’ve created here! I was just working in Dreamweaver 8.0.2 tonight, getting all of those “automatically update your code?” messages for my Flash embeds, when I came across your SWFobject function. Installed it and it works great…except for one thing: Whenever I display a FlashVars object in MS Internet Explorer 6, then refresh the page, my Flash content “disappears”.

    For an example of what I am talking about, you can visit: http://www.mapformation.com/portfolio/campus/onu3D.htm

    My code specific to the problem is:

    <script type=”text/javascript” src=”../../templates/scripts/swfobject.js”></script>
    <div id=”flashcontent”>3D Perspective Campus Map of Ohio Northern University, complete with magnification functionality using Zoomify technology.</div>
    <script type=”text/javascript”>
    var so = new SWFObject(“../../images/zoom/zoomifyViewer.swf”, “mymovie”, “700”, “450”, “6”, “#A7A690”);
    so.addParam(“FlashVars”, “zoomifyImagePath=../../images/portfolio/campus/onu3D/”);
    so.addParam(“MENU”, “FALSE”);
    so.addParam(“wmode”, “transparent”);

    Any ideas? It’s weird that the Flash doesn’t refresh in the page. Thanks!


  7. Derek: the only strange thing I see about your code is that normally when you add variables with SWFObject, you do it like this:

    so.addVariable("“zoomifyImagePath", "../../images/portfolio/campus/onu3D/");

    instead of this:
    so.addParam("FlashVars", “zoomifyImagePath=../../images/portfolio/campus/onu3D/");

  8. Your info seemed to be helpful for all those who wants to use Flash Object but were unable to do that. I m one of them. Now i hope to use it successfully. And one more thing. I like the stuff printed on your shirt!

  9. I’ve installed you script, and it’s removing my alt copy from the div, but not showing my Flash animation in IE or Firefox. Does the div id HAVE to be named “flashcontent” or can it be named something else, as long as the so.write reflects the name change as well.

  10. Steve: yes, you can use any Id you like. It sounds like maybe your path to the swf is wrong. What happens when you right click the area where the swf should be?

  11. First of all, Geoff: THANK YOU. Now, on to my question:

    I’ve got a flash menu object, and I’d like it to show which page the user is on. So rather than making 10 different menus for the 10 pages to which it applies, I want to make a single menu, and tell it which page has called it.

    In the actionscript, there are variables for each page: music=1;video=2,art=3 etc. And in the first frame, I’d like to set menutarget=music or menutarget=video, etc.

    Now to the SWFObject part:

    so.addVariable(“menutarget”, “music”);

    doesn’t seem to work, and I’m not sure why. Perhaps it’s treating music as a string, but using Number(menutarget) doesn’t help, nor does anything else I’ve tried. Even

    so.addVariable(“menutarget”, “1”);

    doesn’t seem to work, so I’m not sure I’m doing it right. Any ideas?

    And thanks again… I developed the site on a mac, and about died when I saw how windows handled the flash. You totally saved my day.

  12. I think both the stuff printed on your shirt and Flash Object rules.The text reminds me of Adobe premiere…

  13. Pingback: testanchor558

Comments are closed.