106 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Referred between 1 and 9 users
  • Bought between 10 and 49 items
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>
1677 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly helped protect Envato Market against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says
106 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Referred between 1 and 9 users
  • Bought between 10 and 49 items
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
Emroni says

Why not use SWFObject?

8224 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says
Emroni said
Why not use SWFObject?

+1!

106 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Referred between 1 and 9 users
  • Bought between 10 and 49 items
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
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
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

106 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Referred between 1 and 9 users
  • Bought between 10 and 49 items
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)

1550 posts
  • Bought between 1 and 9 items
  • Europe
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Sold between 50 000 and 100 000 dollars
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