Hi, I am really struggled in managing styles “against” the CSS implementation in Flash:
I have a mysql database with styles (mostly colors). A function is triggered by the preloading event in the Aplication; it queries the database, gets the colors and then updates the base CSS using “setStyle”. For example: “StyleManager.getStyleDeclaration(“Tree”).setStyle(“color”,$TreeColor);”
In Adobe docs it states clearly that this operations of changing styles are very resource intensive, so the best place for them is in the preloading event, before the objects are loaded.
And this is what I am doing!!, but when I test the page, all objects appear at first rendered with the default color values, and one moment later my colors are applied!! Weird!!
I can’t understand it. Is there any pre-preloading event embed in the application?? Why are the objects rendered before my preloading function is finished?
Miguel