2 Replies Latest reply on Apr 25, 2008 10:08 AM by WestSide

    Call function outside of component?

    WestSide Level 1

      How can I call a public function that lives outside a component?

      I have a "Main.mxml" file that is set as my default application. In this file I have a public function called "switchView(). I also have another mxml file called "LoginView". I want to call the public function in Main.mxml from LoginView.mxml. Does that make sense? There are certain functions I want to be available across the board to multiple components. I prefer this method if possible.

      Any help appreciated