hi there… i want to have a nice resize effect with 3 buttons(bt1,bt2,bt3)…
the clip i want to resize is"main"…up to here there is no problems…but when i press the first button the clip resizes but i want the button which are at the top of this to keep stick at the clip and follow that clip at the position where the box resizes…i have used this code up to resize it’s o.k but i don’t know how to keep stick the buttons…hope you will help me…
var endWidth = main._width;
var endHeight = main._height;
var speed = 4;
function resizeTo(w, h) {
endWidth = w;
endHeight = h;
}
main.onEnterFrame = function() {
this._width += (endWidth-this._width)/speed;
this._height += (endHeight-this._height)/speed;
};
bt1.onPress = function() {
resizeTo(200, 100);
};
bt2.onPress = function() {
resizeTo(500, 300);
};
bt3.onPress = function() {
resizeTo(200, 300);
};
i attached the fla to see what i mean…it is saved in flash mx