Hello, flashpeople.

I'm developing a kind of windows-system in flash. I'm doing this by making a smart movieclip which is a windows-style window. I can drag many instances of this smart clip on my main stage and right click on them to adapt their individual preferences by adapting the instance's parameters.
I have multiple parameters defining the width, height, border thinkness, title text etcetera:
_variable _value
titlebar_titlename this is a window
titlebar_bgcolor 0x80B2FF
titlebar_height 25
titlebar_titlecolor #0066FF

In the first frame these settings are applied using actionscript:
- The variables which titlebar_titlename and titlebar_titlecolor are integrated in a html string (thats the reason this hexstring is formatted like it is in html: #xxxxxx) and passed as a variable to a textfield which works perfectly.
- The varialle titlebar_height is used as follows:
titlebar._height = titlebar_height;
which also works great offcourse.
- The variable titlebar_bgcolor is used as follows:
c = new Color(titlebar.titlebar_bg);
c.setRGB(titlebar_bgcolor);

BUT this last one simply doesn't work. The titlebarbackground remains black whatever hex-string i enter into the titlebar_bgcolor variable.
Is this due to the fact that the smartclip takes this as a string type or something? Why isn't it handled properly?