# sliding button

**URL:** https://forum.kirupa.com/t/sliding-button/634063
**Category:** flash
**Created:** [December 18, 2015, 9:11am UTC](https://forum.kirupa.com/t/sliding-button/634063 "2015-12-18T09:11:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jouraquille\_mihawk](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jouraquille\_mihawk](https://forum.kirupa.com/u/jouraquille_mihawk)
#### Post date: [December 18, 2015, 9:11am UTC](https://forum.kirupa.com/t/sliding-button/634063/1 "2015-12-18T09:11:37Z")

</div>

how to control shape or colour of movie clip, with sliding button using A.S 2…?

---

<div class="post-metadata">

### Author: ![AndyM8](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andym8/32/7468_2.png) [@AndyM8](https://forum.kirupa.com/u/AndyM8)
#### Post date: [January 16, 2016, 11:50pm UTC](https://forum.kirupa.com/t/sliding-button/634063/2 "2016-01-16T23:50:13Z")

</div>

The color object colorful is being given a color value. Because the object, colorful, is referring to the shapes movie clip stored on the main timeline, the color featured after Flash’s setRGB function will be applied. Everytime a MovieClip is instanciated or readed from a new keyframe, its like it was a new MovieClip used. I suppose by reading what you’ve written that you should try this method below and modify the colors by using the timeline. Good luck!  
[http://www.kirupa.com/developer/actionscript/color.htm](http://www.kirupa.com/developer/actionscript/color.htm)
