# Assign Actionscript to attached movieclips

**URL:** https://forum.kirupa.com/t/assign-actionscript-to-attached-movieclips/198076
**Category:** flash
**Created:** [August 22, 2006, 8:15am UTC](https://forum.kirupa.com/t/assign-actionscript-to-attached-movieclips/198076 "2006-08-22T08:15:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![icanpee4hours](https://avatars.discourse-cdn.com/v4/letter/i/54ee81/32.png) [@icanpee4hours](https://forum.kirupa.com/u/icanpee4hours)
#### Post date: [August 22, 2006, 8:15am UTC](https://forum.kirupa.com/t/assign-actionscript-to-attached-movieclips/198076/1 "2006-08-22T08:15:05Z")

</div>

HELLO boys ‘n’ grils !  
A question occured to my mind, while I was trying to make a movie with  
dynamic attached movieclips. How can I assign rollOver etc. events in a movieclip attached from the library.Suppose that i have a movielcip named ‘mc’ on the libray, and attach ‘mc1’,‘mc2’,etc from ‘mc’. Is there any way to make flash do ‘something’ when I press on mc1 and do ‘another’ thing when press on mc2 etc. How do i refer to a particular attached movieclip??

Thanks a lot for your time guys  
😃 😃 😃
