PDA

View Full Version : Flex RichTextEditor's container



fluturel
October 5th, 2008, 04:57 AM
I have a RichTextEditor and you know ... there is a TextArea, some buttons combobox..etc and all these are in a window. Something like a TitleWindow with alpha. And i want to get rid of it. I want a TextEditor class where i can't see that window. All i need are those components from the window.

How can i change the alpha of the window? i looked in help at RichTextEditor class and i found : "The following table describes the subcontrols that you can access and modify" this table. And it since the window is not there ... how can i access it?

fluturel
October 5th, 2008, 11:20 AM
i think i should change the modalTransparencyColor property and set it to 0 to make the alpha 0, to make it invisible. So i tried to say:


textEditor.setStyle("modalTransparency", 0);


But nothing was changed :| What did i do wrong? why can't i change the transparency?

grozavpaul
October 5th, 2008, 11:46 AM
try this:


textEditor.setStyle("borderStyle", "none");
textEditor.setStyle("backgroundAlpha", 0);