ActionScript 3.0 :: Loading Data From A PHP Page Hosted On A Different Domain?
Aug 2, 2009
i have a php page hosted on 1 domain and a flash login page on another and im trying to get the SWF on one domain to retrieve data from the php page on the other domain.If i run the SWF file on the same domain as the login script it works fine, The swf retrieves the info from PHP The current AS code is here.[code]
View 9 Replies
Similar Posts:
Oct 22, 2010
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?
View 3 Replies
Dec 28, 2009
I have a flash swf loading data from an xml via jsp from the same domain. The swf is displaying the data perfectly fine from where I am at and for most of my user. However, one of my most important user report to me that the flash isn't displaying the data.
So here lies my question. At first, I thought it was merely an Flash player not up to date problem, but that user said he's using flash player 10 already and he has tested it with all sorts of browser. I have also try connecting to the website from that user's area, and it appears to be fine as well.
Base on the user's feedback, he was able to load the flash, but the xml data just won't appear. Somehow, I believe that it could be an individual computer's problem, but since I am no expert in the networking, and am having some trouble solving this problem,
View 4 Replies
Jun 26, 2009
[URL]when i test the site on my computer with flash it works. when i upload to the internet the xml data is not picked up. when i had the xml data in the same subdomain it worked both on my computer and in the internet...but i need the data to be accessible...
i have tried adding cross domain "policy files" for permission, but either they are not working, or i am doing it incorrectly...
View 2 Replies
Dec 9, 2011
I created some game and would like to let the users play it only on my domain, so to forbid to play it offline or put on some other site. Is there a way to do it? Somehow check domain or so?
View 1 Replies
Sep 1, 2011
How can I programatically make a picture of a flash application in an ASP.NET/C# page which is hosting the flash application?
View 2 Replies
Aug 10, 2008
Loading data from the test.php into the startLoading();
How do I load the data from test.php "echo $photo_out;" into the startLoading();
loadVariables("test.php", this, "POST");
infoField._visible = true;
startLoading(test.jpg);
[Code]....
View 16 Replies
Sep 30, 2006
I am loading data from xml file.There is 12 XML nodes (in this case)I don't want to show all xml data in Flash by default.I am attaching one button on the stage for every 5 xml nodes (depends how much data I want to show per one page, let's say 5)So every time user clicks on one of this buttons, the data from startIndex to endIndex of this button is shownFIRST: I have a problem clearing the attached data every time user clicks the buttonSECOND: I have a problem with the last button's endIndex variable. it should be 12 not 15 (in this case)
View 1 Replies
Oct 13, 2010
find the code to pull some simple text from an external website's RSS feed into a basic text box in a Flash movie. It would need to be in AS2 to fit with the website. I understand I need to pull the content via an xml / php page under my own domain in order to get around the Flash security, but I still can't scrape together the right code for it to work.
FLash CS5
Actionscript AS2
Publishing for player 9
View 1 Replies
Feb 18, 2010
I have a problem with the security sandbox of the flash player. I need a data grid to get its data from a xml located in other domain. I have prepared a crossdomain.xml file with this structure: <?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><site-control permitted-cross-domain-policies="all"/><allow-access-from domain="*" secure="false"/><allow-http-request-headers-from domain="*" headers="*" secure="false"/></cross-domain-policy> I have put this file in the public_html folder of my host, and also in the folder where the app is located but still not working...
View 2 Replies
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
Sep 3, 2009
developing an e-card system in AC2. The system mainly consists of two flash movies and is supported by PHP scripts and a mysql database for data storage.The first part is the create/edit screen where the users can upload a photo, mask any desired area and apply some simple transformations such as size, rotation, brightness. They can also select a card (an animated flash movie) and preview the animation and finally type a message for the recipient.The other part is the result screen where the finalised card is presented and the user can then email a link to it to other people or grab some code to embed it on another site. The link will point exactly to this page. An example of the embed code is the following:
Code:
<div style="width:444px">
<object width="444" height="493">
[code]......
View 1 Replies
Oct 21, 2009
I am building a flash AS3 movie for a client that uses a facebook-connect authentication then loads some dynamic xml and plays.At the last minute the client has informed me that they actually need the flash movie and assets to reside on an external server, so the flash and the xml are not going to live on the same domain.I have the added problem that the xml comes from a PHP file with a session that has been authenticated, so I don't really have the option to use a proxy PHP include to make this work (I believe the session would be broken)
View 2 Replies
Jun 19, 2010
I am trying to load an xml file from wikipedia into my flash movie.
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, tweetLoaded);
loader.load(new URLRequest("http://en.wikipedia.org/w/api.php?action=query&rvprop=content&format=xml&pageids="+subNum));
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorFunction);
This works fine when the flash file is run locally but when I upload to my domain it does not seem to work. I have read elsewhere that the cross domain rule does not apply to XML files only to images and other media. Is this true? If not is there a work around so that I can load in XML files from domains other than the one the swf is hosted on?
Okay I am really confused, my program queries both Bing API and the media wiki API. The Bing api call works fine, I can retrieve the XML search results back from it fine. But the wikipedia call does not work (online). I have tried listening for the Security_Error on the wikipedia call but it does not fire.
View 2 Replies
Jul 30, 2010
I'm trying to load swf like this:[code]but the problem is that some of the swf are in AS2 and their script don't excute (a simple stop() on the last frame is not executed and the movie loops)If I remove loader_context.securityDomain= SecurityDomain.currentDomain;it works, the AS2 files scripts are executed but flash throws a security error for the swf that come from a different domainSo I'm wondering if there is a way in an AS3 file to load AS2 swf from another domain ?
View 1 Replies
Jul 13, 2007
I want a SWF to load an XML file that is on another server. Just for this example: swf is on [URL]. And my XML code is like this:
ActionScript Code:
function xmlLoaded(success){
if (success){
_root.myText_txt.text = myXml.firstChild.nodeName;
[Code] .....
The problem is, as soon as the XML is not on the same domain as my SWF it can't load the XML.
View 7 Replies
Apr 2, 2006
I have a flash file that uses actionscript to read a remote XML file. [URL] for the tutorial that allowed me to accomplish this. Everything is working pefectly except one little issue.
When the movie loops it requests the XML file again. How can I have it request the XML file only the first time and just re-utilize the data?
View 9 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 locally, but fails when uploaded. Is there a security setting I should be aware of?
View 2 Replies
Mar 5, 2012
1 - SWF must have ability to loading binary data from any domain.
2 - SWF cant load policy XML file from url, cause upload form allows me only to upload swf files, so I cant include any other data.
I tried:
Security.allowDomain("*");
But it works only for SWF files.I tried to embed policy XML file:
var dataXML:XML =
<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
[code]....
This will make an security error, if file is from different domain than SWF file.Its possible to get binary data from JavaScript using ExternatInterface in AS3 code.Here is cross-browser library for reading files binary: binary reader and later version jDataView.
View 4 Replies
Jan 16, 2009
I am using the loadVariable method of the MovieClip class to load some data. I have a question about the "transfering data from domain" message I see at the bottom of firefox for a page that has this swf loaded in. The load variables call obviously complete very quickly (the output is just h=1&d=1, or something as short as that) but the transfering data remains the entire time the page is in the browser (like half an hour later, etc).
View 1 Replies
Feb 26, 2009
I'm having the site at one domain. Within the site, i used loadVars to load txt content into it. The txt file is at another domain. So what security settings or any other thing that i have to look out for?
When i view it on my computer, it works fine. But when i view it from the browser, it doesnt work.
View 1 Replies
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
May 31, 2010
I have to load xml from external domain , so my code looks like this.[code]crossdomain xml file also loaded and security allodomain is in(*).
View 2 Replies
Nov 2, 2010
I am trying to get a xml into flash from an external domain using a PHP proxy to get around the cross domain issue.
I have created a simple swf file that is meant to load the xml and print out some data from the received file. Unfortunately I havent been able to get it to work as yet. Here is the action script
Code:
var Sender = new LoadVars();
var GetData = new XML();
GetData.ignoreWhite = true;
[Code].....
All right got that working as it was a simple syntax error with the php file!
Now all I need is to make the url dynamically sent from the flash
View 0 Replies
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
Apr 18, 2011
for some reason my Flash will fail to load images from the domain my Flash lives on.
If both the browser URL and absolute image link don't include "www" in the URL it breaks. I'm sure this is a sandbox issue, but how would I fix it?
View 0 Replies
Feb 9, 2006
so I have a problem. I made this Flash application that reads live commentary from an XML file and displays it on screen. There's a refresh every 30 seconds because the data is likely to change alot since it's a live commentary. The SWF file was made in 2 versions, using the same code, for two different URLs, both located on the same server ([URL] and [URL]). The path to the application is "oc2006"... the server is using SSI (server side includes) so there is one HTML file but it loads different templates depending on what URL you come through.
[Code]...
This is where I start going insane- because the XML files are located in the sub-folder "live/commentary/ergebnisse/olympia/" (from the server-root, not from the "oc2006" folder)... and the first commentary file that is opened on startup is "2006-02-10.xml"... opening that file is no problem.
[Code]...
View 1 Replies
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
Apr 9, 2009
I've created a flash app using ActionScript 3 that basically does the following: Loads an XML file on Domain A. The XML file contains URL's to images on Domain B and Domain C.Pulls these URL's from the XML and creates Loaders Creates Flash Bitmaps out of the oader.content.When I test this on my local hard drive, the images load from Domain B and Domain C with no problem. However, when I host the flash file on a server, it's unable to load the images.
View 14 Replies
Oct 31, 2009
Below is the script I'm using to pass a parameter to a script in the same server (and folder) as the flash file. It gives "null" as the required variable (use_url) value, instead of what the script is giving. The script itself works, when tested in a browser.
What it should do - it receives a value for "lesson_id" variable, passes it on to a script "movie_url" and receives a response with a new variable "real_url" and it's value.[code]...
View 3 Replies