title: Flex 4 Spark component Panel - Hide Title Bar
body: <p>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.</p>
  
  <p>Tried below ways.</p>
  
  <ol>
  <li><p>Used style (classname) and set <code>headerheight = 0</code>.</p></li>
  <li><p>Override the panel component and used the property <code>this.titleBar.visible = false</code>.</p></li>
  </ol>
  
  <p>But not able to hide the titlebar.</p>
  
  <p>I have used Panel spark component and Flash Builder 4.5 for development.</p>
  
  <p>If there is any other way to achieve this, please let me know.</p>