I have used Spark panel to display the object inside a container. The panel and the inside elements are created dynamically. (using ActionScript). I need to remove the title bar of the panel in actionscript. When I tried to remove that, I am unable to hide the same.
Tried below ways.
-
Used style (classname) and set
headerheight = 0. -
Override the panel component and used the property
this.titleBar.visible = false.
But not able to hide the titlebar.
I have used Panel spark component and Flash Builder 4.5 for development.
If there is any other way to achieve this, please let me know.
Your best bet is to create a custom skin and move the title bar pieces from the skin. It was very quick to put together a sample.
This is your custom skin; created as a copy of the PanelSkin with visual elements commented out.
And this is the app:
The first panel will display the original skin; the second panel displays the custom skin; with no title bar.