2 Replies Latest reply on Nov 23, 2010 7:00 PM by BennyB23

    Can you dispatch events from a custom component skin?

    BennyB23

      If so, how?

       

      Thanks~Benny

        • 1. Re: Can you dispatch events from a custom component skin?
          drkstr_1 Level 4

          I'm curious to know if this is possible as well (or really the question should be, is there a non-hackish way to get a reference to the skin instance)?

           

          When I've needed to do something like this, I've always just dispatched an event off a skin part from within my skin. IE.

           

          this.contentGroup.dispatchEvent(...)

           

          Then I would just listen for the event on the skin part.

           

           

          This is a bit hackish, so it would be nice if someone could share a better solution. I've been meaning to look into it, just never have been able to justify the time looking for a better solution.

          1 person found this helpful
          • 2. Re: Can you dispatch events from a custom component skin?
            BennyB23 Level 1

            Thanks for the suggestion. I'll look into that and keep on the look out for a less hackish approach (to use your phrasing)...

            ~B