
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.
6.press ctrl + enter to check the movie.