PDA

View Full Version : addChild improperly scaling?



substance
December 8th, 2008, 02:42 PM
So I have a 'frame' that has a height of 400 and a 'picture' with a height of 400 as well.

For some reason when I add the picture as a child of frame some weird scaling happens where it looks like it's shrinking the frame yet when i trace it's height it's something like 2000 height.

Any idea what's going on?

Groady
December 8th, 2008, 07:31 PM
You need to explain what you mean by 'frame'. There is no way to understand what is happening without more information.

substance
December 9th, 2008, 01:33 PM
Oh, hah, I see how 'frame' could be confusing. I didnt litterally mean a frame on the timeline.

Both 'frame' and 'picture' are moveclips. 'frame' is simply a 400x400 square with a stroke , 'picture' is a movieclip with a bitmap image (dynamically loaded) inside with the same size.

They both have a height of 400 before i do "frame.addChild(picture)" but once it's done, strange scaling occurs and messes up everything.

I'll try to make a simple test.fla