Q:

AS3 9 slice scaling

i'm making window component on Flash Professional CS4 and now i have 1 problem.  At the top  of window is dynamic textfield for title.  When i scale window text is also scaling.  So is there any way to make textfield fixed in same position and same size? 
P.S. 9-slice scaling is enabled. 

A:

You should separate your window's background from the rest of it:
window > title
       > background

Your background would be the only clip to be 9-sliced and you will scale your window by doing:
window.getChildByName("background").scaleX = newScaleX;
window.getChildByName("background").scaleY = newScaleY;

