I wrote a web service using Google Apps Script (GAS), using the doPost
method.
Next I tried to use the service in Javascript - and everything went fine. Web service worked perfect - it wrote data to Google Sheet, read data from it and returned it back to the Javasript caller.
Now I want to call this web service from inside Flash embedded in HTML. But due to Flash security model it is impossible as in case of Javascript. There is no possibility to put the crossdomain.xml file in the GAS root domain (as I know - maybe I'm wrong?).
So my question is: does anybody know a simple method to call by Flash a web service offered by GAs?
I've got 2 solutions in my mind:
- Have a proxy (in PHP for example) which translates requests and responds to and from Flash
- Communicate with GAS web service in Javascript and communicate with Javascript from Flash using flash.external.ExternalInterface
Both solutions are rather complicated, therefore I repeat my question: is there any simple solution to allow Flash object communicate with Google Apps Script and be in line with crossdomain contrains?
Regards, Peter