<?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>stoimen&#039;s web log &#187; flex 3</title>
	<atom:link href="http://www.stoimen.com/blog/category/flex-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stoimen.com/blog</link>
	<description>about web development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flex 3 NetStream video rotation</title>
		<link>http://www.stoimen.com/blog/2009/12/01/flex-3-netstream-video-rotation/</link>
		<comments>http://www.stoimen.com/blog/2009/12/01/flex-3-netstream-video-rotation/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 08:00:00 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[NetStream]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=820</guid>
		<description><![CDATA[Why should I rotate a video stream? Well if you&#8217;d like to make some video upload application, let&#8217;s assume someone makes a video with it&#8217;s phone. The case with a video camera is not the same, almost every camera adjusts &#8230; <a href="http://www.stoimen.com/blog/2009/12/01/flex-3-netstream-video-rotation/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/05/video-sites-must-use-mp4-and-only-mp4/' rel='bookmark' title='Video sites must use &#8230; mp4 and only mp4!'>Video sites must use &#8230; mp4 and only mp4!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/05/21/check-youtube-video-existence-with-zend_gdata_youtube/' rel='bookmark' title='Check YouTube Video Existence with Zend_Gdata_YouTube'>Check YouTube Video Existence with Zend_Gdata_YouTube</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/' rel='bookmark' title='HTML5 video support. Detecting, playing and progressive enhancement!'>HTML5 video support. Detecting, playing and progressive enhancement!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Why should I rotate a video stream?</h2>
<p>Well if you&#8217;d like to make some video upload application, let&#8217;s assume someone makes a video with it&#8217;s phone. The case with a video camera is not the same, almost every camera adjusts it&#8217;s rotation correctly, but when it comes to your mobile not always the video contains information about the rotation.</p>
<p>The problem is when the user uploads a rotated video, how I&#8217;d rotate it back on the correct position when playing it with a simple FLV player.</p>
<h2>The answer is so simple!</h2>
<p>You can just use this simple chunk of code:</p>
<blockquote>
<pre>...
_video = <span>new</span> Video();
_video.rotation = 90;
...</pre>
</blockquote>
<p>and thus you can rotate the video with several degrees.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/05/video-sites-must-use-mp4-and-only-mp4/' rel='bookmark' title='Video sites must use &#8230; mp4 and only mp4!'>Video sites must use &#8230; mp4 and only mp4!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/05/21/check-youtube-video-existence-with-zend_gdata_youtube/' rel='bookmark' title='Check YouTube Video Existence with Zend_Gdata_YouTube'>Check YouTube Video Existence with Zend_Gdata_YouTube</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/' rel='bookmark' title='HTML5 video support. Detecting, playing and progressive enhancement!'>HTML5 video support. Detecting, playing and progressive enhancement!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/12/01/flex-3-netstream-video-rotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing objects with ExternalInterface from JS to Flex</title>
		<link>http://www.stoimen.com/blog/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/</link>
		<comments>http://www.stoimen.com/blog/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:48:26 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=781</guid>
		<description><![CDATA[What if you&#8217;d like to pass an object to Flex To continue the topic of my previous post I&#8217;m just going to add that there&#8217;s a native way to pass objects from JavaScript to Flex&#8217;s actionscript. I&#8217;m not going to &#8230; <a href="http://www.stoimen.com/blog/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/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='http://www.stoimen.com/blog/2010/02/24/storing-javascript-objects-in-html5-localstorage/' rel='bookmark' title='Storing JavaScript objects in html5 localStorage'>Storing JavaScript objects in html5 localStorage</a></li>
<li><a href='http://www.stoimen.com/blog/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>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>What if you&#8217;d like to pass an object to Flex</h2>
<p>To continue the topic of my previous post I&#8217;m just going to add that there&#8217;s a native way to pass objects from JavaScript to Flex&#8217;s actionscript.</p>
<p>I&#8217;m not going to describe how to structure a object in JavaScript and/or Flex. Let&#8217;s go directly to the example.</p>
<p>The function in .js file should return something that is object in JavaScript:</p>
<p><strong>.js file</strong></p>
<blockquote>
<pre>function getObject() {
    return { foo : 'bar', zoo : 'tar' };
}</pre>
</blockquote>
<p><span id="more-781"></span>Now, supposing that in Flex there already has been added a callback with ExternalInterface(&#8216;getObject&#8217;, receiveObject); and the as3 function receiveObject looks similar to this:</p>
<p><strong>.mxml or .as</strong></p>
<blockquote>
<pre>private function receiveObject( obj : Object ) : void
{
    Alert.show(obj.foo);
    Alert.show(obj.zoo);
}</pre>
</blockquote>
<p>That outputs respectively &#8220;bar&#8221; and &#8220;tar&#8221;.</p>
<h2>Even more &#8230;</h2>
<p>You can pass from .js to .as array of objects, but than with small change of the code you&#8217;d access the variables:</p>
<blockquote>
<pre>obj[0].foo
obj[1].foo</pre>
</blockquote>
<p>assuming that there are two objects with same properties.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/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='http://www.stoimen.com/blog/2010/02/24/storing-javascript-objects-in-html5-localstorage/' rel='bookmark' title='Storing JavaScript objects in html5 localStorage'>Storing JavaScript objects in html5 localStorage</a></li>
<li><a href='http://www.stoimen.com/blog/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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips and tricks in ExternalInterface communication!</title>
		<link>http://www.stoimen.com/blog/2009/10/28/tips-and-tricks-in-externalinterface-communication/</link>
		<comments>http://www.stoimen.com/blog/2009/10/28/tips-and-tricks-in-externalinterface-communication/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 18:31:06 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=778</guid>
		<description><![CDATA[ActionScript and the rest of the world In the past, when ActionScript v2 was widely used, the most common way to interact with the other parts of the web application, whether a page refresh, redirect or JavaScript method call was &#8230; <a href="http://www.stoimen.com/blog/2009/10/28/tips-and-tricks-in-externalinterface-communication/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/09/ie-externalinterface-communication-problem/' rel='bookmark' title='IE &amp; ExternalInterface communication problem'>IE &#038; ExternalInterface communication problem</a></li>
<li><a href='http://www.stoimen.com/blog/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>
<li><a href='http://www.stoimen.com/blog/2009/03/07/flex-javascript-communication/' rel='bookmark' title='Flex Javascript communication'>Flex Javascript communication</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>ActionScript and the rest of the world</h2>
<p>In the past, when ActionScript v2 was widely used, the most common way to interact with the other parts of the web application, whether a page refresh, redirect or JavaScript method call was the as2 method getURL. With the simple <strong>getURL(&#8216;javascript:someJSMethod&#8230;&#8217;)</strong> the flash movie called the JS function and everything was OK.</p>
<p>Now in ActionScript v3 where everything looks and it is different, everything about communication between JS and Flash/Flex is done by <strong>ExternalInterface</strong>. The communication can be done in both directions. From JS to Flash and vice versa.</p>
<h2>The ExternalInterface.call</h2>
<p>There are two simple methods implemented by ExternalInteface. The first one is <strong>addCallback</strong> and the second one is <strong>call</strong>. Here I&#8217;m going to write a little more about the second one.</p>
<p>The most common usage is:</p>
<blockquote>
<pre>ExternalInterface.call('jsMethod');</pre>
</blockquote>
<p>where jsMethod is, as you can guess, a JavaScript method. Something like:</p>
<p><strong><em>test.js</em></strong></p>
<blockquote>
<pre>function jsMethod() { alert('test') };</pre>
</blockquote>
<p>A bit different, but yet again simple, is the call to a js function with parameters:</p>
<blockquote>
<pre>ExternalInterface.call('jsMethod', param1, param2);</pre>
</blockquote>
<p>where the javascript function can be:</p>
<blockquote>
<pre>function jsMethod(param1, param2) { alert(param1) };</pre>
</blockquote>
<p>But what I was writing about is really tricky. What if the jsMethod returns a value? Than in the .js file you&#8217;ve the following method:</p>
<blockquote>
<pre>function jsMethod() { return 'foo bar' };</pre>
</blockquote>
<p>and when you try this:</p>
<blockquote>
<pre>var str:String = ExternalInterface.call('jsMethod');
Alert.show(str);</pre>
</blockquote>
<p>you get the alert box with the string &#8216;foo bar&#8217;.</p>
<h2>Where to use it?</h2>
<p>Well this is really useful, because you get the response within the call method, only with the .call instead with .call and than .addCallback. The problem of course appears when you try to use it with AJAX call. Than even if the function returns in the success method of the AJAX call the flash doesn&#8217;t get the response.</p>
<p>Than you simply implement the communication with both .call and .addCallback!</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/09/ie-externalinterface-communication-problem/' rel='bookmark' title='IE &amp; ExternalInterface communication problem'>IE &#038; ExternalInterface communication problem</a></li>
<li><a href='http://www.stoimen.com/blog/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>
<li><a href='http://www.stoimen.com/blog/2009/03/07/flex-javascript-communication/' rel='bookmark' title='Flex Javascript communication'>Flex Javascript communication</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/10/28/tips-and-tricks-in-externalinterface-communication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExternalInterface from JavaScript to IE/Firefox</title>
		<link>http://www.stoimen.com/blog/2009/07/08/externalinterface-from-javascript-to-ie-firefox/</link>
		<comments>http://www.stoimen.com/blog/2009/07/08/externalinterface-from-javascript-to-ie-firefox/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:53:53 +0000</pubDate>
		<dc:creator>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">http://www.stoimen.com/blog/?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 &#8230; <a href="http://www.stoimen.com/blog/2009/07/08/externalinterface-from-javascript-to-ie-firefox/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/09/flex-javascript-communcation-example/' rel='bookmark' title='Flex Javascript communcation example'>Flex Javascript communcation example</a></li>
<li><a href='http://www.stoimen.com/blog/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='http://www.stoimen.com/blog/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>]]></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>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/09/flex-javascript-communcation-example/' rel='bookmark' title='Flex Javascript communcation example'>Flex Javascript communcation example</a></li>
<li><a href='http://www.stoimen.com/blog/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='http://www.stoimen.com/blog/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>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/07/08/externalinterface-from-javascript-to-ie-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex 3 DateChooser UTC issue</title>
		<link>http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/</link>
		<comments>http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/#comments</comments>
		<pubDate>Wed, 20 May 2009 06:11:21 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[datechooser]]></category>
		<category><![CDATA[getTime]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[unix timestamp]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=572</guid>
		<description><![CDATA[What I intend to do The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I &#8230; <a href="http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>What I intend to do</h2>
<p style="text-align: left;">The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I&#8217;m using date.getTime() in Flex.</p>
<p style="text-align: center;"><a href="http://www.stoimen.com/blog/wp-content/uploads/2009/05/datechooser-issue.png"><img class="aligncenter size-medium wp-image-573" title="datechooser-issue" src="http://www.stoimen.com/blog/wp-content/uploads/2009/05/datechooser-issue-300x120.png" alt="" width="430" /></a></p>
<h2>getTime()</h2>
<p>Applying getTime() to any object of type Date in Flex results in a unix timestamp with included milliseconds. Of course the server side technology which in our case is PHP should devide by 1000 to remove the milliseconds. <span id="more-572"></span></p>
<h2>The problem</h2>
<p>The database and the server side script language use a UTC dates. The problem is the Flash functions getFullYear, getMonth, etc. don&#8217;t deal with UTC. Of course you can switch to getUTCFullYear, getUTCMonth, etc. but than comes the real problem.</p>
<h2>The DateChooser &#8230;</h2>
<p>When you&#8217;re using dates in Flex with no UTC in mind everything&#8217;s OK. You have the DateChooser component. Clicking on the 16th of May 2009 results in</p>
<blockquote><p>Alert.show(date.toString());</p></blockquote>
<p>which prints 16th of May 2009, which appears to be OK. Yes but the date.getTime() is still using the non-UTC time. If you&#8217;re using UTC, and suddenly print that kind of a message:</p>
<blockquote><p>Alert.show(date.toUTCString());</p></blockquote>
<p>Then for 16th of May 2009 you receive 15th of May 2009. Which is really bad.</p>
<h2>No workaround</h2>
<p>Unfortunately I didn&#8217;t find any workaround till now. I hope I&#8217;ll soon.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flex 3: compare two dates</title>
		<link>http://www.stoimen.com/blog/2009/05/12/flex-3-compare-two-dates/</link>
		<comments>http://www.stoimen.com/blog/2009/05/12/flex-3-compare-two-dates/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:22:47 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[setTime]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=556</guid>
		<description><![CDATA[Theory of Operation You&#8217;re using Flex 3 and want to compare two dates. The format of the dates is string something like &#8220;2009 May 05&#8243;. The question is &#8230; What&#8217;s the best way to compare them Well if you&#8217;ve the &#8230; <a href="http://www.stoimen.com/blog/2009/05/12/flex-3-compare-two-dates/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/05/12/zend_date-with-dates-before-1901/' rel='bookmark' title='Zend_Date with dates before 1901'>Zend_Date with dates before 1901</a></li>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Theory of Operation</h2>
<p>You&#8217;re using Flex 3 and want to compare two dates. The format of the dates is string something like &#8220;2009 May 05&#8243;. The question is &#8230;</p>
<h2>What&#8217;s the best way to compare them</h2>
<p>Well if you&#8217;ve the dates as strings and you can easily conver them to something like unix timestamps. If they are a Date object you can try lik so:<span id="more-556"></span></p>
<blockquote><p>date1 = new Date(&#8217;2009&#8242;);</p>
<p>date2 = new Date(&#8217;1990&#8242;);</p>
<p>if (date1.setTime() &lt; date2.setTime())</p></blockquote>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/05/12/zend_date-with-dates-before-1901/' rel='bookmark' title='Zend_Date with dates before 1901'>Zend_Date with dates before 1901</a></li>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/05/12/flex-3-compare-two-dates/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Flex 3 HSlider thumb gap issue</title>
		<link>http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/</link>
		<comments>http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:19:33 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[gap]]></category>
		<category><![CDATA[hslider]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[thumbs]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=547</guid>
		<description><![CDATA[Flex 3 HSlider thumb gap issue <a href="http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/08/flash-player-with-debugger-issue/' rel='bookmark' title='flash player with debugger issue'>flash player with debugger issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/' rel='bookmark' title='You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;'>You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Introduction to the problem</h2>
<p>When the HSlider is set up with two or more thumbs there&#8217;s a gap between them always. The problem is that you may want to put them on one single value of the slider, but it&#8217;s not possible.</p>
<h2>First: hide your thumbs</h2>
<p>The quick solution is to make custom skin for the thumbs, setup the height and width of the thumb to be 1px and make a transparent background image for skinning them. That of course does not solve the problem. There&#8217;s still gap of 1 value between the thumbs, and still you cannot select one single value with both of them.<span id="more-547"></span></p>
<h2>Make your own thumbs</h2>
<p>It&#8217;s difficult to make the calculation and positioning of course. With that approach you&#8217;ve to be careful with the math to adjust properly the new thumbs. They can be some kind of Flex built in component. As the button control is or whatever.</p>
<h2>Hope for workaround</h2>
<p>As it appears there&#8217;s a reported bug for this issue. And I hope soon there will be a workaround or even better there&#8217;s going to be new version. Something I don&#8217;t like in commercial software.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/08/flash-player-with-debugger-issue/' rel='bookmark' title='flash player with debugger issue'>flash player with debugger issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/' rel='bookmark' title='You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;'>You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash doesn&#8217;t load in div with display:none style</title>
		<link>http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/</link>
		<comments>http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 05:42:31 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[load]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=477</guid>
		<description><![CDATA[Flash doesn't load in display:none div. <a href="http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/' rel='bookmark' title='load flash .swf in hidden div'>load flash .swf in hidden div</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/08/flash-player-with-debugger-issue/' rel='bookmark' title='flash player with debugger issue'>flash player with debugger issue</a></li>
<li><a href='http://www.stoimen.com/blog/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>]]></description>
			<content:encoded><![CDATA[<h2>Where&#8217;s the problem?</h2>
<p>As it appears if you have flash embed / object tags in a div which is initaly hidden (style=&#8221;display:none&#8221;) cannot be loaded. It means the .swf file is loaded via HTTP but when the div become visible then starts the loading process and the flash starts from the begining.</p>
<h2>Is there a workaround?</h2>
<p>I&#8217;m looking for a workaround which I&#8217;ll share as soon as I find it. If you have a solution please share it with us.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/' rel='bookmark' title='load flash .swf in hidden div'>load flash .swf in hidden div</a></li>
<li><a href='http://www.stoimen.com/blog/2009/02/08/flash-player-with-debugger-issue/' rel='bookmark' title='flash player with debugger issue'>flash player with debugger issue</a></li>
<li><a href='http://www.stoimen.com/blog/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>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex 3 Custom Timeline Component</title>
		<link>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/</link>
		<comments>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:57:22 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=450</guid>
		<description><![CDATA[Flex 3 custom timeline component <a href="http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve actually made a custom timeline component wich I&#8217;ll post recently.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flex 3 text editor</title>
		<link>http://www.stoimen.com/blog/2009/03/18/flex-3-text-editor/</link>
		<comments>http://www.stoimen.com/blog/2009/03/18/flex-3-text-editor/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 05:49:21 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=397</guid>
		<description><![CDATA[Short tutorial how to make text editor with Flex. <a href="http://www.stoimen.com/blog/2009/03/18/flex-3-text-editor/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/05/flex-3-combobox-disabled-options/' rel='bookmark' title='Flex 3 ComboBox disabled options'>Flex 3 ComboBox disabled options</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/' rel='bookmark' title='Flex 3 HSlider thumb gap issue'>Flex 3 HSlider thumb gap issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><embed src="http://tv.adobe.com/Embed.swf" quality="high" bgcolor="#000000" width="467" height="300" name="AdobeTVPlayer" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashVars="v=~b64~aHR0cDovL2Fkb2JlLmVkZ2Vib3NzLm5ldC9mbGFzaC9hZG9iZS9hZG9iZXR2Mi9hZGNfcHJlc2VudHMvNjRfYWRjXzA5Mi5mbHY/cnNzX2ZlZWRpZD0xNDcyJnhtbHZlcnM9Mg==&#038;w=467&#038;t=http://tv.adobe.com/#vi+f1472v1055&#038;h=300"></embed></p>
<p>Here&#8217;s a nice short tutorial how to make simple text editor using Flex. Actually it&#8217;s interesting how simple is to make such a dynamic component.</p>
<p>I hope you&#8217;ll enjoy.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/03/05/flex-3-combobox-disabled-options/' rel='bookmark' title='Flex 3 ComboBox disabled options'>Flex 3 ComboBox disabled options</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/' rel='bookmark' title='Flex 3 HSlider thumb gap issue'>Flex 3 HSlider thumb gap issue</a></li>
<li><a href='http://www.stoimen.com/blog/2009/05/20/flex-3-datechooser-utc-issue/' rel='bookmark' title='Flex 3 DateChooser UTC issue'>Flex 3 DateChooser UTC issue</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/18/flex-3-text-editor/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

