# Changing Objects with Actionscript?

**URL:** https://forum.kirupa.com/t/changing-objects-with-actionscript/130720
**Category:** Uncategorized
**Created:** [December 7, 2004, 10:50pm UTC](https://forum.kirupa.com/t/changing-objects-with-actionscript/130720 "2004-12-07T22:50:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bash](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bash](https://forum.kirupa.com/u/bash)
#### Post date: [December 7, 2004, 10:50pm UTC](https://forum.kirupa.com/t/changing-objects-with-actionscript/130720/1 "2004-12-07T22:50:00Z")

</div>

I have been playing about with the “Changing colors with Actionscript” FLA found on this site.

Basically, when you move your mouse over a coloured box the movie clip changes to the corresponding color.

This is the AS

on (rollOver) {  
var colorful = new Color("\_root.shapes");  
colorful.setRGB(0x003366);  
}

I am trying to change the AS so instead of changing color, the movie clip changes an image?

Can someone please help me?
