I have a custom component named RemovableText, it looks like this <mx:HBox> <buttons:RemoveButton /> <mx:Text /> </mx:HBox>
The HBox is the root of the RemovableText. When I create and add a removable text, I am doing this: var text:RemovableText = new RemovableText(); text.name = 'removableText'; text.addEventListener( GHEvent.REMOVE_BUTTON_CLICKED, removeButtonClickHandler ); // Parsestyles is my function that gets me the textformat for the current block var tf:TextFormat = parseStyles(tag); text.setStyle( 'fontFamily', tf.font ); text.setStyle( 'fontSize', tf.size ); ... etc ... ////////////////////////////// My question is this, If I set styles on the root (RemovableText), will all of the styles be set for the <mx:Text /> child of the Component? Is this a safe way to do it? Thanks!