Reply to topic
.NET & Flash Remoting.
special-k


Joined: 16 Feb 2008
Posts: 1
Location: Houston, TX
Reply with quote
Hi Guys,

I figured this was as good as any place to put this since I use .NET as the Remoting platform to Flash 8.

I've run across an odd problem which I hope someone here has experienced and can shed some light on it, but I think it's down to a security issue.

When I run my Flash in the IDE it can run all the remoting calls to the site and back (actual site hosted with Hostmysite and not referring to my localhost). The instant the swf is on the site and I go to it, the methods never respond.

in my crossdomain file I even opened up everything like so:

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>

The funny thing is it sees the xml file and it loads it into Flash successfully like so:

Code:

var x_xml:XML = new XML();
x_xml.load("http://www.mysite.com/crossdomain.xml");
x_xml.onLoad = function(success){
   if(success){
      dump_txt.text += "success x_xml " + x_xml + " \n";
   }else{
      dump_txt.text += "fail x_xml \n";
   }


Why is that funny? Well if the crossdomain file restricted it, it wouldn't load, but it does. And because it loads and is registered, it says to Flash, "allow data." When I load "external" data (the XML) it loads successfully into Flash, but at the same time the .NET data never passes back to Flash. Now I know that flash is making the call because Fiddler 2.x is showing me the results from the method called via Flash to .NET in the HexView.

This little thing is driving me bonkers.

Please gang, what have you all done to combat this?

I'm using the shared .net builder + plan
no domain aliases
.NET 2.0
AMF.NET for remoting

Warmly,

Kelly
.NET & Flash Remoting.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic