Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / April 2006



Tip: Looking for answers? Try searching our database.

WSDL swf sandboxing issue? I am gonna get fired. help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
skatan - 19 Apr 2006 10:28 GMT
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 !
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.