website promotion banner
eturnkeys
Your Ad Here
Flash & Swish  Home Flash & Swish Flash Tutorials Changing Colors in Movie Clips
rss

Changing Colors in Movie Clips

Author: Sajid More by this author


image 1

1. Create a big rectangle as shown above.

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 give variable name hexcode.

5. Give action to the button as below.

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

6. Press ctrl + enter to check the movie.



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Changing Colors in Movie Clips"