I will need to execute a function in a comp1.mxml from main.mxml through event, I found it difficulty to understand and unable to get it work. Suppose,
main.mxml
public function run():void {
//call a function in comp1.mxml
}
and in a comp1.mxml:
public function runComponent():void {
}
Is metadata is need in this case and how to make it work?