HI!!
just check this site…the menu is too good…its kind of eleastic property
manually its possible, how do i make it through action Script
I just want ur help cos iam not good at Action script
the site is
thankx
:thumb:
HI!!
just check this site…the menu is too good…its kind of eleastic property
manually its possible, how do i make it through action Script
I just want ur help cos iam not good at Action script
the site is
thankx
:thumb:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=8673
^point in right direction… (of course xscale and yscale should be changed to _x and _y, or just remove all _x traces since you won’t be moving that way)
no not working…
can u explain me a bit further
THANKX A MILLION
Put this on a frame…
[AS]
//elastic function (created by Senocular)
MovieClip.prototype.elasticMove = function(targt, accel, friction) {
this.speed += (targt - this._y) * accel;
this.speed *= friction;
this._y += this.speed;
}
//set the original position, you can do this using the first menu drop down
//since all of them should be at the same position starting off
var origY = menuItem1InstanceName._y
//target one of your menu item clips and add an onEnterFrame handler
menuItem1InstanceName.onEnterFrame = function() {
//use hitTest to detect if mouse is over clip
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
//spring to new position
this.elasticMove(positionToSpringTo, .5, .6);
} else {
//else spring back to the original location when mouse is off
this.elasticMovie(origY, .5, .6);
}
};[/AS]
Now create your drop menu frame and convert it into a movie clip symbol. I recommend setting your registration point in the top center for this, it would make for easier calculations for positioning. After that give it an instance name then double click your symbol and add your menu items inside (buttons or whatever)
:: Copyright KIRUPA 2024 //--