<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; swf</title>
	<atom:link href="http://www.sajithmr.me/tag/swf/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Embedded Flash Player is not working from another domain (Cross-Domain swf access )</title>
		<link>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access</link>
		<comments>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access#comments</comments>
		<pubDate>Fri, 18 Jul 2008 06:44:40 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[webworld]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access/</guid>
		<description><![CDATA[When I used an flv player for my website www.amvizone.com, the main problem I faced was the external embedding. So I provided the iframe embedddng method instead of embedded object like youtube. The problem was the embedded flash player only worked with the my domain (where the player.swf is placed). When I put the same [...]]]></description>
			<content:encoded><![CDATA[<p>When I used an flv player for my website <a href="http://www.amvizone.com" title="Amvizone - The Amateur Video Zone" target="_blank">www.amvizone.com</a>, the main problem I faced was the external embedding. So I provided the iframe embedddng method instead of embedded object like youtube. The problem was the embedded flash player only worked with the my domain (where the player.swf is  placed). When I put the same embedded code with src points to http://www.amvizone.com/player.swf  from another domain, the player did not work.</p>
<p><a href="http://www.amvizone.com" title="Amvizone - The Amateur Video Zone" target="_blank"><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/flv.jpg" alt="FLV Player" /></a></p>
<p>Recently My Friend Rahul (He is the master in flash and action scripts)  gave me a solution for this. That is, you have to add cross-domain policy to your server to server the swf file to other domains.</p>
<blockquote><p>When a Flash document attempts to access data from another domain, Flash Player automatically attempts to load a policy file from that domain. If the domain of the Flash document that is attempting to access the data is included in the policy file, the data is automatically accessible.</p></blockquote>
<p>You have to create a file, crossdomain.xml and place in the root folder or any other folder where content is placed. The data in the crossdomain.xml file is shown below:</p><pre class="crayon-plain-tag"><code>&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;&amp;lt;!-- http://www.foo.com/crossdomain.xml --&amp;gt;

&amp;lt;cross-domain-policy&amp;gt;

&amp;lt;allow-access-from domain=&quot;www.friendOfFoo.com&quot; /&amp;gt;

&amp;lt;allow-access-from domain=&quot;*.foo.com&quot; /&amp;gt;

&amp;lt;allow-access-from domain=&quot;105.216.0.40&quot; /&amp;gt;</code></pre><p></p><pre class="crayon-plain-tag"><code>&amp;lt;/cross-domain-policy&amp;gt;</code></pre><p>The above configuration allow any subdomains of foo.com or a particular ip 105.216.0.40 or  www.friendOfFoo.com</p>
<p>If you need to provide access to all domains , you can use the following xml:</p><pre class="crayon-plain-tag"><code>&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;

&amp;lt;!-- http://www.foo.com/crossdomain.xml --&amp;gt;

&amp;lt;cross-domain-policy&amp;gt;

  &amp;lt;allow-access-from domain=&quot;*&quot; /&amp;gt;

&amp;lt;/cross-domain-policy&amp;gt;</code></pre><p><p><p>
Courtesy:  Adobe.com</p>
<p>And special thanks to Rahul for sharing the information</p>
<p>For details: click <a href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001621.html" title="Adobe Policy" target="_blank">here </a></p>
<p>Regards</p>
<p>Sajith M.R</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Cross Browser Cookies</title>
		<link>http://www.sajithmr.me/cross-browser-cookies</link>
		<comments>http://www.sajithmr.me/cross-browser-cookies#comments</comments>
		<pubDate>Fri, 04 Apr 2008 06:34:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/cross-browser-cookies/</guid>
		<description><![CDATA[A normal html / web developer must be femilered with cookies and sessions. In normal case the cookie set by one browser cannot be access through another browser. Each browsers have its own space to store the cookie value. Thats why when you login your email account from one browser, if you go another browser [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A</strong> normal html / web developer must be femilered with cookies and sessions. In normal case the cookie set by one browser cannot be access through another browser. Each browsers have its own space to store the cookie value. Thats why when you login your email account from one browser, if you go another browser , non of your preference will be available. This is the case of normal cookies.</p>
<blockquote><p>
HTTP cookies, or more commonly referred to as Web cookies, tracking cookies or just cookies, are parcels of text sent by a server to a web browser and then sent back unchanged by the browser each time it accesses that server. HTTP cookies are used for authenticating, tracking, and maintaining specific information about users, such as site preferences or the contents of their electronic shopping carts. The term &#8220;cookie&#8221; is derived from &#8220;magic cookie,&#8221; a well-known concept in UNIX computing which inspired both the idea and the name of HTTP cookies &#8211; Wikipedia</p></blockquote>
<p>But what will do if you want to set a cookie which is to be accessed from different browsers , ie mozilla, safari, opera ,internet explorer   share same cookie ??</p>
<p>Come back to the case of shock wave flie (swf ) or flash files. They also have privillages to set cookies in browser. Like html, it also have all the features in client side. Consider the cookie setting mechanism of a flash file. It is not on different places for different browsers. It is on a common file   on your computer and no matter what the browser.</p>
<p>Think this thing also javascript can access flash object via normal javascript functions if swf provides provision for that. Then when rethink the whole stuff, if you set a cookie through flash , you can access it from any browser.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/04/cross-cookie.jpg" alt="Cross browser cookies" height="505" width="517" /></p>
<p>See this post: <a href="http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash" target="_blank">http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash</a></p>
<p>In this post Mr. Daniel Bulli explains it detaily. He is the big man here.</p>
<p>also see this link: <a href="http://www.ts0.com/crosscookie/example.html" target="_blank">http://www.ts0.com/crosscookie/example.html</a></p>
<p>A live example for cross browser cookie. Both of the sites provide source code of their implementation.</p>
<p>I also uploaded the source code as a backup. Download it from here:  <a href="http://www.sajithmr.com/downloads/CrossBrowserCookieManager.zip"><img src="http://www.sajithmr.com/wp-content/uploads/2008/04/winzip_180x180.thumbnail.gif" alt="OpenID Integration PHP" height="43" width="43" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/cross-browser-cookies/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

