1 Reply Latest reply on Jul 12, 2007 7:09 PM by ntsiii

    Sharing functions

    Handycam Level 1
      Thanks for the answer. One thing I should’ve asked at the same time: how do you do the reverse?

      That is, target a handler in the main application script block from within the component (e.g. from a button)?

      I’ve had to resort to:

      mx.core.Application.application.showAlert("Missing Item","You must choose one bread");

      But I’m hoping there’s an easier way. Many thanks.



      To target a handler in a component instance:

      Give the component instance an id:
      <step2 id="s2" .../>

      then in AS: