PDA

View Full Version : component skin with a mask layer, scaling problem


ryryguy
04-24-2008, 06:43 PM
Hi,

My artist is fond of making clips with a masked layer where the animation in the mask layer is larger than the mask.

I'm having problems using these effectively as component skins, because the component logic wants to scale the skin so that it is the same size as the component. To do this it's basically taking the height and width of the skin and scaling it so it matches the size of the component.

The problem with these masked clips is that the total height/width of the skin is apparently determined by that big masked layer, not the actual visible size of the mask. It seems weird because the actual symbol's height and width matches the visible size, not the size including the masked layer. But for whatever reason, the component logic uses that "hidden" size for its scaling, with the result that the skin shows up visibly smaller than I want it to be.

This may be hard to understand from the written description, but I've attached a flash file that demonstrates what I'm talking about. The hidden masked layer is roughly twice the width of the mask. When used as a progress bar skin, it only fills up about half of the progress bar track when bar is full. (Enter 10 in the text box for a full bar.)

Anyone know a way to work around this problem?