View Single Post

  #1 (permalink)  
Old 24-07-08, 13:14
mvasu239 mvasu239 is offline
vasudevan
 
Join Date: Jul 2008
Posts: 2
Rep Power: 0
mvasu239 is on a distinguished road
Unhappy Flash & .net Webservice error and doubt..

Hi Developers,

i designed a photo gallery,
i used .net webservice to get path for the picture, (picture is in server).

i'm getting the result from the webservice and the gallery is working as what we need,but when uploaded it into site it is not working,

i've checked the domain security, cross domain policy and everything, but its not working even it get the results from the webservice,

Note: the webservice is working properly..

My level in scripting is Beginner...
Suggest me any other method to call and get the results effectively,



i've give my actionscript code here,
--------------------------------------------------------
import mx.services.*;
import mx.utils.Delegate;

System.security.allowDomain("http://new.easyatst.com","http://easyatst.com","http://www.easyatst.com","http://ramadmin.easyatst.com");
System.security.loadPolicyFile("ramadmin.easyatst. com/crossdomain.xml");
status_ui.text = "Connecting to easyatst.com";
var lLog:Log = new Log(Log.VERBOSE, "myLog");
var lWebService:WebService = new WebService("mywebservice.asmx?wsdl", lLog);

lWebService.onFault = function()
{
trace("WHOOPS!");
};
lWebService.onLoad = Delegate.create(this, _performExampleCall);

function _performExampleCall()
{

status_ui.text = status_ui.text+"\n Connected Successfully..";
var lPendingCall:PendingCall = lWebService.GetAllText();
lPendingCall.doDecoding = false;

lPendingCall.onResult = Delegate.create(this, _parseResult);
}

function _parseResult(pResults:Object)
{
trace(pResults);
}

-------------------------------------------------------

i belive i get the solution here,
Thanks.

Last edited by Onsitus; 24-07-08 at 13:23..
Reply With Quote