Hi there,
Hear me out, this is the problem and I really dont want to get fired people! I
am building an online video slot machine. There are 5 reels that spin on this
thing. The actual reels are loaded in externaly into a mc holder on the _root
of the project. I call a webservice when the reels load into the mc holder
import mx.services.*;
initClientProxy();
function initClientProxy() {
var webServiceUrl:String;
webServiceUrl = "http://www.suninternational.com/play4fun/play4fun.asmx?wsdl";
trace("Play4FunURL: " + webServiceUrl);
_global.sunintService = new WebService(webServiceUrl);
trace("SERVICE="+_global.sunintService);
}
loadResultObj = _global.sunintService.SpinResult(1, 1, 1);
loadResultObj.onFault = function(fault)
{
trace("webservice fault");
trace(fault.faultCode + "," + fault.faultstring);
}
loadResultObj.onResult = function(result)
{
var xmlWebServiceData:XML = new XML(result);
_global.xmlData = xmlWebServiceData;
}
Once you click spin, the reels do just that, they spin right. On the last
frame of these reels, I have 3 mc holders in eachone, each with an instance
name. Once they stop, I use the following below to trace the mc holders and
call on my wsdl and xml file to return back the randomised swf's that I want to
load into the mc holders. The instance names can be clearly seen at the end of
the loadMovie action in the 2nd paragraph below.
trace(_global.xmlData.childNodes.childNodes.childNodes.attributes.top);
trace(_global.xmlData.childNodes.childNodes.childNodes.attributes.middle);
trace(_global.xmlData.childNodes.childNodes.childNodes.attributes.bottom);
loadMovie(_global.xmlData.childNodes.childNodes.childNodes.attributes.top+".swf"
, "0-top");
loadMovie(_global.xmlData.childNodes.childNodes.childNodes.attributes.middle +
".swf", "0-middle");
loadMovie(_global.xmlData.childNodes.childNodes.childNodes.attributes.bottom +
".swf", "0-bottom");
Now, the problem is that when I test this on my local server it displays the
swf files in their holders just fine. As soon as I send it to a demo server or
test it anywhere than my local environment, I am not able to display the swf
icons. If I change them to jpg files they display just fine on the local
environment and on the demo server. I am lost and need some serious help.
Thanks:frown;
danisilveiro - 19 Apr 2006 12:57 GMT
hi, are u loading data from a diferent server than the one that your main swf resides ?
if yes look up what "crossdomain.xml" file does !