<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>object &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/object/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>object and embed tag position in IE</title>
		<link>/2009/10/30/object-and-embed-tag-position-in-ie/</link>
		<comments>/2009/10/30/object-and-embed-tag-position-in-ie/#respond</comments>
		<pubDate>Fri, 30 Oct 2009 19:00:38 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">/?p=748</guid>
		<description><![CDATA[What is OK? If you&#8217;ve written at least once the OBJECT and EMBED tags, without copy/paste you may have been noticed that the place of the EMBED tag is a bit strange. Actually after the OBJECT tag, comes the PARAM sequence, that simply defines different parameters for the flash movie. And what looks strange? The &#8230; <a href="/2009/10/30/object-and-embed-tag-position-in-ie/" class="more-link">Continue reading <span class="screen-reader-text">object and embed tag position in IE</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
<li><a href="/2009/02/22/html-object-and-embed-tags/" rel="bookmark" title="Html object &#038; embed tags">Html object &#038; embed tags </a></li>
<li><a href="/2009/02/23/object-and-embed-tags-revealed/" rel="bookmark" title="object and embed tags revealed">object and embed tags revealed </a></li>
<li><a href="/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/" rel="bookmark" title="a tag doesn&#8217;t apply hover on IE6">a tag doesn&#8217;t apply hover on IE6 </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What is OK?</h2>
<p>If you&#8217;ve written at least once the OBJECT and EMBED tags, without copy/paste you may have been noticed that the place of the EMBED tag is a bit strange. Actually after the OBJECT tag, comes the PARAM sequence, that simply defines different parameters for the flash movie.</p>
<h2>And what looks strange?</h2>
<p>The strange thing in all this is that the EMBED tag, which in fact is only one, instead of the case with all the parameters of the OBJECT, is displayed just before the closing of the OJBECT tag.</p>
<h2>Experimenting &#8230;</h2>
<p>What if the embed tag is outside of the OBJECT opening and closing tags. Actually only IE understands this as a problem. Than it displays the move twice!</p>
<p>That&#8217;s why the place of the EMBED is just before closing the OBJECT tag. In that case MSIE doesn&#8217;t &#8220;see&#8221; the EMBED and displays everything correctly!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
<li><a href="/2009/02/22/html-object-and-embed-tags/" rel="bookmark" title="Html object &#038; embed tags">Html object &#038; embed tags </a></li>
<li><a href="/2009/02/23/object-and-embed-tags-revealed/" rel="bookmark" title="object and embed tags revealed">object and embed tags revealed </a></li>
<li><a href="/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/" rel="bookmark" title="a tag doesn&#8217;t apply hover on IE6">a tag doesn&#8217;t apply hover on IE6 </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/10/30/object-and-embed-tag-position-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExternalInterface from JavaScript to IE/Firefox</title>
		<link>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/</link>
		<comments>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:53:53 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">/?p=660</guid>
		<description><![CDATA[ExternalInterface communication with JavaScript The most simple way to describe the case is as if you have the ExternalInterface addCallback in the Flex application like that: flex.mxml ExternalInterface.addCallback("jsFunc", flexFunc); public flexFunc() : void { ... } and in the javascript code you&#8217;ve something like that: file.js function getSwf(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return &#8230; <a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" class="more-link">Continue reading <span class="screen-reader-text">ExternalInterface from JavaScript to IE/Firefox</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/03/09/flex-javascript-communcation-example/" rel="bookmark" title="Flex Javascript communcation example">Flex Javascript communcation example </a></li>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>ExternalInterface communication with JavaScript</h2>
<p>The most simple way to describe the case is as if you have the ExternalInterface addCallback in the Flex application like that:</p>
<p><strong>flex.mxml</strong></p>
<blockquote>
<pre>ExternalInterface.addCallback("jsFunc", flexFunc);

public flexFunc() : void
{ ... }</pre>
</blockquote>
<p>and in the javascript code you&#8217;ve something like that:<span id="more-660"></span></p>
<p><strong>file.js</strong></p>
<blockquote>
<pre>function getSwf(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
         return window[movieName];
    } else{
         return document[movieName];
    }
}

getSwf('movie').jsFunc();</pre>
</blockquote>
<p>that will execute the <strong>flexFunc</strong> in the flex app.</p>
<h2>Important!</h2>
<p>is very important to have the object/embed tag correct:</p>
<blockquote>
<pre>&lt;object classid="clsid:d27cdb6 ....
&lt;param name="name" value="movie" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="AllowScriptAccess" value="always" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;param name="flashVars" /&gt;
&lt;param name="src" value="movie.swf" /&gt;
&lt;embed ... name="movie"&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
</blockquote>
<h2>That doesn&#8217;t work? Where&#8217;s the bug?</h2>
<p>Even it&#8217;s not so clear the bug is present. The getSwf function gets the window[moviename], or document[moviename] depending of which browser is used. But the problem is that both object and embed tags have same name and the selected object is not one but two.</p>
<h2>So there&#8217;s a simple patch</h2>
<p>Name the object embed tags with different names, i.e.</p>
<blockquote>
<pre>&lt;object classid="clsid:d27cdb6e-ae6d-11 ...&gt;
&lt;param name="name" value="movieie" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="AllowScriptAccess" value="always" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;param name="flashVars" /&gt;
&lt;param name="src" value="movie.swf" /&gt;
&lt;embed ... name="movieie"&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
</blockquote>
<p>now they are named movieie (for IE) and movieff  (for Firefox) and we must to change a bit the getSwf function like that:</p>
<blockquote>
<pre>function getSwf(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
         return window[movieName + 'ie'];
    } else{
         return document[movieName + 'ff'];
    }
}

getSwf('movie').jsFunc();</pre>
</blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/03/09/flex-javascript-communcation-example/" rel="bookmark" title="Flex Javascript communcation example">Flex Javascript communcation example </a></li>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>StageDisplayState.FULL_SCREEN under IE</title>
		<link>/2009/03/10/stagedisplaystate-full-screen-under-ie/</link>
		<comments>/2009/03/10/stagedisplaystate-full-screen-under-ie/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 06:51:59 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">/?p=324</guid>
		<description><![CDATA[Why the fullscreen of flash movies don't work under IE? Here's the answer<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2009/10/30/object-and-embed-tag-position-in-ie/" rel="bookmark" title="object and embed tag position in IE">object and embed tag position in IE </a></li>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>If someone wanders why the fullscreen doesn&#8217;t work correctly under IE, after calling StageDisplayState.FULL_SCREEN in Flex &#8211; there&#8217;s the answer. Just don&#8217;t forget to add</p>
<blockquote><p><span style="color: #808080;"><em>&lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&gt;</em></span></p></blockquote>
<p>parameter of the object tag. You may also set <em><strong>allowFullScreen=&#8221;true&#8221;</strong></em> of embed tag.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2009/10/30/object-and-embed-tag-position-in-ie/" rel="bookmark" title="object and embed tag position in IE">object and embed tag position in IE </a></li>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/03/10/stagedisplaystate-full-screen-under-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
