Menu transistions?

hello kirupaforum,

I’m new to the forum!

I’ve seen the site below and I think the transistions are fantasticmerkdesign.com

How has he done it so that the box expands and contracts depending on which buttons pressed…

Does anyone know how to do it or where I can find a tutorial??

pixemisfit

Try someting with the following scrip:

Attach this code to an mc called mc_square:

[AS]onClipEvent (load){
speed = 4 ;
width = 600;
height= 400;
xpos = 50;
ypos = 70;
}
onClipEvent (enterFrame) {
w= width - _width;
_width += w/speed;
h = height - _height;
_height += h/speed
x = xpos - _x;
_x += x/speed;
y = ypos - _y;
_y += y/speed;
}
[/AS]

On a button you can attach:
[AS]
on (release) {

            _root.mc_square.xpos=150;
_root.mc_square.ypos=150;
_root.mc_square.height=400;
_root.mc_square.width=300;

}[/AS]

To make the calculations for the xpos and ypos it’s good to place the registration point of mc_square in the left top corner.

I hope it works;)

I think he might of used an array of sizes (dimension width and height). And told the box to reajust itself to the right dimension according to the button that was pressed.

He may of used deceleration in his transition to create the illusion of morphing.

Sorry I don’t know any tutorial.