# Change color of api objects

**URL:** <https://forum.kirupa.com/t/change-color-of-api-objects/107220>\
**Category:** Uncategorized\
**Created:** [April 13, 2004, 1:38pm UTC](https://forum.kirupa.com/t/change-color-of-api-objects/107220 "2004-04-13T13:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fumeng](https://avatars.discourse-cdn.com/v4/letter/f/a9adbd/32.png) [@fumeng](https://forum.kirupa.com/u/fumeng)\
**Post date:** [April 13, 2004, 1:38pm UTC](https://forum.kirupa.com/t/change-color-of-api-objects/107220/1 "2004-04-13T13:38:53Z")

</div>

hi.

i’ve got a function (a ‘for’ loop) that creates 20 movie clips on the fly. in each movie clip i dynamically draw an object with the api tool and all these objects follow a path.

what i want is that when the mouse is in the frame of the piece, i want the colors to change. i’m not sure if i can even do that. i’ve attached the .as file. does anyone have any ideas?

thanks. fumeng.
