<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: Default Styling &amp; Embedded Assets w/ .as files</title>
	<atom:link href="http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/</link>
	<description>actionscript, flex, flash and other fun stuff</description>
	<lastBuildDate>Sat, 14 Nov 2009 16:04:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ronald</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-4826</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Sun, 10 May 2009 14:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-4826</guid>
		<description>can we avoid default skins of flex that are not required?
&lt;a href=&#039;http://askmeflash.com/article_m.php?p=article&amp;id=6&#039; rel=&quot;nofollow&quot;&gt;http://askmeflash.com/article_m.php?p=article&amp;id=6&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>can we avoid default skins of flex that are not required?<br />
<a href='http://askmeflash.com/article_m.php?p=article&amp;id=6' rel="nofollow">http://askmeflash.com/article_m.php?p=article&amp;id=6</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-4209</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Tue, 22 Apr 2008 23:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-4209</guid>
		<description>Didn&#039;t even think to copy the old style declaration.  Thanks that solved all of my CSS problems.</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t even think to copy the old style declaration.  Thanks that solved all of my CSS problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3935</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 23 Jan 2008 22:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3935</guid>
		<description>Mannu is actually Manish Jethani and he was an engineer at Adobe for Flex 2. My guess is that he was referring to the fact that sometimes setStyle() doesn&#039;t work in the private static method. I have no idea why or when, but I know it happens because its what led me to originally find his post. defaultFactory() worked where setStyle() did not. I think its something to do with order and precedence of styles and how they get set but that is all still pretty much voodoo to me. A bit more discussion here: http://tech.groups.yahoo.com/group/flexcoders/messages/97963?threaded=1&amp;m=e&amp;var=1&amp;tidx=1</description>
		<content:encoded><![CDATA[<p>Mannu is actually Manish Jethani and he was an engineer at Adobe for Flex 2. My guess is that he was referring to the fact that sometimes setStyle() doesn&#8217;t work in the private static method. I have no idea why or when, but I know it happens because its what led me to originally find his post. defaultFactory() worked where setStyle() did not. I think its something to do with order and precedence of styles and how they get set but that is all still pretty much voodoo to me. A bit more discussion here: <a href="http://tech.groups.yahoo.com/group/flexcoders/messages/97963?threaded=1&amp;m=e&amp;var=1&amp;tidx=1" rel="nofollow">http://tech.groups.yahoo.com/group/flexcoders/messages/97963?threaded=1&amp;m=e&amp;var=1&amp;tidx=1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwopitz</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3700</link>
		<dc:creator>jwopitz</dc:creator>
		<pubDate>Fri, 21 Dec 2007 15:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3700</guid>
		<description>No I didn&#039;t.  He never responded back.  I tried leaving a comment on his site but unfortunately he was using LiveJournal which doesn&#039;t seem to allow for it.

My only guess is that it allows you to set the default styles in css syntax rather than doing each style via s.setStyle(&quot;styleName&quot;, value);

I&#039;d certainly be up to hearing the other side as I am no expert in this realm of flex.  Mannu where are you?</description>
		<content:encoded><![CDATA[<p>No I didn&#8217;t.  He never responded back.  I tried leaving a comment on his site but unfortunately he was using LiveJournal which doesn&#8217;t seem to allow for it.</p>
<p>My only guess is that it allows you to set the default styles in css syntax rather than doing each style via s.setStyle(&#8220;styleName&#8221;, value);</p>
<p>I&#8217;d certainly be up to hearing the other side as I am no expert in this realm of flex.  Mannu where are you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Denham</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3699</link>
		<dc:creator>Bruce Denham</dc:creator>
		<pubDate>Fri, 21 Dec 2007 14:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3699</guid>
		<description>Did you ever figure out why Adobe&#039;s recommended practice was wrong? Your way makes sense to me. Like you, I would like to know why Mannu thinks the Adobe method is wrong. Thanks!</description>
		<content:encoded><![CDATA[<p>Did you ever figure out why Adobe&#8217;s recommended practice was wrong? Your way makes sense to me. Like you, I would like to know why Mannu thinks the Adobe method is wrong. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwopitz</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3319</link>
		<dc:creator>jwopitz</dc:creator>
		<pubDate>Tue, 20 Nov 2007 04:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3319</guid>
		<description>looking back at this post as reference (for myself since I forget things all the time), I found Mannu&#039;s link about an alternate way of tackling the default styles.  http://mannu.livejournal.com/404681.html

In the post he states that the default way proposed by Adobe is wrong.  However he did not make any claims as to why.  I would like to know why, because the defaultFactory property on a CSSSTyleDeclaration instance leads me to believe what he is saying makes some sense.  Any input is much appreciated.</description>
		<content:encoded><![CDATA[<p>looking back at this post as reference (for myself since I forget things all the time), I found Mannu&#8217;s link about an alternate way of tackling the default styles.  <a href="http://mannu.livejournal.com/404681.html" rel="nofollow">http://mannu.livejournal.com/404681.html</a></p>
<p>In the post he states that the default way proposed by Adobe is wrong.  However he did not make any claims as to why.  I would like to know why, because the defaultFactory property on a CSSSTyleDeclaration instance leads me to believe what he is saying makes some sense.  Any input is much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stasigrii</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3063</link>
		<dc:creator>Stasigrii</dc:creator>
		<pubDate>Sun, 04 Nov 2007 16:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-3063</guid>
		<description>Hello, very nice site, keep up good job! 
Admin good, very good.</description>
		<content:encoded><![CDATA[<p>Hello, very nice site, keep up good job!<br />
Admin good, very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stasigr</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2945</link>
		<dc:creator>Stasigr</dc:creator>
		<pubDate>Mon, 29 Oct 2007 12:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2945</guid>
		<description>Hello, very nice site, keep up good job! 
Admin good, very good.</description>
		<content:encoded><![CDATA[<p>Hello, very nice site, keep up good job!<br />
Admin good, very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwopitz</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2626</link>
		<dc:creator>jwopitz</dc:creator>
		<pubDate>Mon, 08 Oct 2007 21:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2626</guid>
		<description>Try placing the embedding vars as local vars inside the setDefaultStyles method.  This is also a good approach because then you embed these assets once per class rather than per instance (i think)</description>
		<content:encoded><![CDATA[<p>Try placing the embedding vars as local vars inside the setDefaultStyles method.  This is also a good approach because then you embed these assets once per class rather than per instance (i think)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Rovira</title>
		<link>http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2625</link>
		<dc:creator>Carlos Rovira</dc:creator>
		<pubDate>Mon, 08 Oct 2007 21:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/2007/09/23/default-styling-embedded-assets-w-as-files/#comment-2625</guid>
		<description>Hi,

As you stated I&#039;m using mx_internal in that class. This is an extension of a ComboBox. But in I&#039;m not using mx_internal in the code with the problem. Here is the problematic code:

private static var defaultStylesInitialized:Boolean = setDefaultStyles();
	    
	    private static function setDefaultStyles():Boolean {
			
			var oldS:CSSStyleDeclaration = StyleManager.getStyleDeclaration(&quot;NewComboBox&quot;);
			var s:CSSStyleDeclaration = new CSSStyleDeclaration();
		
			if (oldS) {
				s = oldS;
		
				StyleManager.clearStyleDeclaration(&quot;NewComboBox&quot;, true);
			}
			
    		s.setStyle(&quot;newButtonDisabledSkin&quot;, disabledSkin);
    		s.setStyle(&quot;newButtonDownSkin&quot;, downSkin);
    		s.setStyle(&quot;newButtonOverSkin&quot;, overSkin);
    		s.setStyle(&quot;newButtonUpSkin&quot;, upSkin);
    		
			StyleManager.setStyleDeclaration(&quot;NewComboBox&quot;, s, true);
		
		    return true;
		} 
		
		[Embed (source=&quot;/icons/disnew.png&quot;)]
		private var disabledSkin:Class;
		
		[Embed (source=&quot;/icons/downnew.png&quot;)]
		private var downSkin:Class;
		
		[Embed (source=&quot;/icons/overnew.png&quot;)]
		private var overSkin:Class;
		
		[Embed (source=&quot;/icons/upnew.png&quot;)]
		private var upSkin:Class;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>As you stated I&#8217;m using mx_internal in that class. This is an extension of a ComboBox. But in I&#8217;m not using mx_internal in the code with the problem. Here is the problematic code:</p>
<p>private static var defaultStylesInitialized:Boolean = setDefaultStyles();</p>
<p>	    private static function setDefaultStyles():Boolean {</p>
<p>			var oldS:CSSStyleDeclaration = StyleManager.getStyleDeclaration(&#8220;NewComboBox&#8221;);<br />
			var s:CSSStyleDeclaration = new CSSStyleDeclaration();</p>
<p>			if (oldS) {<br />
				s = oldS;</p>
<p>				StyleManager.clearStyleDeclaration(&#8220;NewComboBox&#8221;, true);<br />
			}</p>
<p>    		s.setStyle(&#8220;newButtonDisabledSkin&#8221;, disabledSkin);<br />
    		s.setStyle(&#8220;newButtonDownSkin&#8221;, downSkin);<br />
    		s.setStyle(&#8220;newButtonOverSkin&#8221;, overSkin);<br />
    		s.setStyle(&#8220;newButtonUpSkin&#8221;, upSkin);</p>
<p>			StyleManager.setStyleDeclaration(&#8220;NewComboBox&#8221;, s, true);</p>
<p>		    return true;<br />
		} </p>
<p>		[Embed (source="/icons/disnew.png")]<br />
		private var disabledSkin:Class;</p>
<p>		[Embed (source="/icons/downnew.png")]<br />
		private var downSkin:Class;</p>
<p>		[Embed (source="/icons/overnew.png")]<br />
		private var overSkin:Class;</p>
<p>		[Embed (source="/icons/upnew.png")]<br />
		private var upSkin:Class;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
