Hey everyone!
How to repeat the actions of this button?
http://www.constructiondurable.com/indexflash.htm
Notice the tabs on the left hand side. Go ahead and mouse over them.
Any info would be great!
Thanks!
jjmancini
Hey everyone!
How to repeat the actions of this button?
http://www.constructiondurable.com/indexflash.htm
Notice the tabs on the left hand side. Go ahead and mouse over them.
Any info would be great!
Thanks!
jjmancini
mc is the movieclip on stage. It’s pretty self explanatory otherwise. you can use the easeTo method to make your own tab movement, or use the wrapper easeInOut I provided. drag in is the drag that will effect the clip on rollover, drag out is the drag that will effect the clip on roll out. xdist and ydist are the _x and _y offset for the tab movement. You don’t have to use the y value if you want to duplicate the effect on the page.
MovieClip.prototype.easeTo = function(drag, distx, disty){
var xtar = this._x + distx;
var ytar = this._y + disty;
this.onEnterFrame = function(){
this._y+=(ytar - this._y)/drag;
this._x+=(xtar - this._x)/drag;
}
}
MovieClip.prototype.easeInOut = function(dragin, dragout, xdist, ydist){
this.onRollOver=function(){
this.easeTo(dragin, -xdist, ydist);
}
this.onRollOut = function(){
this.easeTo(dragout, xdist, -ydist);
}
}
mc.easeInOut(8, 4, 20, 0);
it’s pretty rough, so you might need to work on it a bit.
Awesome! That is perfect Thanks so much APDesign!
This will work perfect!
No problem, just make sure you understand how it works
which one(button) do you mean?the one that says ‘envover’ and ‘imprimer’?i mouse over it and nothing happens…
:: Copyright KIRUPA 2024 //--