its few days i’m stock with a issue using amfphp 2 in my actionscript project.
i have an actionscript project which gets the data from db through amfphp, when i run the complied swf in debug mode or just run through flash player it works fine , but once i wrap it with html and open it through browser it never gets the data from db, dose any body can help me what is going on ?
i have added these lines at the first of the project , but still through browser ( i’ve tried , Chrome, Firefox and safari) it cannot connects to db.
Security.allowDomain("*");
Security.allowInsecureDomain("*");
Thanks
first of all, download the debugger Flash Player extension for your browser. When running Flash content in debugger it will tell you what errors occur.
http://www.adobe.com/support/flashplayer/downloads.html#fp11
Also, I’d suggest to check out the Crossdomain policy file on the server you’re trying to communicate with. To be able to communicate with any servers from Flash Player you need to allow it on the server by using a crossdomain.xml file.
http://kb2.adobe.com/cps/142/tn_14213.html
Good luck,
Rob