http://scriptplayground.com/tutorials/as/Call-Javascript-in-Flash/ here it is: just add function that calls php page.
am trying to embed one flash file inside another. The banner flash will be inside a container flash and click link will set to container. is any security issue in this method, is child is able to access parent variables and methods?