TwelvestoneFlash

crossdomain.xml problems


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
the real me
 
2010-09-03

Ok so forgive me if this is a stupid question. I have been out of flash for far too long but I am having some problems with a crossdomain.xml file.

Basically our corporate office has moved one of our sites to a new server (server.com). They asked that we load certain files from a different url (old.server.com). I'm not sure why but anyway this is what I'm forced to work with. So there is a flash file on old.server.com that pulls some xml data from another site we have (otherserver.com). So the flash file is looking for a a crossdomain.xml file on server.com, which is not there, even though it resides on old.server.com? Does flash not take into account subdomains or is there some other problem?

In fact I was under the impression the crossdomain file should actually be on otherserver.com? Is that not correct? Help! I'm totally confused...

Storm
 
2010-09-03

correct impression. the file should be on otherserver.com but there were some changes to the security model in player 9. http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

But I'm kind of confused because there's two things you have to consider. An .SWF's root domain is the containing HTML's domain but it also knows where it came from. So if you pull an swf from one domain in an html file on another domain, you should open both domains if that swf pulls data from a third.

my assumption of your situation....??

server.com - html file

old.server.com - swf

otherserver.com - xml

?? correct ??

the real me
 
2010-09-03

Yes, that is the setup I'm working with.

So what you are saying is that I need to add old.server.com and server.com to the crossdomain file on otherserver.com correct?

Storm
 
2010-09-03

yes you need both lines or *.server.com

The changes also mean data between SWFs requires (in AS3) the Security class too... eg. Security.allowDomain( li.loaderURL );

I'm a little rusty on all this because I set this up for Honda 2 years ago but we'll get it going for you.

the real me
 
2010-09-03

Ok, thanks. Let me try that.

It sucks too because the guy who built these flash files recently quit so we are in the process of searching his old machine for the fla's so I'm not exactly sure exactly how it's working (or not actually).

the real me
 
2010-09-03

argh... watching firebug it's trying to load a crossdomain.xml from server.com for some reason??? I have no idea why. It is also loading the crossdomain from otherserver.com though.

I'm afraid I'll have to find the fla before I can sort this out. There is not telling what is going on without it I suppose.

Storm
 
2010-09-03

that could be it trying to load its FlashVars

Find the FLA.

But for shits and giggles now, move the swf onto server.com and see if that crossdomain call goes away. SWFs try to read for flash variables (loaderInfo) from its HTML page so that could be what that call is.

the real me
 
2010-09-03

I can't move it to server.com but I did try it on thirdserver.com and it was still trying to pull a crossdomain from server.com. I must find the fla. It has to be trying to pull something I'm not aware of or something.

Storm
 
2010-09-03

I doubt there's anything in the .FLA calling from server.com.

It's trying to access the flash load variable data and it knows its from old.server.com but hanging out on server.com so it has to ask server.com if it can read the embed data (such as allowScriptAccess or WindowMode or whatever).

You can't get into server.com to put one there?

the real me
 
2010-09-03

Found the fla! It was attempting to load a style sheet from server.com so I guess that is why it was looking for the crossdomain file there. I ended up just moving all of it to another server though and it looks like it's all going now.

Our corporate office is moving a lot of our stuff to a new server and they are super nazi about what we can do and where we can put things. sucks... We are finding all kinds of stuff that is broken since we have quite a few sites on separate servers that interact with each other and they didn't consider any of it when they instituted all of these policies.

So anyway... it seems to be working. thanks for the help! On to the next mess!

Storm
 
2010-09-03

nice!! whooo hooo

especially on a friday afternoon

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

crossdomain.xml problems