This content has been marked as final. Show 3 replies
If you want to be able to add arbitrary UI bits on top of a Panel, my suggestion is to put the Panel inside a Canvas and then lay stuff on top of the Panel using the Canvas.
The source for the Panel should be in the files you installed. I don't remember where they are off-hand, but they are there so you can see how we did it and copy it. Look for flexstore.mxml, the other Panels are mxml files in the same directory.
I'm trying to do something similar and I'm looking at the code from Flexstore to work out what is going on.
The problem I'm having is I keep getting:
"Access of undefined property titleBar"
"Access of undefined property statusTextField"
"Access of undefined property titelTextField"
Is there something obvious that I'm missing? I'm really new to Flex and it could be something obvious.
I wondered if it was something to do with the changes made for the final release, but when I downloaded the Flexstore source I got it to work locally.
Here is the code I'm using that is sat inside a panel component:
private var titleButtons:CatalogTitleButtons;
override protected function createChildren():void
titleButtons = new CatalogTitleButtons();
override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
titleButtons.width = unscaledWidth / 2;
titleButtons.height = titleButtons.measuredHeight;
titleButtons.move(statusTextField.x - titleButtons.width, titleTextField.y);
Any advice would be great.