Pull The Content Via An Xml / Php Page Under My Own Domain In Order To Get Around The Flash Security?
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
Similar Posts:
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
May 20, 2010
I am developing a player and I want to make it for only one domain usage for one download. If user needs again then again hew needs to download another version from my site. How can I make it.
View 1 Replies
Sep 25, 2009
So i've searched the internet and from what I gather a sandbox violation error deals with cross domain issues. But i'm working on one domain and getting this error: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http:[url]....swf cannot load data from http:[url]....
I've done this many times on my own site with no problem, however the site i'm working on has two domains pointing to the same site so I included:
Security.allowDomain('http:url]....)
View 3 Replies
Jul 1, 2010
I have a master page and a child page and have placed the javascript code inside the child page for flash movie.
The problem is the movie seems working when there is a alert on, without at least one alert msg, the code does not work, I am sure you people can solve, I can see that the following code works well in both Mozilla and IE, but only if the alert is ON, if I put it off, then the code does not work. Can anybody tell me what is the workaround :
[Code]...
View 2 Replies
May 30, 2008
how does it work?
Code:
var domain = "http://www.mydomain.com";
System.security.allowDomain(domain)
View 2 Replies
Jul 21, 2009
for some time i used a contact form in a flash website, and all worked well.then suddenly, when i tried to submit it i got the following error (i replaced my domain name with "domain", for paranoiac reasons):
[Code]...
View 1 Replies
Aug 9, 2010
I'm creating a small widget for a client which will read different rss feeds. It works for first feed but when I click for another one it doesn't load. I traced and it shows me only 2 loops even there are 10 or 12 news.
[Code]....
View 2 Replies
Dec 8, 2002
How to post variables to another domain. The other domain is a free cgi-bin service. So I cannot upload a shim movie there. That is, I need to post variables directly to a cgi script on the domain. Is it possible to do so?
View 5 Replies
Jan 21, 2009
Any one come across this situation where users of a cd-rom gets security problems when for example click on pdf button to view in separate window.
View 3 Replies
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
Jan 8, 2008
This is a two fold query involving the same issue. As you know, if you attempt to use bitmap.draw() with an object (image or swf) that is not in the same domain as the calling swf the bitmap will not draw. As described by Adobe livedocs, if Security.allowDomain() is setup in the calling swf then draw() will work. However, I cannot get this method to work. I have supplied an example fla (make sure to get the .as for it too).
1. How do I get Security settings right to permit bitmap.draw() to work with objects from another domain? (not any domain - just the domain I define in the allowDomain parameter)
2. How do I setup an event handler (listener) for bitmap.draw() so I can detect when it doesn't draw?
[Code]...
View 2 Replies
Jul 7, 2004
I'm having a hellova struggle with this one. I want a pull out folder-style menu that scrolls out WITH the content as well. When one tab is out and another is clicked, I want the tab thats no longer used to close itself.[URL]..
View 3 Replies
May 7, 2010
pull some text (numbers) from another page and the only way (at the moment) I can think of doing it is to load the page source into a string (or another var), and then break the string down to search for the particular text.
I found a way to do something similar in PHP, but I want to run this from the local PC which doesn't (and can't) have any form of web service running.
For anyone who's interested in why ... we have about 25 odd printers (identical) that every month we collect a colour and mono page count from. Every printer is connected to the network and each one has a web-based menu. To get the page counts, it involves going through around 4-5 different pages, and this has to be done with each printer. So I thought it would be handy if the text from the page counter could be pulled onto a single page (or stage).
View 1 Replies
Apr 16, 2009
I am trying to find a way, if any,to pull show information from their myspace page to show in my flash app.Want to do this using php,but other than that not sure where to begin.
View 1 Replies
Feb 23, 2010
build an image gallery on a site i'm building.The way I have built the site use sactionscript to pull the each different page through as an individual swf file. see: http:[url]....The page im putting the image gallery on is 'Virtual Tour'.When I test this specific page in flash it works fine, however when I view the master flash file and click 'Virtual Tour' then it doesnt pull the images through. Im not sure why this is, as if you view the swf directly then you can see the images do work: http:[url]....
View 4 Replies
Oct 17, 2011
I'm running a webgame with a bunch of users. Recently, some have complained about the game crashing on startup. Using a debugger, I found the error:
Quote:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: game10.swf cannot load data from Error #2032: Stream Error. URL: php/loadStartData.php
(NB: I can't post entire URLs as I'm a new forum user, but the two URLs in the error message are full URLs, and the domain names match, so that's not the issue.)Now this error only occurs for some user accounts. Others are able to play just fine on the same computer, but logged in with a different account. In other words, it's not related to browser, Flash Player version, etc. Most users load the game fine, though.
I've searched around on the web, and the error seems to be common when you try to load resources between domains, in which case a crossdomain file is the answer. However, here, I'm just trying to load a PHP file in a subfolder ("game") which is in folder where the swf file is residing.What's even weirder is that other PHP files in the same subfolder will load fine using the exact same code. And again, this is all just for some user accounts. Other users run the game fine on the same computer.The AS3 code that tries to load the PHP file is simply
Quote:
var startDataPath:String = ("php/loadStartData.php");
var startDataPHPRequest:URLRequest = new URLRequest(startDataPath);
var startDataPHPLoader:URLLoader = new URLLoader();
startDataPHPLoader.addEventListener(Event.COMPLETE , sortStartDataXML);
startDataPHPLoader.load(startDataPHPRequest);
View 1 Replies
Jun 3, 2011
I have moved a web application from old domain to new domain. I cannot get Flash to engage. I have changed the domain in flash_images.php file to the new domain. I have a flash_box.swf file and I have a js file these are the only flash components that I see--old domain is e.g. www.example.com new domain is [URL]..I am not a flash developer, how do I get flash to work on the new domain?
View 3 Replies
Nov 18, 2008
I'm loading several pictures into my movie. How can I set the order of which one should appear first? Do I add an listener or how should I do it?
View 12 Replies
Jun 16, 2003
How do i change content on a page each time a user visits or refreshes the page? example: the icon on kirupas header changes when the page is refreshed or re loaded. I have searched using dynamic content, but didn't quite find it...I only want to change 1 image..
View 1 Replies
Jun 11, 2010
I'm trying to print a mc which is bigger than the default page size. I want to change the page/margin size so the content can fit in the page without scaling. Per the API reference [URL] the page settings are readonly. How can I print something bigger than the default page size? Is it doable in AS2 or AS3?
View 2 Replies
May 3, 2010
I'm writing a simple little test app consisting of 'main.as' and 'test.png', both within the same subdir on my harddrive. I'm compiling via command line with mxmlc, and testing via 'open with...' and Chrome. The code uses flash.display.Loader.load( "test.png" ) - but I can't access the loaded content (or even draw it to a bitmapdata!) due to security exceptions.
My goal is to get the image into something (preferably a bitmapdata!) I can draw to other bitmapdatas, as I understand this is fastest for gaming. I've tried all sorts of things, including creating a 'crossdomain.xml' that goes in the same dir as the above files (and doing the appropriate LoaderContext thing), tried various system.Security things and still no joy.
View 1 Replies
Sep 11, 2003
I've been working on this catalog system for awhile now, and have it working almost perfectly. But one problem still remains...
I'm dynamically loading content (jpgs & text) into a scrollpane from an xml file. It should display an image, and then below it some associated text. My problem is that when the content loads in, the first jpg isnt visible. I'm pretty sure its there because all the other jpgs load. What I think is happening is that the scrollpane is displaying the text below the 1st jpg at the very top of the scrollpane, which leaves the jpg above the scrollpane and thus not visible.
When I first started this catalog. I was loading the content into an MC I had manually created and was attaching to the scrollpane via attachMovie. I had the same problem as above in this scenario as well...and to correct that what I did was make a box that went around the entire are that the jpgs and text loaded into. This allowed the jpg to show up.
But now that I'm dynamically creating both the holder MC and the textfield, I'm back to losing the 1st jpg image. It seems to me that the scrollpane needs something above the jpg holder MC for it to be displayed.
Here is the code I'm using to load and create everything.
Here's the code:
[AS]tFormat = new TextFormat()
tFormat.font = "Verdana";
tFormat.size = 10;
[Code]....
View 1 Replies
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
May 7, 2009
I'm using Flash CS3 Pro. and actionscript 2.0 for my flash documents.I have a flashfileA.swf which is a picture of a rotation shoe (view here)it has a slider bar that calls the action to zoom while rotating. if you checked it out, it works fine.
the code I have for the slider is this:
Code:
this.perc=0 ;
handle.onPress = function(){
this.startDrag(false,0,0,375,0);
[code]....
so I have flashfileB.swf that I load that flashfileA.swf into. Initially, I was getting pages of pages of "Security Sandbox Violations".
I added the code:
Code:
System.security.allowDomain("*");
in flashfileB.swf and that seemed to get rid of all of the violations but the slider doesn't zoom the shoe when I'm using it in flashfileB.swf I need to get the zoom to work while it's loaded within flashfileB.swf and I'm assuming it has to do with the way I coded it.
View 11 Replies
Sep 7, 2011
if there is a way to allow the page content to still be clickable with a flash animation the size of the webpage over it. I have a flash animation the size of my page that is a loading wave that drops to the bottom of the page after a few seconds but even though its dropped and the page content is visible.. i cannot click anything.
View 2 Replies
Mar 6, 2011
have a swf file which content a FlvPlayback play to play targeted video. It is working OK when I run published HTML file from flash professional CS5. but when I embedded this flash to asp.net content page using object tag the move will pay but the video controls play and stop with disappear. I listed down the code I sued.
[Code]...
View 1 Replies
Jun 17, 2011
I have a problem with a Flash object and the menu of my page. The site is on Wordpress : [URL] When I try to access to the menu, the menu content appears behind the Flash. How can I fix this? this is my code of the template section:
[Code].....
View 2 Replies
Feb 28, 2010
I am using a content loader through AS3 to load some images and then later pushed into an array. I have pushed my image file paths in to an array (arrayImages). But when the loader loads the images it doesn't load the images based on the order they are listed in the arrayImages, instead they were loaded based on their file sizes. Is there anyway that these can be loaded in the order they were pushed to the array? Below is the code that i use to load the images.
function funcLoadImages() {
for (var i:uint=0; i<arrayImages.length; i++) {
var ldrImageLoader:Loader=new Loader();
ldrImageLoader.load(new URLRequest(arrayImages[i]));ldrImageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE,pushLoadedImagetoAnotherArray);
}
}
View 6 Replies
Feb 9, 2011
I have a pageflip project and have 15 swf. Some of the swf which having the image content are loading(fliping effect) too smoothly , but if the swf having text content are loading very slowly.
var ocf:Object = PageFlip.computeFlip (this.pageCorner.clone(),
this.lastFlippedCorner,
this.width/2,
[code].....
View 1 Replies