# To show color default, or color param

**URL:** <https://forum.kirupa.com/t/to-show-color-default-or-color-param/188856>\
**Category:** Uncategorized\
**Created:** [May 11, 2006, 12:49pm UTC](https://forum.kirupa.com/t/to-show-color-default-or-color-param/188856 "2006-05-11T12:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Only\_Dust](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@Only\_Dust](https://forum.kirupa.com/u/Only_Dust)\
**Post date:** [May 11, 2006, 12:49pm UTC](https://forum.kirupa.com/t/to-show-color-default-or-color-param/188856/1 "2006-05-11T12:49:19Z")

</div>

I´m trying to do this, I have a dynamic text and in this dynamic text I call a value, in my HTML I have a PARAM color, he change the color of my dynamic text, so far works fine, but I have 4 products, and each product I have a especific value, example: in product 2 I wanna change de color of my value, my problem is I cann´t change this color.

In my HTML I have the PARAM " cp=006699 " it is the color of the values of the 4 products, 1 default color for the 4 values of my 4 products, but I would like to change the color of my 2º product, some special color " cp2=330099 ", and so on.

HTML

```auto

arquivo.swf?cp=006699&cp2=330099........

```

my AS.  
[AS]  
//alterar cor dos preços dos produtos 2 = cp2  
if (cp != undefined) {  
new Color (preco2\_2\_mc.preco2\_mc).setRGB (parseInt (cp, 16));  
}  
else {  
new Color (preco2\_2\_mc.preco2\_mc).setRGB (parseInt (cp2, 16));  
}  
[/AS]

Sorry about my English.
