This content has been marked as final.
Show 4 replies
-
1. Re: Resizeable button according to label length
Devendran Oct 5, 2006 5:37 AM (in response to Lelikg)Hi,
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.
-
2. Re: Resizeable button according to label length
Lelikg Oct 5, 2006 6:10 AM (in response to Devendran)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. -
3. Re: Resizeable button according to label length
Devendran Oct 5, 2006 7:25 AM (in response to Lelikg)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. -
4. Re: Resizeable button according to label length
Lelikg Oct 5, 2006 7:50 AM (in response to Devendran)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?