Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Flash Tutorials Changing Colors in Movie Clips

Changing Colors in Movie Clips


Changing Colors in Movie Clips

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.



Author's URL: Sajid
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Flash Tutorials: Featured Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

No comments yet...
Add comments to "Changing Colors in Movie Clips"

Captcha