Actionscript Flash 5 question: Colouring

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