View Full Version : prevent child from scaling
ghostmonk
10-02-2007, 10:10 PM
I want to add a child to a movieclip that I am scaling.
However, I would like to prevent that child from scaling when the parent scales.
I know there is a way to do it, but I can't find the solution in my notes.
Anyone have any ideas?
rhamej
10-03-2007, 10:49 AM
Can't be done. But if you are talking about the scale 9 thingy where it won't scale the border, then that is in the pop up box when you convert it to a mc.
BradLee
10-03-2007, 10:59 AM
You could always just adjust the scale of the child object to make it look like it hasn't changed scale.
Something like this...
child.scaleX = 100/parent.scaleX;
child.scaleY = 100/parent.scaleY;
Or something like that...
People generally don't like it when you post the same question multiple times in different sections of this forum. It's called cross-posting and it's frowned upon heavily.
ghostmonk
10-09-2007, 02:51 PM
thanks for the solution and the policing, constable Brad
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.