# Actionscript Flash 5 question: Colouring

**URL:** <https://forum.kirupa.com/t/actionscript-flash-5-question-colouring/49972>\
**Category:** flash\
**Created:** [April 28, 2004, 1:23pm UTC](https://forum.kirupa.com/t/actionscript-flash-5-question-colouring/49972 "2004-04-28T13:23:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hache](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hache](https://forum.kirupa.com/u/hache)\
**Post date:** [April 28, 2004, 1:23pm UTC](https://forum.kirupa.com/t/actionscript-flash-5-question-colouring/49972/1 "2004-04-28T13:23:49Z")

</div>

Hi everybody,

I’m developing a virtual decorator thats works as follow:

1. Pick a color from a color palette.
2. The brush get the picked color.
3. With the selected color i need to paint the walls.

I think it’s very simple, but i dont resolve this:

**I’m using the code:**

[color=magenta][color=#000000]----------------------------------[/color][/color]  
[color=magenta][/color]  
[color=magenta]// Code for color button in palette[/color]  
on (press) {  
paint = new Color(\_root.mouse.swatch);  
paint.setRGB(0xff9966);  
}

[color=magenta]//Code for brush color in main timeline[/color]  
myColor = new Color(\_root.mouse.swatch);

[color=magenta]//Code for wall button, in picture[/color]  
on (release) {  
var paint = new Color(\_root.fotex.p3);  
paint.setRGB(\_root.myColor.getRGB());  
}

* * *

What’s wrong? somebody can help me?

thanks in advance.

Hache
