slinky
April 14th, 2003, 06:14 PM
MyPic1_mc.onEnterFrame = function(){
var speed = 2;
this._height+=(_root.Pic1H-this._height)/speed;
this._width+=(_root.Pic1W-this._width)/speed;
}
Hi, Hope someone can help me with the code i need?!
I have six portfolio images that i need to animate using actionscript. I want the images to enlarge as they are hovered over and the other images that are not hovered over i want to get smaller. I found this code - but i can't get it working - i am doing something - wrong does anyone have any ideas?? Help would be really appreciated!
MyPic1.onMouseOver=function(){
_root.Pic1H=150;
_root.Pic1W=150;
_root.Pic2H=50;
_root.Pic2W=50;
_root.Pic3H=50;
_root.Pic3W=50;
_root.Pic4H=50;
_root.Pic4W=50;
_root.Pic5H=50;
_root.Pic5W=50;
_root.Pic6H=50;
_root.Pic6W=50;
}
var speed = 2;
this._height+=(_root.Pic1H-this._height)/speed;
this._width+=(_root.Pic1W-this._width)/speed;
}
Hi, Hope someone can help me with the code i need?!
I have six portfolio images that i need to animate using actionscript. I want the images to enlarge as they are hovered over and the other images that are not hovered over i want to get smaller. I found this code - but i can't get it working - i am doing something - wrong does anyone have any ideas?? Help would be really appreciated!
MyPic1.onMouseOver=function(){
_root.Pic1H=150;
_root.Pic1W=150;
_root.Pic2H=50;
_root.Pic2W=50;
_root.Pic3H=50;
_root.Pic3W=50;
_root.Pic4H=50;
_root.Pic4W=50;
_root.Pic5H=50;
_root.Pic5W=50;
_root.Pic6H=50;
_root.Pic6W=50;
}