Sand Box Error on HttpRequest
hi,
i trying access getsearchresults method of fotolia's rest api using httprequest follows,
var httpservice:httpservice = new httpservice();httpservice.url=
"http://"+key+"@api.fotolia.com/rest/1/search/getsearchresults?search_parameters[words]=smile&sear ch_parameters[limit]=100";
httpservice.method = "get";
httpservice.resultformat = "text";
httpservice.addeventlistener(resultevent.result, onhttpresult, false, 0, true);
httpservice.addeventlistener(faultevent.fault, onhttpfault, false, 0, true);
httpservice.send();
it runs fine locally when deploy server error
error #2048: security sandbox violation: http://www.crickopedia.com/ashar/testfotoliasecurity1/test.swf cannot load data http://nxmpat7dpf9x3sy9qvwqsll8ixgn9nxm@api.fotolia.com/rest/1/search/getsearchresults?sea rch_parameters//nxmpat7dpf9x3sy9qvwqsll8ixgn9nxm@api.fotolia.com/rest/1/search/getsearchresults?search_parameters[words]=smile&search_parameters[limit]=10 0.
moreover works fine on firefox on other browser ie, safari throws above error.
do have suggestion?am missing here?
ashar
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment