PDA

View Full Version : Changing Objects with Actionscript?



bash
December 7th, 2004, 05:50 PM
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?

Limitlis
December 7th, 2004, 06:02 PM
Theres probly thousands of ways at going at it. And heres one...

You could stick your images into a MC each on its own frame with a "stop();" action.

Then have an arrow button to advance.

on (rollOver) {
tellTarget(_root.imageMC){
play();
}

heres a link for a different apporoach.
http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

later,
Limitlis