calling another mxml function in other mxml file in flex
i have defined some functions in a component mxml file let us say 


`addbutton()` 

now i want to call this function in main mxml file.
How can i do that.

best regards
calling another mxml function in other mxml file in flex
===

i have defined some functions in a component mxml file let us say 


`addbutton()` 

now i want to call this function in main mxml file.
How can i do that.

best regards