1 Reply Latest reply on Jan 27, 2009 1:28 PM by -Hob

    Add shadow to Panel Title

    celestethecat
      Can some one explain how to add a show to the Panel Title?

      Thanks,
        • 1. Re: Add shadow to Panel Title
          -Hob Level 1
          You'll need to use the mx_internal namespace to do it. It's relatively easy to do. Just make sure the namespace is imported, and you can use it:

          import mx.core.mx_internal

          class SomeClass extends Canvas{
          override protected function createChildren():void{
          super.createChildren();
          var panel:Panel = new Panel();
          panel.addEventListener(FlexEvent.CREATION_COMPLETE, onPanelCreationComplete, false, 0, true)
          this.addChild(panel);
          }
          protected function onPanelCreationComplete(event:FlexEvent):void
          {
          var panel:Panel = event.currentTarget as Panel;
          panel.mx_internal::getTitleTextField().filters = [new DropShadowFilter()]
          }
          }