This content has been marked as final. Show 4 replies
This is possible.... U can also use the Existing component or Your own component.
If you wish to use existing one U have to use setSize to set the size of the component. U cna also get the text format of the button label, create one new dynamic text with Autosize, and set text format of that text using Buttons label text format and provide the Label String to that. using that u can calculate the Exact with. using that with u can set size of the Button.
The problem is that I want to create a custom skin for the button
By doing that, if the edges are rounded , and the button gets streched, the edges get deformed
Like in the image example I posted the link to
I want the grey part to expand, but the blue edges to stay the same.
For this you have to split the Button into Three Parts (It would be better to split it into 9 parts).
When you assign the label, use label_txt.autosize = "as u wish"
and scale only the Centre part and and allign other two parts accordin to that length.
Yes, i figured this would be a way to do it.
I remember that in flash MX, after you import a component to your library, you get all the assets with it, and that the button assets can be edited each part separately
Do you know how I can get those MX components in flash 8?