Flash Script - Change a Movieclip's Color in Flash

Download the sample files here.

1. Create a large rectangle.

2. Convert the rectange to a movie clip, and give it an instance name of "rectangle".

3. Create a small square button.

4. Create a small text field, and give it a variable name "hexcode".

5. Assign the button the folliowing action:

on (release)    {    colorchange = new Color("/rectangle");    colorchange.setRGB(0xff33cc);    }    on (release)    {    hexcode = (colorchange.getRGB()).toString(16);    }

6. You’re done! Press ctrl+enter to check the movie.


Category: software Time: 2003-04-28 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.160 (s). 12 q(s)