# AAAARGH - need tween and ease onRollOver

**URL:** <https://forum.kirupa.com/t/aaaargh-need-tween-and-ease-onrollover/187205>\
**Category:** flash\
**Created:** [April 27, 2006, 12:48pm UTC](https://forum.kirupa.com/t/aaaargh-need-tween-and-ease-onrollover/187205 "2006-04-27T12:48:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnnyboy/32/1973_2.png) [@johnnyboy](https://forum.kirupa.com/u/johnnyboy)\
**Post date:** [April 27, 2006, 12:48pm UTC](https://forum.kirupa.com/t/aaaargh-need-tween-and-ease-onrollover/187205/1 "2006-04-27T12:48:32Z")

</div>

Grey hair appearing on my head…

I have tried to make a simple 3 block navigation --\> [http://www.plusidentity.dk/TEST/3blocks.swf](http://www.plusidentity.dk/TEST/3blocks.swf)

.fla here (MX2004) [http://www.plusidentity.dk/TEST/3blocks.fla](http://www.plusidentity.dk/TEST/3blocks.fla)

Now the blocks should expand with ease when U roll the mouse over, but my brain is temporary fried… can’t figure it out.

my AS looks like this… very simple, but crappy ☹

[AS]  
stop();  
//  
main\_mc.top\_mc.onRollOver = function() {  
[//this.swapDepths](https://this.swapDepths)(highest);  
//highest = this;  
//  
this.\_y = main\_mc.\_y;  
this.\_height = 200;  
main\_mc.middle\_mc.\_y = main\_mc.\_y+200;  
main\_mc.middle\_mc.\_height = 50;  
main\_mc.bottom\_mc.\_y = main\_mc.\_y+250;  
main\_mc.bottom\_mc.\_height = 50;  
};  
main\_mc.middle\_mc.onRollOver = function() {  
[//this.swapDepths](https://this.swapDepths)(highest);  
//highest = this;  
//  
this.\_y = main\_mc.\_y+50;  
this.\_height = 200;  
main\_mc.top\_mc.\_y = main\_mc.\_y;  
main\_mc.top\_mc.\_height = 50;  
main\_mc.bottom\_mc.\_y = main\_mc.\_y+250;  
main\_mc.bottom\_mc.\_height = 50;  
};  
main\_mc.bottom\_mc.onRollOver = function() {  
[//this.swapDepths](https://this.swapDepths)(highest);  
//highest = this;  
//  
this.\_y = main\_mc.\_y+100;  
this.\_height = 200;  
main\_mc.top\_mc.\_y = main\_mc.\_y;  
main\_mc.top\_mc.\_height = 50;  
main\_mc.middle\_mc.\_y = main\_mc.\_y+50;  
main\_mc.middle\_mc.\_height = 50;  
};  
//  
function reset(target) {  
target.onRollOut = function() {  
main\_mc.top\_mc.\_y = main\_mc.\_y;  
main\_mc.top\_mc.\_height = 100;  
main\_mc.middle\_mc.\_y = main\_mc.\_y+100;  
main\_mc.middle\_mc.\_height = 100;  
main\_mc.bottom\_mc.\_y = main\_mc.\_y+200;  
main\_mc.bottom\_mc.\_height = 100;  
};  
}  
reset(main\_mc.top\_mc);  
reset(main\_mc.middle\_mc);  
reset(main\_mc.bottom\_mc);  
//

[/AS]

Really could use a hand here… thanx

/JBOY
