<?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"
	>
<channel>
	<title>Comments on: HTMLStyle</title>
	<atom:link href="http://www.rubenswieringa.com/blog/htmlstyle/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rubenswieringa.com/blog/htmlstyle</link>
	<description>Ruben writes flashy writings</description>
	<pubDate>Thu, 28 Aug 2008 10:26:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-1096</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Fri, 13 Jul 2007 22:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-1096</guid>
		<description>&lt;strong&gt;@Matt:&lt;/strong&gt;  Thanks for the kind words, in this actual blog-post I wrote down a hypothetical example of how to use HTMLStyle in its simplest form, that should be sufficient. If not then just say so and I will have a look at your project.
Do mind that I will have very little time in the next seven days..

&lt;strong&gt;@Peter:&lt;/strong&gt; Unfortunately I currently do not have the time to look into the situation you're describing, I will look at it when I have more time (as I said hopefully in about seven days).
I really appreciate that you are giving me feedback about your experiences with the HTMLStyle component, so thanks!</description>
		<content:encoded><![CDATA[<p><strong>@Matt:</strong>  Thanks for the kind words, in this actual blog-post I wrote down a hypothetical example of how to use HTMLStyle in its simplest form, that should be sufficient. If not then just say so and I will have a look at your project.<br />
Do mind that I will have very little time in the next seven days..</p>
<p><strong>@Peter:</strong> Unfortunately I currently do not have the time to look into the situation you&#8217;re describing, I will look at it when I have more time (as I said hopefully in about seven days).<br />
I really appreciate that you are giving me feedback about your experiences with the HTMLStyle component, so thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kehl</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-1082</link>
		<dc:creator>Peter Kehl</dc:creator>
		<pubDate>Fri, 13 Jul 2007 16:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-1082</guid>
		<description>Hi Ruben. Thank you for this excellent helper.

However, I've found a situation when HTMLStyle's styleSheet doesn't propagate. It happens when the application uses states - mx:State and when HTMLStyle instance is defined in the default ('') mx:State.

However, even when compiling demo.mxml, I get two warnings on lines 80 and 86: Data binding will not be able to detect assignments to 'styleSheet'. Those warnings are same as the ones I get in my code that uses mx:State. So I've tried to add an explicit event to styleSheet property, i.e. [Bindable(event="styleSheetGotChanged")] public var styleSheet:StyleSheet= new StyleSheet() and then I dispatched new event at every place where styleSheet was asisigned to, but that didn't help.

Now question: is there any specific reason why in HTMLStyle init() must be called from application's CREATION_COMPLETE event when using CDATA content CSS rather than source? Couldn't I just directly invoke it from HTMLStyle constructor, or from application's early events e.g. creationComplete?

My line of thought is: since HTMLInstance.styleSheet doesn't get bound to (for whatever Flex reason) properly in other mx:State states, how about having HTMLStyle instance in default mx:State and assigning its styleSheet to a variable, which I then use in other ms:State states?

thank you</description>
		<content:encoded><![CDATA[<p>Hi Ruben. Thank you for this excellent helper.</p>
<p>However, I&#8217;ve found a situation when HTMLStyle&#8217;s styleSheet doesn&#8217;t propagate. It happens when the application uses states - mx:State and when HTMLStyle instance is defined in the default (&#8221;) mx:State.</p>
<p>However, even when compiling demo.mxml, I get two warnings on lines 80 and 86: Data binding will not be able to detect assignments to &#8217;styleSheet&#8217;. Those warnings are same as the ones I get in my code that uses mx:State. So I&#8217;ve tried to add an explicit event to styleSheet property, i.e. [Bindable(event="styleSheetGotChanged")] public var styleSheet:StyleSheet= new StyleSheet() and then I dispatched new event at every place where styleSheet was asisigned to, but that didn&#8217;t help.</p>
<p>Now question: is there any specific reason why in HTMLStyle init() must be called from application&#8217;s CREATION_COMPLETE event when using CDATA content CSS rather than source? Couldn&#8217;t I just directly invoke it from HTMLStyle constructor, or from application&#8217;s early events e.g. creationComplete?</p>
<p>My line of thought is: since HTMLInstance.styleSheet doesn&#8217;t get bound to (for whatever Flex reason) properly in other mx:State states, how about having HTMLStyle instance in default mx:State and assigning its styleSheet to a variable, which I then use in other ms:State states?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-1045</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 12 Jul 2007 19:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-1045</guid>
		<description>Really like what you created here, nice!

I'm only using the external stylesheet for Anchor hover and rollover effects for my  and do not need to toggle back and forth.

Do you know of a solution that does not require the createComplete to load the function. Would rather these styles be set on the page without having to call this function after the Application has loaded.

All I'm trying to do is set anchor hover and rollover states via an external style sheet. Have you seen any quick, simple examples of this?

Any help would be greatly appreciated.

Thanks,
Matt</description>
		<content:encoded><![CDATA[<p>Really like what you created here, nice!</p>
<p>I&#8217;m only using the external stylesheet for Anchor hover and rollover effects for my  and do not need to toggle back and forth.</p>
<p>Do you know of a solution that does not require the createComplete to load the function. Would rather these styles be set on the page without having to call this function after the Application has loaded.</p>
<p>All I&#8217;m trying to do is set anchor hover and rollover states via an external style sheet. Have you seen any quick, simple examples of this?</p>
<p>Any help would be greatly appreciated.</p>
<p>Thanks,<br />
Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-284</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Wed, 16 May 2007 17:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-284</guid>
		<description>I did the exact same thing (created a new project in Flex with the files from the downloaded source) and I had no trouble whatsoever. You &lt;em&gt;are&lt;/em&gt; using Flex Builder 2, right?</description>
		<content:encoded><![CDATA[<p>I did the exact same thing (created a new project in Flex with the files from the downloaded source) and I had no trouble whatsoever. You <em>are</em> using Flex Builder 2, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-282</link>
		<dc:creator>Kirill</dc:creator>
		<pubDate>Wed, 16 May 2007 15:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-282</guid>
		<description>I just extract files from .zip and launch demo.mxml in Flex.
For this i create a new Project from folder with extracted files.
I don't add your component to my project and i dont change anythis in your source.</description>
		<content:encoded><![CDATA[<p>I just extract files from .zip and launch demo.mxml in Flex.<br />
For this i create a new Project from folder with extracted files.<br />
I don&#8217;t add your component to my project and i dont change anythis in your source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-269</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Tue, 15 May 2007 04:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-269</guid>
		<description>Not to question your honesty or anything, but I find that hard to believe since in my demo there is no TextFormat used whatsoever, and the error you posted occured at the setTextFormat() method..

Are you absolutely sure you ran the &lt;em&gt;demo&lt;/em&gt; and didn't just mean that you used the classes in your own project?</description>
		<content:encoded><![CDATA[<p>Not to question your honesty or anything, but I find that hard to believe since in my demo there is no TextFormat used whatsoever, and the error you posted occured at the setTextFormat() method..</p>
<p>Are you absolutely sure you ran the <em>demo</em> and didn&#8217;t just mean that you used the classes in your own project?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-266</link>
		<dc:creator>Kirill</dc:creator>
		<pubDate>Mon, 14 May 2007 20:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-266</guid>
		<description>Well, i have downlaod your source demo, and opened it in Flex. I didn't change anything.</description>
		<content:encoded><![CDATA[<p>Well, i have downlaod your source demo, and opened it in Flex. I didn&#8217;t change anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-259</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Mon, 14 May 2007 13:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-259</guid>
		<description>Hey Kirill, could it be that you are attempting to apply TextFormat to text that also gets its style from the HTMLStyle tag?

The HTMLStyle component stores its style declarations in StyleSheet objects, and text in Flex (and Flash too) can only get styles from either StyleSheets or TextFormat, not both at the same time..</description>
		<content:encoded><![CDATA[<p>Hey Kirill, could it be that you are attempting to apply TextFormat to text that also gets its style from the HTMLStyle tag?</p>
<p>The HTMLStyle component stores its style declarations in StyleSheet objects, and text in Flex (and Flash too) can only get styles from either StyleSheets or TextFormat, not both at the same time..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-258</link>
		<dc:creator>Kirill</dc:creator>
		<pubDate>Mon, 14 May 2007 13:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-258</guid>
		<description>Don't know why, but the download source doesn't work.
The dubug message:
Error: Error #2009: This method cannot be used on a text field with a style sheet.
	at flash.text::TextField/setTextFormat()
	at mx.core::UITextField/validateNow()[C:\dev\GMC\sdk\frameworks\mx\core\UITextField.as:1432]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]
	at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]</description>
		<content:encoded><![CDATA[<p>Don&#8217;t know why, but the download source doesn&#8217;t work.<br />
The dubug message:<br />
Error: Error #2009: This method cannot be used on a text field with a style sheet.<br />
	at flash.text::TextField/setTextFormat()<br />
	at mx.core::UITextField/validateNow()[C:\dev\GMC\sdk\frameworks\mx\core\UITextField.as:1432]<br />
	at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
	at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]<br />
	at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/htmlstyle#comment-76</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Thu, 12 Apr 2007 13:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/htmlstyle#comment-76</guid>
		<description>Thanks for the feedback. However I think that the UL-issue lies with Flex its html-handling skills. In the demo the user inputted text is merely copied to the two other textfields, without any additional actions..
It's kind of hard to explain, but if you really want to find out about it you can have a look at the &lt;a href="http://www.rubenswieringa.com/code/as3/flex/HTMLStyle" rel="nofollow"&gt;demo source&lt;/a&gt; ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback. However I think that the UL-issue lies with Flex its html-handling skills. In the demo the user inputted text is merely copied to the two other textfields, without any additional actions..<br />
It&#8217;s kind of hard to explain, but if you really want to find out about it you can have a look at the <a href="http://www.rubenswieringa.com/code/as3/flex/HTMLStyle" rel="nofollow">demo source</a> <img src='http://www.rubenswieringa.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
