How can I programatically determine what the background color of my portlet will be before it’s rendered? (ie in the init() or doview() functions).
I want to make an embedded flash movie look transparent-ish by having it’s background color (which I can set programatically) match the background color of the portlet… but the portlet’s background color could be anything depending on the overall portal theme or by the color manually chosen by the user in the “look and feel” setup.
Is this possible?
You can’t really, as that would be set, probably, in a stylesheet defined elsewhere. You might be able to adjust the alpha channel of the flash movie so that its transparent though.