Stephen Koch

Senior Developer at Big Spaceship 
« Back to blog

Empty MovieClips and their size

I have an empty movieclip on the stage at 25, 23.
I have another clip that contains 3 clips at 0, 0.
These 3 nested clips all have an empty 1st frame. Their width and height properties are all 1, 1.
(We all know that an empty clip defaults to 1px x 1px but should that be 0px x 0px? It's EMPTY.)
If I select either of these clips on the stage, I get the proper width and height as reported by Flash.

BUT!

If I select both of these movieclips and look at their combined width and height?
I get the following:

So what Flash thinks is that the combined width of these clips is 6,710,861 pixels and the combined height of these clips is 6,710,863 pixels?

That's a lot of pixels. And why aren't they they same? I suspect that it's adding 2 pixels for the y position.
(confirmed)

STRANGE DAYS.

Loading mentions Retweet

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter