No scaling

hi.

i’ve got a placeholder movie clip that resizes based on the dimensions of the external movie being loaded in. i’ve also got a mask which does the same thing.

but…i have a navigation movie clip inside this placeholder because i want it to always hang out in the lower left corner of the placeholder as it resizes. but i don’t want it to resize itself.

how do i go about this, please?

thanks. fumeng.

Can you post your fla?

scotty(-:

open up the shell.fla.

the clip i’m talking about is the buttons located in <container>.

i attached the external files just for context.

thanks for taking a look. fumeng.

If I am reading this correctly you are saying that you want your navigation buttons to sit on top of the MC that is resizing itself, you want it to move to the corner with the resize, but you dont want it to resize.

You are resizing an instance name of a MC, right? Well just dont resize the MC of the buttons. Keep them on a separate layer. But, you can still move the buttons based on the endTarget of a point in the resize layer. This point could be a percentage value of X and Y compared to the overall new size of the MC.

hmmm…

my placeholder tweens to its new size based on the dimensions of the external movie and i want my navigation to do the same. it starts on the lower left corner and i always want it to stay there.

the navigation movie clip is within the placeholder so it does just that – tweens at the same pace and rate. it’s fluid.

you see, i’m resizing the _width and _height of the placeholder so naturally everything within it will also change its width and height, right? how can i stop one item within that placeholder from resizing?

DChihorn has a point:)
Get your navigation out of the container mc. Edit your navigation mc so, that topleft is 0/0.
Then add the 2 commented lines to your script
[AS] // set the properties for the mask clip
// -----------------------------------------------------------------------------------------------------------
container._width = mask._width += (finalW-mask._width)/3;
container._height = mask._height += (finalH-mask._height)/3;
navigation._x = Stage.width/2-mask._width/2;//add to script
navigation._y = Stage.height/2+mask._height/2+10;//add to script[/AS]

scotty(-:

Stage.width, well well, never seen that before, I learn something new every day, thanks scotty

well, it is tweening but not exactly in the way that i want it to. for example, to start i position the navigation movie clip just under the placeholder – on the lower left corner.

now, as soon as i click a button it doesn’t tween following how the placeholder tweens. instead it jumps to the center and stays far from the placeholder.

how can i get it to tween according to the way the placeholder does?

thanks. fumeng.