5 Replies Latest reply on Aug 21, 2010 11:58 AM by Shongrunden

    hostComponent always null :(

    Ultimon Level 1

      Hey guys,


      I am declaring and adding a new Skin programmatically from actionscript like so...



      var custom:MyCustomComponent = new MyCustomComponent();


      var skin:MySkin = new Skin();






      on MySkin I have an event handler for creationComplete()


      but when creationComplete fires on the skin, the hostComponent is always null!



      If I instead set the Skin via the custom components skinClass property in mxml I dont have this problem.  Can anyone tell me what I am doing wrong, thank you!