# Redirect browser from flash amfphp

**URL:** <https://forum.kirupa.com/t/redirect-browser-from-flash-amfphp/321854>\
**Category:** Uncategorized\
**Created:** [May 3, 2011, 1:24pm UTC](https://forum.kirupa.com/t/redirect-browser-from-flash-amfphp/321854 "2011-05-03T13:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjjoh](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjjoh](https://forum.kirupa.com/u/benjjoh)\
**Post date:** [May 3, 2011, 1:24pm UTC](https://forum.kirupa.com/t/redirect-browser-from-flash-amfphp/321854/1 "2011-05-03T13:24:06Z")

</div>

Hey,

I am currently developing an application in flash. In this application user will be able to buy in-game currency using real life money. For this purpose we have some external actors. In our case, it is hipay.

Now, once a user clicks on a particular button, as3 will use amfphp to call a php file that eventually will do this: header("Location: ".$url) ;

Once this happens I get an error in my flash:

Error: Request for resource at [https://test-payment.hipay.com/index/pay/---somevarialbes---](https://test-payment.hipay.com/index/pay/---somevarialbes---) by requestor from [http://mydomain.com/game.swf](http://mydomain.com/game.swf) denied due to lack of policy file permissions  
Connection to [https://test-payment.hipay.com/index/pay/---somevarialbes---](https://test-payment.hipay.com/index/pay/---somevarialbes---) halted not permitted from [http://mydomain.com/game.swf](http://mydomain.com/game.swf)  
\*\*\* Security Sandbo Violation \*\*\*  
Warning: failed to load policyfile from [https://test-payment.hipay.com/crossdomain.xml](https://test-payment.hipay.com/crossdomain.xml)

Now, is this a problem on my side or hipay’s side. If it is the latter I’m screwed I guess and have to find another solution.

Can anyone help me with this?
