I have recently uploaded my flex applicaiton on server, it works fine on my system (localhost) but on the production server it tries to access[URL]..which is not available and end up showing "loading" eternally.
I have to deploy a webapp on Tomcat 6.0.24, serving some webservices that should be accessed with REST-style methods (not fully REST, since the used flex class HTTPService can just send GET and POST).
The webservices are deployed at [URL]
The problem is that the policy of flex sandbox (i think it is called so) requires that the server with the services has to offer a file crossdomain.xml on his root directory.
I created that file with the following contents:
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy>
[Code].....
I am testing it and it does not seem to work. Maybe i am not doing it right. PS: I think Apache is not configured to manage Tomcat-addressed requests, every request is dispatched by port, i think. I can not provide the exact flex error since i am not developing that part. I will try to make a minimal example in the next hours and see if i can reproduce the problem.
post the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..
how to get crossdomain acsess do worke what is wrong with this code? , do i need to add something else?Do i need to set the loadPolicyFile on all load function or can i just set it once in the document class constructor? [code]
How do I specify files to be accessed only in a specific folder via a crossdomain? <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "[URL]"> <cross-domain-policy> <site-control permitted-cross-domain-policies="[URL]"/> <allow-access-from domain="*.newdomain.com" secure="true" /> </cross-domain-policy>
I'm doing a Flash Banner for an ADv campaing. Since the max swf file size allowed is very low, I'm trying to load external JPG images from the main server.Reading the crossdomain policies for Flash movies I see that:You cannot load variables or XML data into a Flash movie from another domain.
It's the same with static files as Jpg images?I'm testing the banner with various results: looking in Firebug, images are always loaded, but sometimes they appear, sometimes not, sometimes only the first time (it's a loop). There are no warnings however.
Loading the Banner with the same domain as the static images always works.I also tried to put a crossdomain.xml file on the domain that serves the static images, but problem seems to continue (maybe Flash cache that request somewhere..
I've recently started putting together a Facebook Connect AS3 app and retrieving objects and images through the Graph API.Running anywhere but locally, I receive security errors of the form: SecurityError: Error #2122: Security sandbox violation: Loader.content: xxxx cannot access url...A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.If I add a line of the form:[code]One thing I'd considered was retrieving the crossdomain policy file on a per image basis, capturing the domain from the image URL before making the image request. Unfortunately, at least via the Graph solution (and I haven't looked too closely at the others), their servers resolve the image url after the request is made, from something more generic like: url...Has anyone found a more dependable means of ensuring that images can be retrieved without security sandbox violations? Or do Facebook maintain a definitive list that developers need to keep an eye on?
I am having trouble loading .swf files to my flash app off my cloudstorage account on azure. images and videos load fine but .swf files return this error:
SecurityDomain 'http://localhost/' tried to access incompatible context 'http://[---].blob.core.windows.net/content/swf/Lib_En.swf'
I want to create flash banner with XML content, and host it on my site with crossdomain.xml, and then share banner code with other sites for banner exchange.So, everything is on my server.Will loading banner, on other sites, load XML from my server, if both banner and XML resides on the same server, but banner is loaded on the other site?
I bought a flash intro, I dont want it to be an intro, I want to use it as a banner (995x200). I eventually managed to get all the elements right, I published it and preview it, it looked well and what I wanted.The problem is, when I added this new banner to my website and preview it, it still looked well,I got my website ready and published everything but the whole thing just reverted back to what I originally started with (800x600)
I'm trying to access a script on a domain with åäö in the domain name. But flash consistently generates a security error no matter what I do.The setup is like this:
[URL]
is trying to access
[URL]
Even with a crossdomain file flash generates a security error, because it considers the script to be on a different domain or something.edit: Apparently it only appears in Firefox. I've tested the same page with identical flash player versions in several browsers and the bug only seems to appear in Firefox.
How do I get round the following error: Access of undefined property pMatrixBack . How do I access this component from within the ascript file?[code]...
I have a SWF on that reads in XML URL's to images on sit. They wont load once the flash file is posted online.I am trying to understand the cross domain policy stuff but am confused? Some say the crossdomain.xml is supposed to reside on my site, others say the site I am trying to access. If the later is true I don't know to get them to add itAlso, what exactly is in the crossdomain file? One person said to redirect the policy
I have create a Flash EXE in AS3. At the time of launch the exe loads a XML from a web link to validate itself.
var urlRequest:URLRequest = new URLRequest("http://abc.com:8090/validate.xml"); var urlLoader:Loader = new Loader(); urlLoader.addEventListener(Event.COMPLETE, startLoad); urlLoader.load(urlRequest);
I have also place a crossdomain.xml at the root. When I launch the EXE, the debugger shows "SecurityError: Error #2000: No active security context."I just found a strange thing that when I'm writing the code on the timeline, its working (no security errors). But when I'm writing this code in the document class its not working.
I am trying to make a "mother" swf to hold all my functions, shortcuts, etc.. This "mother" swf will be stored on a "mother" server.I intend to make several websites on different servers that all access this "mother" swf for various tasks.I created two testing domains where I was able to have cross-domain swfs share functions & variables successfully.The problem occurs when one swf tries to write to a textfield in another swf. I can change properties like position and rotation, but I cannot access properties such as ".text", which is the most important property I need to use.
I need to load a swf in other domain and call its functions and access its variables, in the same domain I can load it and access its functions successfully, but in different domains no.
I need my swf to be able to see the domain of the page that it's loaded on. Normally to to this I would just look at window.location over ExternalInterface, but in this particular case the swf is going to be embedded with allowscriptaccess="never", so that's not going to work. Is there an actual api that will give me that or do I have to resort to ugly hacks?
Code:var appDom:ApplicationDomain = new pplicationDomain(ApplicationDomain.currentDomain);Now in Senocular's fantastic article on Application Domain, it states, "Child domain definitions, even if being overridden by the parent domain can still be accessed from the application domain directly through getDefinition which is covered 've read all through that article and any other information I could find on the application domain, and while I have been able to access the child domain's classes, I have not been able to access the overridden classes.Code:myLoader.contentLoaderInfo.applicationDomain.getDefinition("MyClassName");The above code does get the child classes, but for overridden classes it gets the parent domain's classes.
Is there or is there not possible to access _global variables between domains? On [URL] I have index.html and index.swf. Index.swf then loads main.swf from [URL]. In index.swf I have a _global variable that i want main to use. When calling for it all I get is undefined. The only way to access it is if I call for it using _parent or _root.
I have allowed the domains to communicate using System.security.allowDomain("[URL]"); System.security.allowDomain("[URL]"); I have also put a crossdomain policy file on both servers..
How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/>
[code].....
I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"
Here is the case: Everytime that I clean eclipse project and restart Apcahe Tomcat server and run the application main MXML I got the following error "The requested resource (/{Main mxml file name}.html) is not available." To solve this everytime I should create a new MXML application,restart the server and then everything is fine.
I have installed fms 4 in windows 7 in my computer, but i cant get it work with a flex application that i have in a server. I added the port in my router's settings
How can I add a crossdomain.xml to the root of my Hudson server? I'm working on a Flex->Hudson bridge and I'd like to access it directly, instead of relying on a proxy to do it for me.
EDIT: This is standalone Hudson, not running on any application server.
where should I put the crossdomain.xml to my grails app? I need to use webservices from external domains in my flex client app. I put it into my web-app folder but it seems not working..
Flash cross-domain policy files only allow you to specify allow-domain-from tags.I'd like to know if there is a way to limit access as if the tag read allow-domain-to. In other words:[URL]...
Is it possible to achieve this without resorting to creating a special sub domain for flash callbacks?