115 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim
says

Normally Flash outputs 2 object tags in the HTML when you publish a project. One is supposed to be for IE while one is for non-IE browsers. Now I tried erasing the IE part and just left this. And it seems to be working in FF, Chrome and IE6 . Does anybody know if using this shorter version is OK? Why do we normally have 2 objects tags?

            <object data="a.swf" type="application/x-shockwave-flash" height="400" width="550">
                <param name="movie" value="a.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="wmode" value="window" />
                <param name="scale" value="showall" />
                <param name="menu" value="true" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <a href="http://www.adobe.com/go/getflash">
                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                </a>
            </object>
1686 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Tean
says
115 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim
says

Thanks. So it says it is OK right? (as long as you have a little preloader for IE to start playing without waiting dowload to complete. For large, single SWF projects it may not look good on IE) Of course you can get rid of unnecessary param tags as well. But I think leaving adobe getFlash link would be in order.

1955 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni
says

Why not use SWFObject?

8503 posts Community Moderator
  • Located in United Kingdom
  • Has been part of the Envato Community for over 7 years
  • Helps us moderate the forums
  • Won a competition
+10 more
MSFX
Moderator
says
Emroni said
Why not use SWFObject?

+1!

115 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim
says

Yeah but, why use extra JS code if same outcome can be achieved with much shorter code? :D

If you need to place multiple SWFs on a page JS can make things shorter but when you want 1-2 SWFs on a page I don’t like extra JS.

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+4 more
tsafi
says
KurtBilisim said
Yeah but, why use extra JS code if same outcome can be achieved with much shorter code? :D

If that’s the case….keep struggling with no browser unity on all…. what do we care :P

115 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim
says

That’s what I wanted to learn, that shorter version seems to be working on all browsers without the need for JS. (except for IE you need a low size preloader which I usually use anyway)

1568 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
dSKY
says

SwfObject deals with a lot of various browser quirks.
It’s a standard for embedding flash content, and it is recommended by Adobe.

by
by
by
by
by
by