My main page loads an iframe which contains a Flex application (which occupies part of the screen).
The flex app has a "Cancel" button which should make the main page navigate to a different location using a JavaScript method in the main page ("goBack()").
I tried to use this Flex - AS code for the "Cancel" button with no luck (it tried to invoke JS function using the parent object):
public function cancel(){
flash.external.ExternalInterface.call("parent.goBack()");
}
This is the JavaScript code
function goBack(){
window.top.location='some_URL';
}
Appreciate your thoughts
Update:
i find out I get the following error when trying to invoke the JS method:
"Blocked a frame with origin https://SITEA from accessing a cross-origin frame."