<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Romantique Flash</title>
	<atom:link href="http://romantiqueflash.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://romantiqueflash.wordpress.com</link>
	<description>line'em up - flash'em down</description>
	<lastBuildDate>Tue, 23 Dec 2008 06:05:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='romantiqueflash.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Romantique Flash</title>
		<link>http://romantiqueflash.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://romantiqueflash.wordpress.com/osd.xml" title="Romantique Flash" />
	<atom:link rel='hub' href='http://romantiqueflash.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ActionScript 3.0 Singleton</title>
		<link>http://romantiqueflash.wordpress.com/2008/12/22/actionscript-30-singleton/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/12/22/actionscript-30-singleton/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:31:27 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=37</guid>
		<description><![CDATA[Several singleton implementation were met by me, while surfing through the internet and reading some books. In ActionScript 3.0 Design Patterns there was an implementation, the most met among developers, where the constructor requires some class to get an instance. The fact is that the class required is private for the package where singleton is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=37&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Several singleton implementation were met by me, while surfing through the internet and reading some books. In <a href="http://oreilly.com/catalog/9780596528461/">ActionScript 3.0 Design Patterns</a> there was an implementation, the most met among developers, where the constructor requires some class to get an instance. The fact is that the class required is private for the package where singleton is placed &#8211; so no other peace of code can call the constructor. Just because it doesn&#8217;t have the class.</p>
<address><span style="color:#339966;"><code>public class SomeSingletonClass<br />
{<br />
public function SomeSingletonClass(privateClassRef:Class)<br />
{<br />
if( privateClassRef == PrivateClass )<br />
{<br />
...<br />
}<br />
else<br />
throw new Error("singleton error");<br />
}class PrivateClass ...</code></span></address>
<p>I find this method very confusing. The user of the class meets its constructor. And is forced to use singleton get instance method in a very very strange and uncommon way. The desired method would be not a strange requirement but a pretty widely used error of using the constructor (as we know, i&#8217;s impossible to make a constructor private in AS3). I can offer a very simple and &#8220;close to originals&#8221; way of building singleton classes:</p>
<address><span style="color:#339966;"><code>public function SingletonClass<br />
{<br />
static public function getInstance():SingletonClass<br />
{<br />
if( _instance == null )<br />
{<br />
_allowCallConstructor = true;<br />
_instance = new SingletonClass();<br />
_allowCallConstructor = false;<br />
}<br />
return _instance;<br />
}</span></pre>
<pre><span style="color:#339966;">static private var _instance:SingletonClass = null;
static private var _allowCallConstructor:Boolean = false;</span></pre>
<pre><span style="color:#339966;">public function SingletonClass()<br />
{<br />
if( !_allowClassConstructor )<br />
throw new Error("Use getInstance() method instead");<br />
...<br />
}<br />
}</address>
<p></span></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=37&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/12/22/actionscript-30-singleton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple method and event handler in one</title>
		<link>http://romantiqueflash.wordpress.com/2008/11/17/simple-method-and-event-handler-in-one/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/11/17/simple-method-and-event-handler-in-one/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 09:56:43 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=31</guid>
		<description><![CDATA[Sometimes I need the same method to be a simple method (without having to think what argument to pass) and an event handler at once. If I have a regular handler private function init(event:Event):void { &#8230; } I&#8217;d have to pass some sort of argument (probably null would be enough) to call it. If I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=31&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need the same method to be a simple method (without having to think what argument to pass) and an event handler at once.</p>
<p>If I have a regular handler</p>
<p><span style="color:#008000;">private function init(event:Event):void<br />
{<br />
&#8230;<br />
}</span></p>
<p>I&#8217;d have to pass some sort of argument (probably null would be enough) to call it. If I don&#8217;t pass &#8211; the warning (or in some compiler mode) an error will appear.</p>
<p><span style="color:#008000;"><em>init(null);</em></span></p>
<p>If I make just some method, I won&#8217;t be able to use it as an event handler error. Since I will get runtime error.</p>
<p>A very light and elegant solution was given in <a href="http://www.actionscript.org/forums/index.php3">actionscript.org</a> forum.</p>
<p><span style="color:#008000;">private function init(event:Event=null);</span></p>
<p>This prevents from warning when not passing an argument (using as simple method) and both it can be used as an event handler.</p>
<p><span style="color:#008000;">public class Main extends Sprite<br />
{<br />
public function Main()<br />
{<br />
if( stage != null )<br />
init();<br />
else<br />
addEventListener(Event.ADDED_TO_STAGE,init);<br />
&#8230;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=31&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/11/17/simple-method-and-event-handler-in-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 3 component lifecycle</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/27/flex-3-component-lifecycle/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/27/flex-3-component-lifecycle/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 10:42:31 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[components]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=27</guid>
		<description><![CDATA[In a former time, when I only started to learn Flex, it seemed to me a big and crazy mixture of events, methods and properties. I didn&#8217;t know which method to call, and how to do this and that. Now flex component instantiation process is not that hard for me, and event much more &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=27&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a former time, when I only started to learn Flex, it seemed to me a big and crazy mixture of events, methods and properties. I didn&#8217;t know which method to call, and how to do this and that. Now flex component instantiation process is not that hard for me, and event much more &#8211; it realy seems to be logically structered. I wish I had <a href="http://flexscript.wordpress.com/2008/10/24/flex-component-lifecycle-and-flex-component-framework/">such a good explanation</a> those times, as done in <a href="http://flexscript.wordpress.com/">FlexScript</a> blog. Recommend.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=27&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/27/flex-3-component-lifecycle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 namespaces</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/26/actionscript-3-namespaces/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/26/actionscript-3-namespaces/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 19:43:32 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=24</guid>
		<description><![CDATA[In my previous post I was a bit cinfused with wondering is there is realy some undocumented keyword in flash. The answer was pretty much simple. It was a custom namespace. Probably only a name confused me. Since I had an experience of C++ and Java, the word reminded me good old times. A good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=24&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://romantiqueflash.wordpress.com/2008/10/20/mistic-as3-keyword/">previous post</a> I was a bit cinfused with wondering is there is realy some undocumented keyword in flash. The answer was pretty much simple. It was a custom namespace. Probably only a name confused me. Since I had an experience of C++ and Java, the word reminded me good old times. A good post was found about <a href="http://blog.oinam.com/2006/namespace-in-actionscript-30/">actionscript 3 namespaces</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=24&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/26/actionscript-3-namespaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Controlling sound volume of flex components</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/23/controlling-sound-volume-of-flex-components/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/23/controlling-sound-volume-of-flex-components/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 13:25:35 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=20</guid>
		<description><![CDATA[Today I&#8217;ve made my first attempt to control flex component sound. My first ideo was extremely simple: this.soundTransform.volume = 0.5; But nothing realy happened. I&#8217;ve set the break point in the line of the volume modification and in the line right after that. So in the first breakpoint the value was like 0. But how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=20&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve made my first attempt to control flex component sound. My first ideo was extremely simple:</p>
<p><span style="color:#008000;">this.soundTransform.volume = 0.5;</span></p>
<p>But nothing realy happened. I&#8217;ve set the break point in the line of the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html#volume">volume</a> modification and in the line right after that. So in the first breakpoint the value was like 0. But how surprised I wasm when the watch tool showed me the same value in the second line, after the modification. Even despite the factthat <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html#volume">volume</a> of <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html">SoundTransform</a> class is marked as [read/write].</p>
<p>Next one worked fine in the way I wanted it:</p>
<p><span style="color:#008000;">this.soundTransform = new SoundTransform(0.5);<br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=20&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/23/controlling-sound-volume-of-flex-components/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Mistic AS3 keyword</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/20/mistic-as3-keyword/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/20/mistic-as3-keyword/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:16:53 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=16</guid>
		<description><![CDATA[How impressed I was, when first met virtual keyword. The keyword actualy was given in a WebOrb code example of using Flex web services. The code was like: var ro:RemoteObject = new RemoteObject(&#8220;GenericDestination&#8221;); ro.SomMethod.addEventListener(ResultEvent.RESULT,onServiceResult); &#8230; private virtual function onServiceResult(event:ResultEvent):void &#8230; How disappointed I became, when half of an hour of googling didn&#8217;t gimme any result [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=16&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How impressed I was, when first met <span style="color:#3366ff;">virtual</span> keyword. The keyword actualy was given in a WebOrb code example of using Flex web services. The code was like:</p>
<p><span style="color:#3366ff;">var ro:RemoteObject = new RemoteObject(&#8220;GenericDestination&#8221;);<br />
ro.SomMethod.addEventListener(ResultEvent.RESULT,onServiceResult);<br />
&#8230;<br />
private virtual function onServiceResult(event:ResultEvent):void<br />
&#8230;</span></p>
<p>How disappointed I became, when half of an hour of googling didn&#8217;t gimme any result for that. My team leader told me that means, that a method can be called from server. Though no documentation is still available for me. Realy mistic&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=16&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/20/mistic-as3-keyword/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Additional styles of custom flex component (continue)</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/15/12/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/15/12/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:57:51 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[skins]]></category>
		<category><![CDATA[styles]]></category>

		<guid isPermaLink="false">http://romantiqueflash.wordpress.com/?p=12</guid>
		<description><![CDATA[In my previous post there was a problem inside styleChanged() method. The fact was in that styleProp came with value null to me:( After several minutes of sleeping on docs, I realized that the value of the property can come null if all the styles (say not one) have changed. So we additionaly check: override [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=12&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://romantiqueflash.wordpress.com/2008/10/13/hello-world/">previous</a> post there was a problem inside styleChanged() method. The fact was in that styleProp came with value <em>null</em> to me:(</p>
<p>After several minutes of sleeping on docs, I realized that the value of the property can come null if all the styles (say not one) have changed. So we additionaly check:</p>
<p><span style="color:#008000;">override public function styleChanged(styleProp:Strinf):void<br />
{<br />
super.styleChanged(styleProp);</span></p>
<p><span style="color:#008000;">if( <strong>styleProp == null</strong> )<br />
{<br />
// perform all skin updates<br />
}</span></p>
<p><span style="color:#008000;">}</span></p>
<p>More to learn on Flex&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=12&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/15/12/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
		<item>
		<title>Additional styles of custom flex component</title>
		<link>http://romantiqueflash.wordpress.com/2008/10/13/hello-world/</link>
		<comments>http://romantiqueflash.wordpress.com/2008/10/13/hello-world/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 07:40:06 +0000</pubDate>
		<dc:creator>romantiqueflash</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Here is the repeated example of adding custom styles to some custom component: Hi all. I&#8217;m trying to make a set of custom styles for component that extends mx:Panel. skin.css is .videoPanel { backgroundSkin : @Embed[( ... someStyle : 100; } Inside mxml file I do: &#60;mx:Style source="skin.css"/&#62; &#60;video:VideoPanel styleName="videoPanel"/&#62; And inside VideoPanel.as I have: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=1&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is the repeated example of adding custom styles to some custom component:</p>
<p>Hi all. I&#8217;m trying to make a set of custom styles for component that extends mx:Panel.</p>
<p><strong>skin.css</strong> is</p>
<p><span style="color:#666699;"><em>.videoPanel<br />
{<br />
backgroundSkin : @Embed[( ...<br />
someStyle : 100;<br />
}</em></span></p>
<p>Inside <strong>mxml</strong> file I do:</p>
<p><span style="color:#666699;"><em>&lt;mx:Style source="skin.css"/&gt;<br />
&lt;video:VideoPanel styleName="videoPanel"/&gt;</em></span></p>
<p>And inside <strong>VideoPanel.as</strong> I have:</p>
<p><span style="color:#666699;"><em>[Style(name="someStyle",type="String",inherit="no")]<br />
public class VideoPanel extends Panel<br />
{<br />
private static var classConstructed:Boolean = classConstract();</em></span></p>
<p><span style="color:#666699;"><em> private static var classConstruct():Boolean<br />
{<br />
if( StyleManager.getStyleDeclaration(&#8220;VideoPanel&#8221;) == null )<br />
{<br />
var newStyle:CSSStyleDeclaration = new CSSStyleDeclaration();<br />
newStyle.setStyle(&#8220;someStyle&#8221;,&#8221;HelloWorld&#8221;)<br />
StyleManager.setStyleDeclaration(&#8220;VideoPanel&#8221;,newStyle,true);<br />
}<br />
return true;<br />
}</em></span></p>
<p><span style="color:#666699;"><em> override public function styleChanged(styleProp:String)<br />
{<br />
super.styleChanged(styleProp);<br />
if( styleProp==&#8221;someStyle&#8221; )<br />
{<br />
&#8230;<br />
}<br />
}<br />
</em></span></p>
<p><span style="color:#666699;"><em>&#8230;<br />
}</em></span></p>
<p>The thing is that even if I comment <em><span style="color:#666699;">super.styleChanged(styleProp);</span> </em>panel still gets it&#8217;s borderSkin. Probably I&#8217;ve missed something&#8230; But I just followed the official book. Eh&#8230; need a vocation!</p>
<p>Any comments about that? Thanks in advance&#8230;</p>
<p>PS: How do I get some [CODE] tag equivalent ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romantiqueflash.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romantiqueflash.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romantiqueflash.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romantiqueflash.wordpress.com&amp;blog=5158323&amp;post=1&amp;subd=romantiqueflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romantiqueflash.wordpress.com/2008/10/13/hello-world/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/012892e94c977b1f177a9b44fbbf484b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">romantiqueflash</media:title>
		</media:content>
	</item>
	</channel>
</rss>
