Skip to main content
Inspiring
April 24, 2008
Question

scaling problem using masked layer in component skin

  • April 24, 2008
  • 1 reply
  • 328 views
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, so I've made a demo FLA. 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.)

(I posted this demo FLA on a different forum that allows file attachments, so you can grab it from there: Masking Skin Demo FLA)

Anyone know a way to work around this problem?
This topic has been closed for replies.

1 reply

RyanORoAuthor
Inspiring
April 28, 2008
bump (just this once)