|
#1
|
|||
|
|||
|
Hello,
I have a problem with cross-domain. my swf file resides on one server but in order to show a part of it I need authorisation from another server (domain). here is the code I am using in the swf: System.security.allowDomain("www.seconddomain.com" ); var lv = new LoadVars(); lv._parent = this; lv.onData = function(inString){ this._parent.textS.text = inString; this._parent.text2.text = siteAddress; } idc = "638da98b-979f-48c4-bd67-a8bd10d13dcd";//id //id - this I get from querystring. var siteAddress:String ="http://www.seconddomain.com/Proxy/?id="+idc; lv.load(siteAddress); from the proxy I get false or true. this I then test and do what neccessary. my problem: this works perfectly on the same domain where the proxy is, but not on another remote server/domain. flash does not give me the false/true from the aspx test page. any idea how I can solve this?? |
|
#2
|
||||
|
||||
|
hi iti,
this is because you need a cross domain policy file. Actually you have solved one part of the problem.The other part is, you have to place a cross domain policy file in the root of the domain( from which you need your swf file ).This is basically a xml file specifying which are the domains, who can get the swf file from this particular domain. http://www.moock.org/asdg/technotes/...inPolicyFiles/ http://www.5etdemi.com/blog/archives...-policy-files/ ![]() |
|
#3
|
|||
|
|||
|
Thanks Saumya,
I will try that. do I have to restart the webserver for this? and do I have to reference this file somewhere in my swf file? In other words, how does the swf knows it is now allowed to get info from the other website? does it check to start with the crossdomain.xml? thanks for replying Iti ![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cross Domain Issues (JS) | jwaldrip | Flash 8 |
0 | 11-01-2006 07:49 PM |
| FlashMove recent tussle with domain issue | FlashMove | Members Cafe |
6 | 03-28-2005 06:31 PM |
| Cross Domain Content Loading with loadPolicyFile | whitenoiseie | Actionscript 2.0 |
2 | 08-20-2004 06:32 PM |
| Cross Domain Policy File | dv8 | Flash MX 2004 |
2 | 09-11-2003 03:16 PM |
| security problem | myrmar | Flash 5 Actionscript |
3 | 09-08-2001 01:33 AM |
All times are GMT. The time now is 08:04 PM.




TODAY'S POSTS








