0 Replies Latest reply on May 8, 2007 2:08 PM by ejiang

    component swf raise #1006 error

    ejiang
      Hi Exports,

      I just compiled a swf from my own component and my own swc library. When I try to load it in flash player, or load it at runtime using flash.display.Loader in my current Application, I got following error:

      TypeError: Error #1006: getInstance is not a function.
      at mx.core::Singleton$/getInstance()
      at mx.styles::CSSStyleDeclaration$cinit()
      at global$init()
      ...

      But, if I just compile the component together with my application, it works fine.

      Does any one know how to solve this, I've searching online from last night, still couldn't figure it out. I've tried enable/disable optimization, doesn't work either.


      Thank you for help,
      ejiang