1 Reply Latest reply on Jun 7, 2013 2:24 PM by Flex harUI

    Loading style sheets at run time

    jserpas

      I load a dynamic css using the following:

       

      import mx.styles.StyleManager;

       

      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!!!!