<?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/"
		>
<channel>
	<title>Comments on: Flex tags and AS classes (the exceptions)</title>
	<atom:link href="http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/feed/" rel="self" type="application/rss+xml" />
	<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/</link>
	<description>music, technology, interfaces</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Justin Buser</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-223386</link>
		<dc:creator>Justin Buser</dc:creator>
		<pubDate>Mon, 15 Sep 2008 21:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-223386</guid>
		<description>Sven: First of all, that&#039;s not actually true. I think the author of this article is a bit confused. For instance, create an mxml file called TestObject.mxml in the main source folder for your application that contains the following:



	Test String 1
	


Next in your application try the following:






Results:

When you run/debug the application you should see both test variables in the console window. Object is a Top Level Class, and doesn&#039;t meet the requirements of UIComponent.

Secondly, why would you ever want to use mxml for anything outside of flex&#039;s framework? I don&#039;t understand how you could have gotten to the point where you would need to do this without already knowing that AS3 based components/classes are vastly superior in every way. Were you just trying to sound smart or have you not learned Actionscript?

Sho: Who the hell are you/we and what do you mean by &quot;considering how hard it would be to allow this&quot;? You obviously have nothing to do with Flex Builder/MXML/AS3 development or you would have immediately known that 
a.) The poster was simply wrong and Sven didn&#039;t bother to actually try to do what he claims he wants to do.
b.) Rostilav most likely suffers from some sort of congenital retardation, half of what he wrote is nonsensical gibberish. I mean seriously, &quot;MXML creatures&quot;,&quot;‘base visual class’ of ‘pure AS3 work flow’&quot;,&quot;MXML is the basement&quot;, who did he learn programming from, M. Night Shyamalan? It&#039;s like he took a huge nitrous hit and just started typing whatever random crap came out of his head.

So if you have no idea what you are talking about(this much is obvious) and have no influence over what is &quot;allowed&quot; why are you responding to idiotic drivel thereby perpetuating a useless discussion based on an imaginary problem and causing me to end up on this stupid blog reading things that just make my brain hurt? Please don&#039;t do this anymore, at least until google somehow comes up with a way to differentiate between mental masturbation and actual useful content, or at least can tell the difference between real problems and those that only exist in the minds of clueless people who just like to see their names on blogs.</description>
		<content:encoded><![CDATA[<p>Sven: First of all, that&#8217;s not actually true. I think the author of this article is a bit confused. For instance, create an mxml file called TestObject.mxml in the main source folder for your application that contains the following:</p>
<p>	Test String 1</p>
<p>Next in your application try the following:</p>
<p>Results:</p>
<p>When you run/debug the application you should see both test variables in the console window. Object is a Top Level Class, and doesn&#8217;t meet the requirements of UIComponent.</p>
<p>Secondly, why would you ever want to use mxml for anything outside of flex&#8217;s framework? I don&#8217;t understand how you could have gotten to the point where you would need to do this without already knowing that AS3 based components/classes are vastly superior in every way. Were you just trying to sound smart or have you not learned Actionscript?</p>
<p>Sho: Who the hell are you/we and what do you mean by &#8220;considering how hard it would be to allow this&#8221;? You obviously have nothing to do with Flex Builder/MXML/AS3 development or you would have immediately known that<br />
a.) The poster was simply wrong and Sven didn&#8217;t bother to actually try to do what he claims he wants to do.<br />
b.) Rostilav most likely suffers from some sort of congenital retardation, half of what he wrote is nonsensical gibberish. I mean seriously, &#8220;MXML creatures&#8221;,&#8221;‘base visual class’ of ‘pure AS3 work flow’&#8221;,&#8221;MXML is the basement&#8221;, who did he learn programming from, M. Night Shyamalan? It&#8217;s like he took a huge nitrous hit and just started typing whatever random crap came out of his head.</p>
<p>So if you have no idea what you are talking about(this much is obvious) and have no influence over what is &#8220;allowed&#8221; why are you responding to idiotic drivel thereby perpetuating a useless discussion based on an imaginary problem and causing me to end up on this stupid blog reading things that just make my brain hurt? Please don&#8217;t do this anymore, at least until google somehow comes up with a way to differentiate between mental masturbation and actual useful content, or at least can tell the difference between real problems and those that only exist in the minds of clueless people who just like to see their names on blogs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sly</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-77511</link>
		<dc:creator>Sly</dc:creator>
		<pubDate>Tue, 23 Oct 2007 10:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-77511</guid>
		<description>Surprisingly I found that I was not allowed a &quot;mx:Script&quot; as first child of a &quot;mx:Component&quot; inside a &quot;mx:DataGrid&quot;.

I know DataGrids have many more secret rules and exceptions and many things must be broken in their implementation.

Still, great post and thanks a lot !</description>
		<content:encoded><![CDATA[<p>Surprisingly I found that I was not allowed a &#8220;mx:Script&#8221; as first child of a &#8220;mx:Component&#8221; inside a &#8220;mx:DataGrid&#8221;.</p>
<p>I know DataGrids have many more secret rules and exceptions and many things must be broken in their implementation.</p>
<p>Still, great post and thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-38649</link>
		<dc:creator>Hans</dc:creator>
		<pubDate>Mon, 09 Jul 2007 02:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-38649</guid>
		<description>I&#039;m a new flexer,I met a strange problem.
When I add a instance of  a UIComponent based class into the MXML application,the Button on the instance was not displayed,the Button is a child on the UIComponent based class,and there is no debug error happened.
If I change the base class to Canvas,the Button was displayed normally.
Anyone can tell me a reason?</description>
		<content:encoded><![CDATA[<p>I&#8217;m a new flexer,I met a strange problem.<br />
When I add a instance of  a UIComponent based class into the MXML application,the Button on the instance was not displayed,the Button is a child on the UIComponent based class,and there is no debug error happened.<br />
If I change the base class to Canvas,the Button was displayed normally.<br />
Anyone can tell me a reason?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mituan</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-17536</link>
		<dc:creator>mituan</dc:creator>
		<pubDate>Mon, 02 Apr 2007 22:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-17536</guid>
		<description>Thank ! I try it!</description>
		<content:encoded><![CDATA[<p>Thank ! I try it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario Romero</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-15878</link>
		<dc:creator>Mario Romero</dc:creator>
		<pubDate>Mon, 19 Mar 2007 02:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-15878</guid>
		<description>Hey Sho, those articles cleared some stuff up, however... I was having some trouble related to the topic, and maybe you could help out. I&#039;m adding a TextField to a Panel (in actionscript), I&#039;m using Flex2 and was getting the above mentioned type error. 

This is what I tried:

public function putText() : void
{
    var ref : UIComponent = new UIComponent();
    var field : TextField = new TextField();
    

    field = &quot;a very long text goes here... &quot;;
    ref.addChild( field );
    somePanel.addChild( ref );


}

This works in a way, but not so well because the text is just drawn over the panel and if it is to long, for example, it wont force the panel to scroll. I think it is similar to what happens with the addrawchild method, isn&#039;t it??.


what I want to do is render a big chunk of text on top of a panel, the text content I get from an xml file (with url loader)...

let&#039;s assume I now have a XML variable (externalXML) with my data.. then... 



 for each ( var element:XML in externalXML.elements() ) {

    field.htmlText += &quot; &lt;b&gt;&quot; + element.Name.toString() + &quot;&lt;/b&gt;  &quot;;

 }

NOW... what would be the correct form to display &quot;field&quot; inside a Panel somewhere on my aplication?? the UIComponent gives me the above mentioned problem, adding the textField directly to the panel is a no go obviusly because of the type error...

any help is appreciated,
mario romero</description>
		<content:encoded><![CDATA[<p>Hey Sho, those articles cleared some stuff up, however&#8230; I was having some trouble related to the topic, and maybe you could help out. I&#8217;m adding a TextField to a Panel (in actionscript), I&#8217;m using Flex2 and was getting the above mentioned type error. </p>
<p>This is what I tried:</p>
<p>public function putText() : void<br />
{<br />
    var ref : UIComponent = new UIComponent();<br />
    var field : TextField = new TextField();</p>
<p>    field = &#8220;a very long text goes here&#8230; &#8220;;<br />
    ref.addChild( field );<br />
    somePanel.addChild( ref );</p>
<p>}</p>
<p>This works in a way, but not so well because the text is just drawn over the panel and if it is to long, for example, it wont force the panel to scroll. I think it is similar to what happens with the addrawchild method, isn&#8217;t it??.</p>
<p>what I want to do is render a big chunk of text on top of a panel, the text content I get from an xml file (with url loader)&#8230;</p>
<p>let&#8217;s assume I now have a XML variable (externalXML) with my data.. then&#8230; </p>
<p> for each ( var element:XML in externalXML.elements() ) {</p>
<p>    field.htmlText += &#8221; <b>&#8221; + element.Name.toString() + &#8220;</b>  &#8220;;</p>
<p> }</p>
<p>NOW&#8230; what would be the correct form to display &#8220;field&#8221; inside a Panel somewhere on my aplication?? the UIComponent gives me the above mentioned problem, adding the textField directly to the panel is a no go obviusly because of the type error&#8230;</p>
<p>any help is appreciated,<br />
mario romero</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sho</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-2555</link>
		<dc:creator>sho</dc:creator>
		<pubDate>Mon, 14 Aug 2006 17:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-2555</guid>
		<description>That sounds fine, Dreamer. Thanks for asking.</description>
		<content:encoded><![CDATA[<p>That sounds fine, Dreamer. Thanks for asking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dreamer</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-2533</link>
		<dc:creator>Dreamer</dc:creator>
		<pubDate>Sun, 13 Aug 2006 05:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-2533</guid>
		<description>Hi,Sho:

I am a chinese.I want to translate your posts into Chinese and publish on the web. I want more people in China to know and learn Flex. It is cool, isn&#039;t it? Of course, all the translations will link to the original posts in your blog.

Thanks very much</description>
		<content:encoded><![CDATA[<p>Hi,Sho:</p>
<p>I am a chinese.I want to translate your posts into Chinese and publish on the web. I want more people in China to know and learn Flex. It is cool, isn&#8217;t it? Of course, all the translations will link to the original posts in your blog.</p>
<p>Thanks very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sho</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-2480</link>
		<dc:creator>sho</dc:creator>
		<pubDate>Mon, 07 Aug 2006 18:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-2480</guid>
		<description>Sure. Feel free to translate into Russian. Thanks for asking.</description>
		<content:encoded><![CDATA[<p>Sure. Feel free to translate into Russian. Thanks for asking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rostislav Siryk</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-2479</link>
		<dc:creator>Rostislav Siryk</dc:creator>
		<pubDate>Mon, 07 Aug 2006 17:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-2479</guid>
		<description>Sho, thank you for very useful Flex insider info. Actually, I&#039;ve been waiting until you finish this interesting cycle of posts to start my translating them into Russian as solid article about relationship between MXML and AS3 (if you don&#039;t mind). Of course, with links to corresponding posts on your blog.</description>
		<content:encoded><![CDATA[<p>Sho, thank you for very useful Flex insider info. Actually, I&#8217;ve been waiting until you finish this interesting cycle of posts to start my translating them into Russian as solid article about relationship between MXML and AS3 (if you don&#8217;t mind). Of course, with links to corresponding posts on your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sho</title>
		<link>http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/comment-page-1/#comment-2478</link>
		<dc:creator>sho</dc:creator>
		<pubDate>Mon, 07 Aug 2006 15:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2006/08/04/flex-tags-and-as-class-the-exceptions/#comment-2478</guid>
		<description>Rostislav: I think you have gotten it right. However, you can add DisplayObjects to MXML objects if you are very careful by doing myHBox.rawchildren.addChild(sprite).


Sven: We&#039;ve heard this a few times before, and we&#039;re considering how hard it would be to allow this. Thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>Rostislav: I think you have gotten it right. However, you can add DisplayObjects to MXML objects if you are very careful by doing myHBox.rawchildren.addChild(sprite).</p>
<p>Sven: We&#8217;ve heard this a few times before, and we&#8217;re considering how hard it would be to allow this. Thanks for the feedback.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

