ActionScript 2.0 :: Flash RSS Reader Vs Crossdomain.xml
Aug 10, 2010
I'm building a Flash based RSS reader, to be run on a kisok, but it's getting tripped up by crossdomain issues. In the abstract: SWF loads local TXT file containing paths of remote RSS feeds (XML files), then loads the feeds stored at those remote paths.
[Code]...
I was under the impression that an single asterisk/wildcard in quotes would mean any domain could access content on that server. But it's not working that way. I've tried changing the Publish Settings to "Access Local Files Only," and "Access Network Only," to no avail. I've also tried adding all of the relevant files to the trust list in Macromedia's Global Security Settings page.
View 2 Replies
Similar Posts:
Jan 25, 2010
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?
View 1 Replies
Nov 3, 2003
I'm almost certain that this is impossible, but I had to ask. One of my clients wants to know if I can build something that can read the text in Flash, kind of like an HTML reader for the visually impaired. The user would be required to have speakers.
It wouldn't have to read all of the text in the movie, just certain dynamic text fields that are in the SWF.
View 3 Replies
May 27, 2009
is there a way, anyway, to save a flash file to reader?
View 15 Replies
Oct 12, 2009
Creating a CD to hand out with a pdf on it. i'd like to check for Adobe version or if reader is installed in flash menu (exe) before they're allowed to open it. then have them download latest from [URL] if not installed. seems fairly simple, just not finding anywhere that will give guidance.
View 1 Replies
Feb 15, 2011
I needed a personalized rss reader for this site i m building, but i m not familiar with Flash so i used an online tutorial. The resulting file plays nice when i preview it in Flash, but it wont return anything when i preview it in html or save it and open it as a file.The flash itself is made mainly of two white blocks. The first one shows a list of the news on the rss feed, if one of them is clicked, the second panel retrieves the info for that news article and previews it.As i said it works nice previewed on flash but not if saved in html nor uploaded to the server as part of a page.
import fl.managers.StyleManager;
var logFormat:TextFormat = new TextFormat();
logFormat.font = "Myriad Pro";[code]......
View 1 Replies
Aug 7, 2009
This is called from flash/action script
File name: rssProxy.php
RSS reader uses PHP any work around on a non PHP server?
Script below:
<?php
$rss = $_GET['rss'];
// make sure that some page is really being called[code]....
View 2 Replies
Dec 19, 2011
i'm interested to write barcode scaner with flash which would work for any platform that has built-in camera and while scanning wich automatically uses the camera for barcode reading . how to accomplish this or have a guide for this?
View 2 Replies
Jun 22, 2011
I have a question concerning this AS3 script, which is for XML-NEWS-READER i n FLASH
ActionScript Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
var imgLoader:Loader = new Loader();
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImgLoaded);
var url:URLRequest/*
[Code]...
As you can see there is a MovieClip in the Library: NEWS_item. The Clip has a textfield and a Imag field(a MovieClip). While the text is passed in the text fields of the NEWS_item Clip there should be afterwords the photos be placed with addChild(imgLoader). But online the last Image appears. What is wrong here?Does someone have experience with xml readers an images ?
View 0 Replies
Jan 3, 2010
I'm making a simple RSS reader in flash. I test the swf in Flash, it works perfectly. I publish the swf with html through Flash, and it works perfectly. However, when I incorporate the swf into a web site that I am currently developing, using swfobj 2.0 (dynamic) procedures (followed both by google code and lee's video tutorial on using swfobj 2.0), the html rendering does not work. I've tried copying the html code that comes from the Flash-published html, and paste that into the website I'm developing, but that straight out just doesnt work. I'm going to attach the AS3 code here. I pull the RSS xml info into flash, do a bit of string analysis to replace inactive links with active and cut out another snippet of the string, apply a style using an external css, and finally render as html.
Code: Select allvar loader:URLLoader = new URLLoader();
loader.load(new URLRequest("[URL]"));
var xml:XML;
function onDataComplete(e:Event):void {
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
[Code] .....
Latest version of FF is used in both pics. Also, an image to illustrate what happens:
View 3 Replies
Dec 9, 2008
Im considering making an online flash PDF reader.
View 3 Replies
Mar 17, 2012
I´m working in a rss reader for my website, that has already a rss channel created. I created this in a file that is called news.rss. So I made the interface of the reader in Flash, and then continue inserting a code. But when I try the swf, it just shows the title of my channel, but any of my news. [code]...
View 1 Replies
Jun 28, 2010
I have a (self-created) swf demo with button triggering getUrl('SampleTargetPage.html')Now I want to place the swf at our cdn at [URL] while my html page resided on [URL]More structured:
[URL]
I thought it would be sufficient to provide a crossdomain.xml at cdn.example.com to allow the links work. But: it seems like the Flash plugin never queries the crossdomain.xml at all!Now, is there something which I must add in the SWF itself to make this work?
edit: do I need to use Security.loadPolicyFile?
edit: Maybe I don't need the crossdomain.xml at all because everything's under [URL]?
View 2 Replies
Sep 2, 2010
I have a flash app hosted at The contents of that crossdomain.xml file are as follows:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
[code].....
View 2 Replies
Jun 7, 2011
I want to open up a pdf-document (included within the *.air-package) with adobe acrobat (or any other pdf-reader). I've followed this solution openWithDefaultApplication fails on files in application folder.
var _myfilename = "John_Doe-tax_return_2011.pdf";
// = my filename
//run:
var realFile:File = File.applicationDirectory.resolvePath(_myfilename);
var tempFile:File = File.createTempFile();
realFile.copyTo(tempFile,true);
tempFile.openWithDefaultApplication(); //nothing happens ?
//end;
I've tested it all, so it's not a directory issue
trace(tempFile.extension)
// > tmp (?? tempFile.extension = "pdf" doesn't works)
trace(realFile.exists)
// > true (original pdf-document exists!)
View 1 Replies
May 4, 2006
I have a reader on my site, but it doesn't reader ATOM feeds?
View 1 Replies
Nov 3, 2009
I have a web service running in http://server/abc/service which is being accessed by Flash from a different domain. I deployed a cross domain policy file to http://server/abc/crossdomain.xml and made the Flash load it using: flash.system.Security.loadPolicyFile("http://server/abc/crossdomain.xml");
in the constructor of the main movie clip. However, when the Flash starts, it requests and loads this file (observed in Firebug), but then it also requests it from the root of the server (i.e. from http://server/crossdomain.xml) which does not exist. Subsequent HTTP requests don't work reporting security cross domain errors. When I put the policy file to the root of the server, it all works. Why does it request the policy file from the root as well even thought it loads it from the subdirectory? Why the subdirectory policy file is not enough?
I should also note that the two policy files are loaded before any application HTTP requests are issued.
View 2 Replies
Apr 28, 2010
I am trying to connect to a socket server from flex. I read, on adobe's documentation, the client automatically sends a "request-policy-file" xml element to the socket before allowing it to be opened, and should receive a policy file.
The client sends the xml element as expected, My server receives it (on the port I want to use, port 6104) and replies on the same port with:
[Code]...
View 1 Replies
Aug 10, 2010
I am trying to build a youtube player with flash and everytime I load a video, there is a runtime security sandbox error..I already put crossdomain.xml in my root serverbut I am still getting the errors...Do I miss something? Do I have to load it into my flex project?
<!-- <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
[code].....
View 4 Replies
Oct 27, 2010
I have updated the crossdomain.xml security settings for my site - but it seems that the older version is being cached in both IE and Chrome.I've checked the headers sent by the server and it's not sending any cache control headers that would be forcing the browsers to be caching crossdomain.xml.
In an attempt to get around the issue I've also linked to my crossdomain.xml file in an iframe on the site. This hasn't worked though and flash still seems to be using the old security settings.
View 2 Replies
Nov 2, 2010
How can I disable crossdomain.xml check when the executing swf has been loaded on localhost?
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://localhost:2541/xxx.swf cannot load data from http://www.com/xxx.swf.
I want to assign full trust to the HTML5 web application running locally. I want to disable any crossdomain checks.
Some external servers do not provide crossdomain.xml for their hosted SWF files.
I am running locally. I want to have full trust for debugging purposes.
How do I do that?
I will not consider AIR as it cannot be used from HTML5 application.
Adding the url "http://localhost:2541/xxx.swf" to "C:UsersArvoAppDataRoamingMacromediaFlash Player#SecurityFlashPlayerTrustu.cfg" did not help.
[URL]
View 3 Replies
Feb 7, 2011
How do I set the flash crossdomain.xml file to only allow https ssl secured connections? I have this but I think this will allow non secure connections too.
< cross-domain-policy >
< allow-access-from domain="*" secure="false" / >
< /cross-domain-policy >
View 1 Replies
Apr 12, 2011
The player loads a flv video file seeon.flv from another domain.Currently, even without a crossdomain.xml in the server where seeon.flv is located, the video is loaded fine.This is not the behavior I want or expect it to be.I also tried putting a crossdomain.xml with the following content:
<?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="none"/>
</cross-domain-policy>
From firebug, I could see that there's a request to the crossdomain.xml before accessing the video file (seeon.flv).It returns the content fine , with the Content-type of application/xml, but it still allow the cross domain behavior.
View 1 Replies
Aug 20, 2009
I am developping this video player: In the exemple above, the player is loading this start image, to display it before the playing of the video:Here, I then tell the player to load the same image, but on another domain: As you can see, it doesn't work anymore. I searched on Google and discovered that I theorically had to add a crossdomain.xml, to make sure that there isn't security protection that avoid swf to load images from other domain. so put these two files on my different domains, to tell the swf to accept files from all * domains
View 2 Replies
Dec 22, 2009
create a xml news board, i finally completed the news board and i had no problem displaying my offline xml file.I uploaded it to my testing server and nothing came up. i parse the rss feed in a different way ?when i tested it on my testing server. but when i tried it locally from my flash app it worked.
View 5 Replies
Mar 29, 2011
I am trying to get the RequestToken with flex from
[Code]...
View 3 Replies
Jun 22, 2011
If you want to use content on another server, that server needs to host a crossdomain.xml file allowing access. If this file isn't there, flash won't let you access it. Given that it's easy enough to just write a proxy (say a php script that curls the external URLs) what is the purpose of this restriction? It seems that the content is still 100% available to external people, but there is just one extra hoop to jump through.
View 2 Replies
Aug 2, 2011
I'm writing a web application using three tier architecture. I have three Amazon EC2 ubuntu servers. The first server handles the presentation of the application and includes my main flash file. The second EC2 instance represents my application server. It contains the AMFPHP files and corresponding web services. Finally, the third instance handles persistance and is running a MySQL database. Both the presentation and application servers are running an apache web server. I created security groups specific to each tier such that the presentation layer will accept all incoming traffic on port 80 while the application layer will only accept incoming traffic from the presentation server. This should allow anyone to request my web application from the presentation server but prevent anyone from accessing the web services on my application server.My flash application cannot make web service calls to my application server. When a request is sent, I never receive a response from the server and eventually receive a security sandbox error.[code]It seemed odd that I wasn't receiving a response, so I decided to try a couple of things:
1. I connected to my presentation tier via ssh and attempted to use lynx to connect to my application server's gateway.php. I was able to connect without any problems.
2. I used Chrome's developer tools window to observe network traffic when loading my site. I found that it is attempting to load the crossdomain.xml file (which resides in the root of my web server [/var/www] on the application tier) using a GET request; but strangely, it times out and fails. This is where I am confused. How come I can use lynx on the same machine to connect to the web server on the application tier but yet the flash app can't access the same file?
While running some tests, I decided to open up the application server instance's firewall such that it can receive http requests from my IP. As soon as I did this, the application being hosted on the presentation tier immediately began working (Received a response from the web service)! However, this means I would have to force my application tier to accept http requests from the internet in order to work, which is not something I want to do. I don't understand why making this change would allow the application to grab the crossdomain.xml file. If the application server's security group is set to accept incoming http requests from the presentation security group, it should have no problem acquiring the crossdomain. xml file residing in the web server root of the application server right? I've spent more time than I would like looking into this issue. I really would like to setup a three-tier environment for my application in which the flash application will be able to send web service requests to my application layer. The most confusing part about this is the fact that when I add my computer's IP address to the application server's firewall, everything seems to magically work as intended. Please correct me if I am setting my application up in the wrong way. I am basing my architecture off of the following:URL..
View 1 Replies
Jan 9, 2012
I have a Windows Server 2003, with a domain: "mydomain.com" and everything goes right until the Flash application tries to load de crossdomain.xml, because it tries to load it from "servername" and obviously the request fails. Currently I have read all about crossdomain.xml , what it is, where it goes although I can not find what I have to do so my flash application requests the crossdomain.xml from my domain "mydomain.com" and not from my server "servername".
- The domain is up and can be accessed from the internet
- The crossdomain is on the root folder and also can be accessed from the internet
View 2 Replies
Dec 8, 2009
With a looming deadline for a big project, I've just wasted an entire evening trying to find out why my application won't properly load image content when the .swf is deployed to a web server.
Here's what I'm trying to do:
- load a jpeg image from a different domain than where my .swf's are hosted
- turn it into a Bitmap object to apply smoothing
Loading the jpeg itself is no problem, as long as I do this:
[AS]addChild(loader);[/AS]
As soon as I try to access loader.content, or loader.contentInfo.content to create a Bitmap, Flash simply aborts the script.So there you have it: a typical security sandbox violation (although no error is ever thrown). Solution: crossdomain.xml! Or that's what I thought.Now the image host has a crossdomain.xml in it's root, with *.rocketclowns.com as an entry. I'm testing my app from www.rocketclowns.com.Even if I try to force load the policy file:
[AS]Security.loadPolicyFile()[/AS]
Or, with LoaderContext:
[AS]// create a loader context that
// checks for policy files
var context:LoaderContext = new LoaderContext();
context.checkPolicyFile = true;
// use the context with your call to load
myLoader.load(request, context);[/AS]
...I still can't access my loader.content.
View 1 Replies