Linux Hosting Home | About us | Support | Contact us
24x7 Customer Support

Tutorials

Changing colors of the Movieclips

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.


 
Linux Hosting Plan | Linux Hosting Features | Linux Dedicated Servers | Domain Registration | Web Design Services
Home | About us | Contact us
 
Linux Reseller Hosting Free Linux Hosting Reseller Hosting
Search Engine Optimization
by Submit Today
© PluginSpace Linux Hosting (A Division of Dawar Multiple Media Pvt. Ltd.) New Delhi, India