# 2 or More MovieClip - Same Rollover RollOut

**URL:** https://forum.kirupa.com/t/2-or-more-movieclip-same-rollover-rollout/271506
**Category:** flash
**Created:** [September 23, 2008, 9:25pm UTC](https://forum.kirupa.com/t/2-or-more-movieclip-same-rollover-rollout/271506 "2008-09-23T21:25:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lickybuay](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@lickybuay](https://forum.kirupa.com/u/lickybuay)
#### Post date: [September 23, 2008, 9:25pm UTC](https://forum.kirupa.com/t/2-or-more-movieclip-same-rollover-rollout/271506/1 "2008-09-23T21:25:37Z")

</div>

Hi people, i have a question in Actionscript 2.0. it is a way to do something like this:

```auto

mc_menu.btn_home.onRollOver, mc_menu.btn_contact.onRollOver = function () {
    trace ("hi world");
}

```

i want to reduce my code lines, i hope you can help me.

Thanks people!
