ActionScript 2.0 :: Load XML Cross Domains With Proxy File?
Jan 23, 2006
I'm using a working proxy.php, and passing it a url variable.
I think the problem is that the url variable I'm passing is a php file itself with a query on the end of it.
My proxy.php file sits in the same directory as the .swf.[code]...
View 1 Replies
Similar Posts:
Nov 7, 2010
After reading James Ward's post I'm considering using a proxy rather than a crossdomain.xml file. I have a java app, which includes a flex applet, on one tomcat instance and a java web service on another tomcat instance. Does it make sense to have a single (Apache httpd) proxy handle requests for both the app and the web service, thus eliminating the cross domain restriction?how to deal with the cross domain issue are welcome.
View 2 Replies
Jun 10, 2011
Lets say I have a PHP application using very cheap shared hosting. What is the best way to stream audio/video (mp3/mpeg) that is tens of megabytes to hundreds of megabytes in size. I am thinking of a PHP based cross-domain proxy that uses caching. Is there something wrong with this approach?
View 1 Replies
Nov 5, 2009
I am trying to get my flash file to load data from multiple sources/domains. It works perfectly in the development environment, but as soon as you launch the swf locally or online, it doesn't load the xml data from external domains.
[Code]...
View 2 Replies
Jan 10, 2006
I have some problems with security file e load xml.
I have u file xml on
[URL]
but the file swf is on
[URL]
in local inside IDE of flash is ok but online don't work
this is as:
System.security.allowDomain("http://www.centrocartucce.it");
//System.security.loadPolicyFile("http://www.centrocartucce.it/slideshow.xml")
var myXML:XML= new XML();
[Code].....
View 1 Replies
Jan 8, 2012
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request?
(
2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?
View 1 Replies
Apr 1, 2009
I've written an app that parses Atom and RSS feeds from a few popular sites, and reacts to this data. Everything works fine when I run the .swf locally, but fails when uploaded. Is there a security setting I should be aware of?
View 1 Replies
Feb 21, 2010
I'm trying to upload images with Uploadify but I run into IO error. I have gotdemo and it works on my computer, so I decided to implement functionality of my application to this example step by step to catch the error and discovered that the reason of IO error is my local proxy.pac (I use FF):
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.app.local*")) {
return "PROXY 127.0.0.1:3000";
[code]....
View 1 Replies
Mar 24, 2011
I have a parent swf that loads a child swf and attempts to pass some data into the child.
The process works fine if parent and child are located in the same domain (lets say domainA.com).
As soon as I place the child swf into domainB.com and try to load it, it will load in the parent, but it is not loading the values.
Crossdomain policies are in place (the child does load!), but the params are not sent.[code]...
View 0 Replies
Sep 9, 2010
I am having a heck of a time loading an image from Amazon S3.[code]...
Is there any way I can avoid having to hard-code the policy file path in my AS?
View 2 Replies
Nov 4, 2010
it's just not working for me I made a crossdomain.xml file that looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
i put that in the folder with the php file i want to access[URL]..
View 1 Replies
Sep 15, 2010
If I have my .swf files on "SERVER A" and they need to access my video files on "FMS SERVER B", on which server to I need to put a cross-domain policy file?
View 2 Replies
Nov 17, 2006
I have a project I am working on, but first I needed to test this. I have a SWF named "index.swf" (with a index.html), that is running on a rented server of mine. [URL].
-The SWF contains 2 layers.
-The first layer contains 2 dynamic textfields names "text1" and "text2".
-The second layer has some actionscript:
ActionScript Code:
stop();
var loadFile:LoadVars = new LoadVars();
loadFile.load [URL];
loadFile.onLoad = function(succes:Boolean){
text1.text = this.variable_me;
text2.text = succes;
}
The "test.php" is located on the second domain. This is the code written in it is:
PHP Code:
<?php echo "variable_me=works&";?>
So the SWF-file on the 1e domain has to load the php file from the second domain. But it doesn't work.
text1 displays: "undefined"
text2 displays: "false"
But if I call the php file in a regular browser (like this "[URL]") it displays:
variable_me=works&
My flash code isn't wrong, i have tested this local. My PHP file is OK.
View 5 Replies
Nov 7, 2010
I'm accessing a server's sockets from the flash client using Flash CS3 professional.However, should I run it in debug mode OR run the .swf file, it doesn't connect.Fine, it's the crossdomain.xml file.I create and host this file using apache webserver, and it is accessible using firefox/ie.loadPolicyFile seems to work, BUT IT DISCONNECTS IMMEDIATELY.What am I doing wrong??
<cross-domain-policy>
<allow-access-from domain="*" to-ports="3300"/>
<allow-access-from domain="*" to-ports="3333"/>
[code].....
View 2 Replies
Sep 18, 2010
How do I write a cross domain policy file which will allow an xml file from [URL] and from [URL]? The only cross domain policy files I've ever used use * as allowable domains I don't want to do this.
View 1 Replies
Nov 5, 2010
My swf works fine when previewed locally but because of flash cross domain issues (link below) doesnt work live. [URL] Ive used a 'crossbrowser.php file to .load in xml but am not having success with the sendAndLoad command. [URL]
View 3 Replies
Mar 14, 2011
I have this code in my html
function open(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){
var opciones = "fullscreen=" + pantallacompleta + [code].....
And I call it from as3 like this:
var request:URLRequest = new URLRequest("javascriptpen('+ prop.link +',0,1,1,1,1,1,1,800,500,0,0,1);");
navigateToURL(request);
But when I click to open the new url.. chrome brings me this log error "Ignoring cross-frame javascript url load request by plugin"
View 1 Replies
Nov 16, 2010
I have a SWF that contacts a php script all on the same domain. In the first case both are hosted behind the same domain and communicate with no problem. Everything is working great.However when I take the same markup that embeds the SWF and paste it on another site (using a full qualified path for the swf in both the locally hosted and remotely hosted code), the SWF no longer communicates with the php script I wrote. I added a cross domain file to my site which looks like this.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
[code]....
View 3 Replies
Aug 6, 2011
I have
A.swf - located on sitea.com which loads B.swf
B.swf - located on siteb.com which loads some files from sitec.com
crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="80" />
</cross-domain-policy>
I have placed the crossdomain.xml (above) file on each domain root but i still get a Security Error from sandbox when accessing A.swf
securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: B.swf cannot load data from sitec.com"]
I do know that crossdomains problems are meant to be simple
View 2 Replies
Jun 22, 2009
I am working on a project that uses SharedObject and I have a question. I've made a button that downloads a flash screensaver and at the same time also creates a SharedObject which stores a specific id for each screensaver being downloaded. When later the screensaver is installed and run, it should get the SharedObject and read the id from it. When tested locally it works perfect since both the buttons´ and the screensavers´Sharedobject are stored in the same localPath. But when the button is online and the screensaver is local the SharedObject paths don't match.
Is there a way to solve this and make the local screensaver swf read the SharedObject from the same path as the online download button has stored it's SharedObject in?
This is the relevant code in both my swfs:
var _mySo:SharedObject = SharedObject.getLocal("name", "/");
If this won't work, does anybody have another solution to my remote to local screensaver thingy??
View 1 Replies
Sep 9, 2007
My client's site exists on both http:// and http://www. and I have a flash navigation system on the site. All links are absolute values and work fine from the www subdomain but do not seem to work from the http:// domain. It seems strange to me as the links are absolute paths...
View 2 Replies
Jun 21, 2009
I just recently created a news ticker using the tutorial on Kirupa; however, I have not been successful at getting my xml data to show up on the news ticker. I have my xml file stored on and my website will be stored on Savannah State University's server. I do not want to have my xml file on the same domain as my website because it will be on my school's server and they don't allow access to their server. I want to be able to update the news ticker freely.
View 5 Replies
Apr 22, 2009
So I have an SWF8 file as a player on one domain (unsecure). It loads and plays an SWF8 from another (secure) domain. So far so good. Trouble is, I need the player to send variables to the files it's playing so that links in that SWF will, well, link. I also need the player to receive some movie control commands in return. There must be a rule or two I'm violating, because while the file plays, anything that depends on a variable is just dead.
A note: Both files started out as SWF6. I understand I can only do what I'm trying to with SWF8, so I went through the code and fixed the case sensitive issues and did the conversion.
View 9 Replies
Aug 30, 2009
I have an application with embed swf thatis called from javascript using handleEvent, This was working fine when they were both on same domain but now when i seperated them it returns an error .
View 1 Replies
Apr 12, 2011
I have a.swf, which is the SWF file for my main application, and it's trying to load in b.swf, which contains some additional resources as well as some Actionscript. a.swf lives on sub1.domain.com and b.swf lives on sub2.domain.com (both on the same domain, just different subdomains.) In a.swf, I've loaded the crossdomain.xml from domain.com and also added the following code into both a.swf and b.swf:
Security.allowDomain("*");
Security.allowInsecureDomain("*");
Do I need to load crossdomain.xml in b.swf as well to prevent a security error or is having allowDomain/allowInsecureDomain enough?
Further info:
- Using Flash Player 9
- Using AS3
View 1 Replies
Dec 6, 2011
I have a Singleton class instantiated in Main.swf located at domainA. The file loads Game.swf from domainB via LoaderMax [URL]. When I try to access the Singleton I guess this is not the same as the on instatiated in Main.swf.
View 2 Replies
Mar 21, 2012
I have a website on my server which loads a .swf file and then I want to be able and call functions in that file from javascript.
My server has domain [url]..
View 2 Replies
Jul 9, 2009
I am testing a locally run SWF (in debug standalone player) that tries to load data from a remote URL using URLLoader class. I have enabled useNetwork flag in the SWF. As I said, the SWF is running in standalone player, it is not embedded in any page in any browser.As I understand, it still cannot load any external non-visual resource, if the site it tries to load from does not have a crossdomain.xml file, or if that file does not include the domain hosting my SWF. Correct?
View 0 Replies
May 13, 2008
I have two domains pointing to the same swf. So I have domain "A" and "B" where my swf (site) is hosted at "A". Domain "B" loads site "A".
The swf loads some vars from a DB, when seeing site directly at domain "A" I have no problems, but when seeing with domain "B", my site just freezes....giving an error at the Browser and I have to close. This is for FF and IE.
At first I thought this was cross domain policies, so I have put at my swf the following code:
Code:
System.security.allowDomain("B")
View 7 Replies
Oct 8, 2011
I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........
View 0 Replies