[FONT=Arial][COLOR=silver]I am trying to make a GUI component which can be scaled by the user. In this case, the component is a frame for a scaleable HP/Mana bar for a game.[/COLOR][/FONT]
[COLOR=silver][/COLOR]
[FONT=Verdana][COLOR=silver]The bar is split into three parts: left, right, and middle.[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]The [FONT=Verdana]left[/FONT] part is supposed to stay in place // works[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]The**[FONT=Verdana] right[/FONT]** part can be dragged horizontally // works[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]the [FONT=Verdana]middle[/FONT] part spans the distance between the other two. // problems![/COLOR][/FONT]
[COLOR=silver][/COLOR]
[FONT=Arial][COLOR=silver]The actionScript is on the MCs.[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]The dragging works fine with the right one, but the [FONT=Verdana]middle part has two problems[/FONT]:[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]1) it [FONT=Verdana]does not scale perfectly[/FONT], leaving spaces. In this case, it has to be perfect or it will look broken.[/COLOR][/FONT]
[FONT=Arial][COLOR=silver]2) [FONT=Verdana]the lines scale in thickness[/FONT], which is obviously not what is intended.[/COLOR][/FONT]
[COLOR=silver][/COLOR]
[FONT=Arial][COLOR=silver]I have included the file, if you take a look you’ll see what I mean right away. Just try dragging the right end of the bar. Thanks in advance![/COLOR][/FONT]
[FONT=Arial][COLOR=silver]- Aesir[/COLOR][/FONT]
[FONT=Arial][COLOR=red]EDIT: This can be fixed with 9-Slice Scaling[/COLOR][/FONT]