Flash :: Limit Cross-domain Access To Specific Locations On Server?

Nov 29, 2011

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?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Post The Code For A Working Cross-domain Securityfile That Allows Access Only From The Same Domain?

Jun 1, 2010

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..

View 3 Replies

ActionScript 2.0 :: Cross Domain SendAndLoad Via Cross Domain Script

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

Cross-domain File Access?

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

ActionScript 2.0 :: Cannot Access Textfield In Cross Domain SWF?

Dec 5, 2008

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.

Mother SWF: "www.projectvolcano.com/a.swf" (a.swf)
2nd SWF: "www.unitcounter.com/b.swf" (b.swf)
Note: b.swf loads a.swf using loadMovie

[code].....

View 3 Replies

ActionScript 2.0 :: Any Way To Access Global Variables Cross Domain?

Apr 6, 2005

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..

View 7 Replies

Actionscript 3 :: Cross Domain In Flash

Dec 6, 2010

I have two swf files hosted on different domains [URL] and [URL]. a.swf is loading b.swf and trying to cast it to some interface. When both of these swf files are under the same domain everything works fine. But when they are under different domains I'm getting null after casting b.swf to the implemented interface IComponent. Both of these swfs are compiled with use-network=true and with the same IComponent.as.

[Code]...

View 5 Replies

Flash Cross Domain Policy For Apache

Dec 23, 2009

I was looking around but couldn't find it where can I add the cross domain policy of Adobe in Apache server. Because without it, its not letting me access my XML on another server.

View 1 Replies

Cross Domain Requests : Javascript Vs Flash?

Jan 25, 2010

As you might know, browser's security model does not allow a script loaded in a page from http:[url]... to make cross-domain requests (no AJAX calls to any other domain other than url...).The Javascript file itself could have been served from a different domain altogether (url....) and that is irrelevant. This is the Same-Origin Policy.

Flash also has something similar? But does Flash treat the origin to be the HTML page where the .swf file was loaded or origin is the domain which served the .swf file?

So http:[url]... loads a .swf file from http:[url].... Now .swf can load resources only from [url].... or only [url....? I'm assuming there are no cross-domain.xml files setup on either [url]....

View 1 Replies

Ruby On Rails :: Using Flash And Cross Domain?

Nov 14, 2010

I'm running a rails3 project with an external asset host for all javascript, images, swfs etc. This is on a completely different domain. So know I tried to embed some SWFs using swfobject. In development (same host) everything works fine, but in production (different hosts) it doesn't start the flash (firebug shows the file is loaded but nothing appears on the page). I already put this crossdomain.xml file in the root of the asset host but it does not change anything at all.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />

[code]....

What can I do to make it work? The SWFs I'm using are not developed by me, so I cannot change them. Some are simple sounds, others are videos and small "apps". I don't want to have to make rails serve the swfs.

View 3 Replies

SWF - Flash Links Do Not Work Cross Domain

Apr 6, 2011

I have a flash accordion embedded using SWFObject. The SWF and related XML file are hosted on one domain. I have about 10 sites embedding this SWF from it's hosted location, both the SWF and the XML. The accordion links to various pages of my domains. The domain in which the SWF and XML file are hosted, the links work as expected. The other domains that the SWF is not hosted on, the links do not work at all. I verified it's a cross domain issue by placing the SWF and XML files locally on each domain and they worked, but this is not how I want it setup. I attempted to use crossdomain.xml and allow access from all hosts but that didn't work either.

View 1 Replies

Professional :: Flash 10.1 Update Kills My Cross-Domain?

Jun 16, 2010

The update to Flash 10.1 kills my cross-domain. Formerly, my file looked like this:

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy>[code]......

I updated to this based on what I read on this site:

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM [code].....

We are using SAP Business Objects Xcelsius, which creates the .swf file that users are using to access our environment. So, I do not have any control over the code base itself.

View 2 Replies

Flash :: Php - Streaming Media With A Cross-domain Proxy

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

Flash :: AS3 Cross-domain Error - Image Resizing

Jun 17, 2011

I have a SWF file which is on suppose [URL] and I have an cross domain file

[Code]...

I dont know that happend. When I user Firebug, the swf is looking for [URL] it is present there. But [URL] is not there(I can't put any corssdomain file there, because I dont have any access). The issue is image from (SESSION 1) is resizing and image from (SESSION 2) is not resizing on the COMPLETE Event.

View 1 Replies

Flash :: IE History Tracking / IFRAMES And Cross Domain Error

Jun 2, 2010

We have a Flash application that is running within an HTML file.For one page we call a legacy reporting system in ASP.NET that is within an IFRAME. This page then communicates back to the Flash application using cross-domain scripting (document.domain = "domain" is set in both pages. Now the kicker. Flash has history tracking enabled.This loads the history.js file that created a div tag to store page changes so the back and forward buttons work in the browser.Which works for Firefox and Chrome as they create a div tag.In Internet Explorer, history.js creates another IFRAME (instead of a DIV) called ie_historyFrame.When the ScriptResource.axd code attempts to access this with:[code]At my wit's end on this one.We have users who need to use IE to access this site. They are big clients who we cannot tell to just use Firefox.

View 2 Replies

Actionscript 3 :: Flash / Facebook - Dynamically Adding Cross Domain Policy To SWF?

Sep 20, 2011

We're building an app that loads a user's photos from facebook. It seems facebook hosts these images across multiple hosts. Is it possible to dynamically add a cross domain policy, after a Security sandbox violation has occurred?

[Code]...

View 2 Replies

Actionscript 3 - Limit Flash Movie To Work Only On Single Domain?

Nov 27, 2010

How can I limit flash movie to work only on single domain. For eg what I need to do if I want flash swf to work only on [URL]and it should not work if -

1. opened/embedded from other [URL]
2. Downloaded
3. opened in embedded IE Activex Controls

View 2 Replies

Media Server :: Install Fms 4 In Windows 7 And Access From A Webserver In Different Domain

Sep 1, 2011

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

[code]...

View 8 Replies

Flex Application Trying To Access Crossdomain.xml On Server When No External Domain Has Been Specified?

Apr 27, 2011

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.

View 2 Replies

Actionscript 3 :: Access Of Any Domain (for Test) And Copied It Directly Into File Server?

Mar 15, 2012

In code I use this before URLLoader (swf will be used with many different domains and this will be changing in time):

Security.allowDomain("*");

In http:[url]...., I have this for test:

<?xml version="1.0" ?>
<cross-domain-policy>[code].........

I used [url].... to create access for any domain (for test) and copied it directly into file server and also test if [url].... is accessible. I checked flashlog.txt and found that [url].... is loaded but will be ignored because of its syntax error - its generated by crossdomainmaker website and also correct with specifications and examples over internet, so what can I do?

View 1 Replies

IDE :: Cross Domain Policy?

Jun 16, 2008

any one have a snip of code to allow the flash player to acess a cross domain policy file. i have one but its for as2 i tried it in as3 and it throws me errors.

View 4 Replies

ActionScript 3.0 :: Cross Domain XML Not Loading

Aug 4, 2010

I created an XML gallery in as3 that will be loading images from a different domain.

I have a .swf (swf1) on serverA that loads an XML from serverB. The XML on serverB points to the image locations located on serverB (I need to host the images on serverB because server A doesn't have enough room).

The images load fine from swf1 locally in Flash, but when I publish swf1 to serverA, the images do not load. My guess is that the XML on serverB is not being loaded correctly because I can see that swf1 on the webpage.

Here is how my XML is set up:

<?xml version="1.0" encoding="UTF-8" ?>
<images>
<image src="http://serverB/media/images/image.jpg" title="This is image 1"/>
</images>

[Code].....

View 2 Replies

ActionScript 1/2 :: Cross Domain XML Not Working?

Apr 10, 2009

I recently obtained two different domains that point to a subdirectory of another domain server. The swf file I created does not show up when I use the domains that are pointing to the subdirectory of the original domain.I placed an xml file into the root directory that contains the following code:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">[code]....

Nothing shows up. Is there something else I need to do make this work? I created the swf file using CS3.

View 5 Replies

Professional :: Bypass The Cross Domain Xml?

May 1, 2011

What my swf (on mysite1.com) need to do, is that POSTing some php values from mysite1.com (paid hosting) to a file on mysite2.com (free hosting) and get the 100% of the html response. I've started this project in AS2 but I couldn't find a function that get the source of a website, so I recreate the project in AS3 with URLRequest and URLLoader. Everything went fine, I've finished the project, uploaded the file, and there comes the cross domain problem. I can't upload/modify any file on mysite2.com because I can only add pages/posts (like a blog).  I've read at least 20 forums about this, but can't find the solution.

I know (from the manual) that in later versions of flash and/or AS, the swf file asked the user for permission (like now for the webcam). Is there a way to do this in as3 or any way to bypass the need of the crossdomain xml file? If no, what is that older flash version that can do this permission request or that don't need that xml, (but still can post to php files and get the whole response).
 
I'm really upset, because I worked a lot of hour on this, and I was so happy that I could finish it, but I didn't know that there is such a big difference in security between local and online swf files.

View 4 Replies

ActionScript 2.0 :: Cross Domain XML Sockets?

Aug 11, 2009

I am currently building an XML Socket Server that I am running locally on my computer. My flash client I build as an executable that runs on your computer and connects to mine via port 9000. I want however, to be able to run the flash client as a .swf in a web page on my website. I have a security policy but I don't know if I am using it right. My server is extremely basic still, it has no admin controls or even authentication or anything, right now it just spits back what it is given essentially, while I test out things and stuff. I just don't know how to handle any cross browser stuff.

********************************************All my code works as is if the flash file is compiled as a .exe from any computer. I have tested that. It just doesn't work as a .swf in a web browser.********************************************The file currently is set to just have the user type in their name and then when they move their mouse, it shows up on all other clients with their names next it it. Basically testing a real time activity updates.Here is my code and other files:My config.xml file:

HTML Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<config>

[code]......

View 4 Replies

ActionScript 2.0 :: XML Cross-domain Loading

Dec 6, 2010

I'm making a flash-based website which would use some information from a separate domain to update its contents. The XML file (document.xml) rests under one domain (let's call it updater2.net), while the core site rests under another (e.g., coredommain.net). I looked at some literature and I picked the simpliest method utilizing this small .php file (called loadXML.php here) and the A/S excerpt:

[Code].....

View 4 Replies

ActionScript 3.0 :: Cross Domain Policy?

Dec 12, 2010

does the cross domain policy has to be in the root of the website or can it be in any subdirectoy from which we wish to load images form another domain?

View 0 Replies

ActionScript 3.0 :: Bypass The Cross Domain Xml?

May 1, 2011

What my swf (on [URL]) need to do, is that POSTing some php values from [URL] (paid hosting) to a file on [URL] (free hosting) and get the 100% of the html response. I've started this project in AS2 but I couldn't find a function that get the source of a website, so I recreate the project in AS3 with URLRequest and URLLoader. Everything went fine, I've finished the project, uploaded the file, and there comes the cross domain problem. I can't upload/modify any file on [URL] because I can only add pages/posts (like a blog). I've read at least 20 forums about this, but can't find the solution.

I know (from the manual) that in later versions of flash and/or AS, the swf file asked the user for permission (like now for the webcam). Is there a way to do this in as3 or any way to bypass the need of the crossdomain xml file? If no, what is that older flash version that can do this permission request or that don't need that xml, (but still can post to php files and get the whole response).

The other problem is that I cant use a php file on [URL] like a proxy between the sites, because this thing I want to access on mysite2 is IP address dependent, so each different user of the flash file has to be "tracked" different. (like a visitor counter - if each user of the swf access mysite2 through a php on th first site, they are tracked as 1 user (because they are tracked with mysite1 IP address))

View 0 Replies

ActionScript 2.0 :: Cross Domain Loading Of FLV's?

Oct 31, 2008

Alright, I was told that I need some sort of file on the domain hosting an FLV in order to load it from another domain. Is this true? If so, step by step, how would I go about loading this FLV if I were to say.... put it on newgrounds, and host the video myself. I've posted on the newgrounds forums, but that place is a joke.

View 1 Replies

Professional :: Cross Domain Retrieval Of Xml Data?

Jan 12, 2010

Question: How do I create the ability to load a xml file from another domain?
 
For example, I am creating an embeddable video player that will play on the domain which the xml file resides and also embedded on other sites. I am to the point where the video player completely works on the domain that the xml file resides and when I embed it on another domain, the .flv plays but the xml data will not pull.
 
FYI, I have complete access to the domain where the xml file resides.
 
Here are some snippets of security settings that I have been trying to get to work:
 
Code from Player:
System.security.loadPolicyFile(domain + "data/crossdomain.xml");
Code from "data/crossdomain.xml":
<?xml version="1.0"?>

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved