canvas - Flex 3 - Custom tab navigator -
I'm trying to create a custom tab navigator to look like.
In addition, when there is a rollover, the borders of the arrow should be in blue (as the label in the current tab).
For that purpose, I have a custom component: a hbox that contains a label and a canvas with 3 images (depending on the current state of the arrow is to be changed for the tip). Then, I thought of overlapping the components to get the blue highlight color (ex: arrow arrow 3 arrow arrow arrow 4. In the Button 3 the image of the arrow tip will be transparent outside the arrow, so that we can see that the following button Black color).
Now I am trying to replace the components inside the canvas ... but I can not. After the creation is complete, I provide the label text and I was computing the coordinates of the component but it does not take into account the width of the label ... -_- '
Any thoughts?
Thank you regards,
BS_C3
read on . You must be updated; Positioning and shaping your child's components in the UpdateDisplayList () method; Not in a composition. Full handler
You should either label the text in making a commitment or label when you know what it is.
If you want to share some code, we will be able to improve the exact problem. If you run the code like this:
myLabel.text = 'Blabblabblahah'; Trace (myLabel.width);
I hope that the width has not been changed to reflect the new text because myLabel has not yet run through its component lifecycle.
Comments
Post a Comment