Skip to main content
Known Participant
November 5, 2010
Question

How do I stop a tiled movieClip from scaling? I want my movie clip to resize but not the Fill.

  • November 5, 2010
  • 1 reply
  • 609 views

I have a movieClip in my metronome you can see here: http://www.fuzzymonkeytabs.com/metronome/metronome.html

When I resize the metronome the tiled movie clip I use for the decorative borders resizes as well and I would like it to tile more images when it is resized.  Anyone know how I might do that? I would like more tiles and I want them to be their original size.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 5, 2010

what are you calling your "metronome"?  the entire swf?  some graphic in your swf?

and what are you resizing?  your browser page?  something on-stage?

Known Participant
November 9, 2010

Forgive me, I'm not to good with the English language, I'm american.  When I said my metronome I meant my swf file.  I want to be able to have my swf fill the browser window.  When I examine my swf file in a web browser it enlarges to fill the entire browser window, which is fine.  But when this swf file expands, the bitmap fill I used on one particular shape also expands. I think it would be the bees knees if I could just get that tiled shape to add more tiles when the swf file expands. This way the fill would still look real crisp.    As it is now, when my swf file scales up so does the image that is used for my shape fill.  This looks bad, and I imagined I would be able to make the swf file add more of that fill image but I can't find anything that'll work online.  There are lots of MX tutorials, and some more recent tutorials that don't cover this problem I am having.  Thanks for thinking about it.

Rui Silva
Inspiring
November 9, 2010

Hi Steven,

The only way to control how your swf is resized within the browser window is to set the stage's scaleMode to noScale and then listening for the resize event on the stage and do whatever you need to do to make sure your swf resizes the way you want it to while maintaining the bitmap image's size.

The default scaling behavior will simply scale everything on the swf to maintain relative porportions between all elements.

Hope this gives you some pointer in the right direction. If you need a more detailed explanation, let me know.

Rui