<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Hiding nested controls in a Flex RichTextEditor control (remix)</title>
	<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 07:53:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Paul</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-11895</link>
		<author>Paul</author>
		<pubDate>Fri, 11 Apr 2008 23:22:17 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-11895</guid>
		<description>while not quite what i was looking for this was lots of help in adding a button to the toolbar

var but:Button = new Button();
but.label = "Post News";
but.addEventListener("click",action_post_news);
rte.toolbar.addChild(but);

.. and after a bit of experimenting (still learning flex and as3) i found i could add before the TextArea with...

news_title = new TextInput(); // doesnt start with Var as its globally defined so i can access its text
news_title.percentWidth = 100;
var lab1:Label = new Label();
lab1.text = "Title";
var hb:HBox = new HBox();
hb.percentWidth = 100;
hb.addChild(lab1);
hb.addChild(news_title);
rte.addChildAt(hb, 0);</description>
		<content:encoded><![CDATA[<p>while not quite what i was looking for this was lots of help in adding a button to the toolbar</p>
<p>var but:Button = new Button();<br />
but.label = &#8220;Post News&#8221;;<br />
but.addEventListener(&#8221;click&#8221;,action_post_news);<br />
rte.toolbar.addChild(but);</p>
<p>.. and after a bit of experimenting (still learning flex and as3) i found i could add before the TextArea with&#8230;</p>
<p>news_title = new TextInput(); // doesnt start with Var as its globally defined so i can access its text<br />
news_title.percentWidth = 100;<br />
var lab1:Label = new Label();<br />
lab1.text = &#8220;Title&#8221;;<br />
var hb:HBox = new HBox();<br />
hb.percentWidth = 100;<br />
hb.addChild(lab1);<br />
hb.addChild(news_title);<br />
rte.addChildAt(hb, 0);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webdev.andrei</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-9176</link>
		<author>webdev.andrei</author>
		<pubDate>Mon, 31 Mar 2008 08:45:15 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-9176</guid>
		<description>What I wanted to accomplish is to make the background invisible either make it transparent or changing its color to match the background (white). I did the following:
&lt;code&gt;
rich.setStyle("borderThickness",1);
rich.setStyle("borderAlpha",1);
rich.setStyle("borderColor",0xFFFFFF);
rich.setStyle("dropShadowEnabled",false);
rich.setStyle("headerHeight",0);
rich.setStyle("backgroundColor",0xFFFFFF);
&lt;/code&gt;
I noticed that RTE needs to have the border defined to be able to modify the default background. So after setting the border you may be able to set the alpha to transparent.</description>
		<content:encoded><![CDATA[<p>What I wanted to accomplish is to make the background invisible either make it transparent or changing its color to match the background (white). I did the following:<br />
<code><br />
rich.setStyle("borderThickness",1);<br />
rich.setStyle("borderAlpha",1);<br />
rich.setStyle("borderColor",0xFFFFFF);<br />
rich.setStyle("dropShadowEnabled",false);<br />
rich.setStyle("headerHeight",0);<br />
rich.setStyle("backgroundColor",0xFFFFFF);<br />
</code><br />
I noticed that RTE needs to have the border defined to be able to modify the default background. So after setting the border you may be able to set the alpha to transparent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-4777</link>
		<author>Mark</author>
		<pubDate>Wed, 05 Dec 2007 15:02:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-4777</guid>
		<description>Thanks for this post, it's quite topical and removing the VRules was something I was struggling with.

Another aspect of the RichTextEditor I'm having difficulty editing is the ControlBar that the toolbar and controls are contained within. I can't find a good way to target it and I want to remove the background from this component. Any thoughts on how I could tackle that?</description>
		<content:encoded><![CDATA[<p>Thanks for this post, it&#8217;s quite topical and removing the VRules was something I was struggling with.</p>
<p>Another aspect of the RichTextEditor I&#8217;m having difficulty editing is the ControlBar that the toolbar and controls are contained within. I can&#8217;t find a good way to target it and I want to remove the background from this component. Any thoughts on how I could tackle that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
