I load a dynamic css using the following:
var shellSkinLoadEvent:IEventDispatcher = FlexGlobals.topLevelApplication.StyleManager.loadStyleDeclarations("css\std2.swf");
It compiles fine with no errrors. but I get the following error at run time: Error #1069: Property StyleManager not found on ... and there is no default value...
This used to work with SDK 3.6. Now that I use SDK4.6, it does not work.
I cleaned the project, recompiled the CSS to SWF over and over. I am at a loss. I have spent way too much time on this so I have given up and I am hoping someone could help me? HELP!!!!
Should just be StyleManager.loadStyleDeclarations(…)
You shouldn't need FlexGlobals.topLevelApplication.
I'm not sure exactly what your 3.6 pattern was, but I don't think there was a FlexGlobals class in 3.6.