Groups | Blog | Home
all groups > flash actionscript > january 2006 >

flash actionscript : dynamic themeColor


toiluj23
1/9/2006 7:09:16 PM
wich is the output or trace that you GET from the DB?
shaggydagy
1/9/2006 11:12:32 PM
Hi I'm developing an application that handle different companies at the same
time, for each compny user the flash app must load it's logo from a database
(no problem), for an extra I want the flash app to load the themeColor that
matches the most to the logo, to do this i also stored a themeColor field in my
db, so when the admin user creates a company he can upload the logo and also
select the user interfase theme.

When loading from the database the themeColor it gets the values, i.e.
"haloBlue" but when apliying the theme to:
_global.style.setStyle("themeColor",myLoadedTheme) it just seem to work with
the lists components (and combos, grids) but the face color of buttons appear
all in black instead of the haloTheme the database returned, any ideas?

shaggydagy
1/10/2006 6:49:32 PM
i did several tests and i realized that the components can load the themeColor
dinamically but the way i was assigning the style wasn't good, i thought using
_global.style.setStyle("themeColor",myLoadedTheme) could do the job, intead i
had to apply myLoadedStyle to each component instance i really don't know why
is this, if anyone knows would be good to clarify.
AddThis Social Bookmark Button