Try setting the contentBackgroundColor and contentBackgroundAlpha styles 
instead in Flex 4:

<mx:TextArea id="txtArea"
        text="The quick brown fox jumps over the lazy dog"
        contentBackgroundAlpha="0.1"
        contentBackgroundColor="blue"
        horizontalCenter="0" verticalCenter="0" />


Peter


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Slackware
Sent: Tuesday, September 29, 2009 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Inconsistencies between Halo/Spark mixed controls?



For example, using a mx:TextArea in a project using FLEX4. background in
TextArea should be transparent (backgroundAlpha="0"), but is not
working.
Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application backgroundColor="#11FFCC"
xmlns:fx="http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
minHeight="768">
<mx:TextArea width="300" height="500" htmlText="sfda dasd asdas
ada sdas d asd" backgroundAlpha="0" />
</s:Application>

2)Same example using FLEX3.04. Works as expected.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" minWidth="1024" minHeight="768">
<mx:TextArea htmlText="&lt;b&gt;text&lt;/b&gt;" x="186" y="207"
backgroundAlpha="0" height="181" width="459"/>

</mx:Application>

Any idea?

Reply via email to