If you get back the inner Panel's alpha, it will be 1, it isn't getting
overridden. But the alpha of a parent determines a transparency not only
for it but for all of its children; this is the Player handles many
properties in a hierarchy of DisplayObjects.

If you had alpha="0.5" on both, the inner Panel would effectively be at
alpha="0.25". The player would first render the graphics of the inner
Panel into the outer Panel at half transparency, making the colors look
washed out, and then render the combined graphics to the outer Panel's
parent, again at half transparency, making the inner Panel look even
more washed out.

It's similar to how visible works. Suppose the inner Panel had
visible="true" but the outer panel had visible="false". You wouldn't see
either one.

And of course, if you specify x="100" on both, the inner Panel is at x =
200 because coordinates are parent-relative. Basically, alphas are
parent-relative too.

- Gordon

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Lapasa
Sent: Wednesday, April 19, 2006 7:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [F2B2] Newbie question about styling a nested
panel

I have an outer panel and an inner panel.

<mx:Panel id="outer" alpha ="0.2">
<mx:Panel id="inner" alpha ="1"/>
</mx:Panel>

The problem is that the inner Panel's styling properties are being
overrided
by the outer most parent eventhough I explicitly define them. Am I wrong
in
thinking inner components in-line should take precendence over itself?

Thx




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to