Web Development / Flash Making AJAX Requests?

Dec 4, 2009

The main top section of the site is a little Flash thing that has buttons as links to different areas of the site. All of that is well and good, but whenever I click those links, it has to reload the entire page (including the Flash app) when only the bottom part changes. This isn't really a huge issue, since everything's real small, but it's kind of annoying.I vaguely remember "fixing" this behavior using AJAX during my web programming class, but that was just straight HTML and Javascript, no Flash players to muck around with.My question is, how do I overcome having to reload the entire page when someone clicks a link from the Flash object? Is there some nice way I can call something other than getURL() to achieve this effect?

View 2 Replies


Similar Posts:


Php :: Avoiding CSRF When Serving AJAX Or Flash Requests?

Sep 14, 2010

I have a Flash based game for the browser which sends users' scores to a php backend script which stores the score and the user id in the database.

Now I have a url like www.example.com/update.php?score=200&uid=234

The problem is that this is very much exposed to an intelligent user, and he can use this url to store whatever score he wants in the DB. Also there's no real user authentication, and I don't intend to have one either, because it's really a tiny game.

How can I stop someone from calling the above url and updating his score on his own.

View 2 Replies

Ajax :: View Response Content Of Flash HTTP Requests?

Aug 28, 2010

I'm interested if there is some tool (preferably a firefox addon) that allows you to record http requests and view their response header and content.

View 3 Replies

Flash :: Web Development - Type Animations But Using AJAX?

Dec 11, 2009

I am looking for someway to do Flash type movies but with AJAX instead? Flash requires plugins, SEO is difficult and my experience is people tend to stay away from Flash websites unless they are really really good. [URL]

View 4 Replies

Php :: Process AJAX Requests More Securely ?

Mar 19, 2010

I want to send AJAX requests to my website from my Flash games to process data, but I don't want people downloading them, decompiling them, then sending fake requests to be processed, so I'm trying to figure out the most secure way to process in the PHP files. My first idea was to use Apache's built in Authorization module to require a username and password to access the pages on a separate subdomain of my website, but then you'd have to include that username and password in the AJAX request anyway so that seems kind of pointless to even try.My current option looks pretty promising but I want to make sure it will work. Basically it just checks the IP address being sent using REMOTE_ADDR to make sure it's the IP address that my server runs on.

<?
$allowed = new Array("64.120.211.89", "64.120.211.90");
if (!in_array($_SERVER['REMOTE_ADDR'], $allowed)) header("HTTP/1.1 403 Forbidden");
?>

Both of those IP addresses point to my server. Things I'm worried about:

1) If I send a request from Flash/ActionScript, will that affect the IP address in any way?

2) Is it possible for malicious users to change the IP address that is being sent with REMOTE_ADDR to one of my IP addresses?

View 3 Replies

Actionscript 3 :: Making Requests From Flash For URLs With + Signs In Them?

Aug 20, 2011

I am hosting images on Amazon S3 and using them in my Flash application. My application receives signed S3 urls that point to the images in S3. The URL looks something like this (line breaks added for clarity):

[Code]...

The problem here is with the + sign that can occur in the Signature. If I send the + sign as-is, then the browser thinks that it's a space, as it should according to the URL specs. Really, S3 shouldn't use + signs for this reason, but it seems to be something they overlooked. Normally this isn't a problem since you just replace the + sign with a %2B. However, Flash has some default behavior that makes this difficult.

From what I can see, the URLRequest object is setup to always encode URLs as if it was passed through the encodeURI function. I don't see any way to turn this off. Unfortunately, encodeURI doesn't encode + signs, but it does encode % signs.

This means that if I leave the + sign in there then Flash leaves it alone and S3 thinks I have a space in my URL. If I use %2B then Flash turns it into %252B, due to encoding the

View 1 Replies

ActionScript 3.0 :: Flash In Ruby On Rails Making A AJAX Request

Aug 17, 2009

I'm trying to solve a problem where I have a nice Flash button and when a user presses that button I need an Ajax request to be sent to the server in order to process some RJS code. I am using ActionScript3 to do URL handling logic of my Flash button. Has anyone done anything similar?

View 1 Replies

ActionScript 3.0 :: Urlloader Not Making Requests?

Apr 13, 2010

I have this odd situation, let me provide some background: - I have SWF and PHP files on a shared host, along with a MySQL database - I'm using urlloader requests to interact with the database via the PHP files.Everything works for me as expected. However, the end user is having trouble. Basically, none of the urlloader requests actually make a request - I'm basing this on all of the *.php requests in the access log from my IP, and none from his IP. I had him load one of the PHP files directly, and it came up fine, so I've ruled out firewall/security problems on the OS level.

Now - what could possibly cause this? He has 3 machines running XP and win 7 (all with the same issue), and he's using IE8 with the latest flashplayer. I've set up an XP virtual machine with IE8 and also the latest flash player and it works fine. I've also tested on a separate laptop running Vista. I've also tested with chromium and FF3 under linux and FF3.6 under XP (flashplayer versions 9 and the current 10.x) and everything works hereI've tried a crossdomain.xml file allowing from *, allowing from the domain where the files are hosted, and no crossdomain.xml file at all.

View 6 Replies

Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?

Jul 19, 2011

In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?

View 4 Replies

ActionScript 3.0 :: Socket Connection Making HTTP Requests Hang?

Sep 19, 2011

I'm having a problem that I'm not sure is necessarily tied to the Flash, but I don't know what the root of the problem is yet.I have a SWF that connects to a socket using the Socket class. This works fine.I'm also making (jQuery) $.getJSON() requests to load certain page data. This works fine.

However, when the Flash socket is connected the Ajax requests stop being sent. By this I mean that it seems that the HTTP requests being made are stored in a queue while the socket is connected. As soon as I disconnect from the socket the HTTP requests continues to load fine. The HTTP request never times out (as it's not even being sent to the server), but just hangs there waiting...until I close the socket connection.

I've verified both in the jQuery and Adobe docs that both the Ajax (JSONP) requests and the connections using the Socket class are asynchronous, so I'm really confused as to why the socket connection would block the HTTP requests.

View 0 Replies

Web Development :: Making A Web Gui To Design A Garden Layout?

May 20, 2010

I would like to design a web page Gui where users can design a simple interactive garden. The user would pick a template design and receive price estimates based on the design template and the dimensions entered.

I'd like the user to be able to move items such as plants, stones and be able to adjust the dimensions of the grass, paving.

I'm thinking i could make it using flash but I would like to know there are any other ways I could use to implement this?

View 2 Replies

Ajax :: FBJS AJAX.post Is Not Working After Permissions Dialog?

Feb 21, 2011

I have problems with facebook application based on flash which communicate with PHP using FBJS-bridge.When someone use the application for the first time, he/she is asked for various permissions. After that, flash contact PHP with ajax but request is never sent. When you refresh page, everything is working without any problems.If you remove the application on privacy settings, refresh the page and try again -same bug happens.If you allow application, refresh page, in other tab remove application and start application in previous tab - user is asked for permissions but everything is working after allowing application.This is FBJS code

function openPermissions(){
Facebook.showPermissionDialog(/*permissions string*/, permissionOnDone);[code]......

openPermissions is called to display permission dialog, and on allow flash function allow() is called. In flash, allow() calls JS function ajaxCall(), which should make ajax request. But, ajax.post never sends request. I know that for sure, because flash function parseAjax was never called and also debugging tools in browsers are not showing any ajax requests. URL and parameters are same as when it is working. No flash or JS errors are detected...

View 1 Replies

Web Development :: Web Development - Pause Sound In Flash?

Feb 9, 2011

i'll using this as2 in the pause button

on (press) {
if (pause!=true) {
playing=false;

[code]....

View 1 Replies

Ajax - Making Multiple Asynchronous Calls To Fetch Result From Multiple Services In The Single Click Of A Button In Flex?

Dec 27, 2010

In one of our project we are using flex for front end, blazeds/java in the backend. Its an existing code where services are prewritten. I have to make calls to 3 services in the backend (basically 3 remote objects) and get their result and store the result in an object and show the data of this object in a view.
Now in front end we are using Flex and Parsley Framework. I was thinking of the following approaches.

1) Making commands for each service call and storing the result in a shared object (model) and then displaying this model in the view. In this approach the problem is some services are needed in some other web pages, but they donot need the same model. How should i handle this scenario ? Should i make a asynchronous remote call and fetch the result and then again dispatch and event with the event object storing the result.

2) Making a service call , wait for the result then make another call and wait for the result and then make other call, not sure if this is the right way ?

View 2 Replies

Web Development :: Web Development - Post Flash Exe To Web?

Aug 26, 2010

I've been given a Flash tutorial to post to the corporate website that is an .exe file with an embedded Flash player. Users will be on IE, so I guess they would get the run/save prompt. I don't like this and I know it generally isn't done, but I need to know if it is OK to just do it. When I try to explain the security issues with executable files, eyes glaze. Is it possible that the users' system admins would be able to block the run prompt and make the user save the file? Could they block that too? The user community is hopeless, so having the embedded Flash player could be a good thing.

View 1 Replies

Web Development :: Web Development - Web Design - Prevent Leeching. Flash Anti Leeching Methods?

Jul 4, 2010

I am designing a website with flash video content. If I pass in the URL to a .flv file as a flash parameter to the embedded video player someone can easily extract the URL and download the flv video file. How to do I prevent this? Can someone refer me to anti-leeching techniques being used my websites like youtube.

View 1 Replies

Web Development :: Web Development - Search For All Tagged Photos Associated With User Some Id I All Of Facebook Users?

Nov 3, 2011

I'm using the the Adobe ActionScript 3 SDK for Facebook Platform to get all the tagged photos of the current user. Is this possible?

I've tried this:

FacebookDesktop.api("/"+uid+"/photos",getTagedPhotosHandler);

But that only gets me the photos belonging to that user.

View 1 Replies

Web Development :: Web Development - Browser Support Like For Bare SWF Files?

Aug 31, 2009

Does anybody use bare .SWF files as webpages? I know it's possible; it seems to work fine for me. Why would I embed a SWF inside an HTML page if it's just going to be full screen (I mean the size of the browser's normal viewable page area, not COMPLETELY fullscreen)?

Is there a lack of browser support? Or is this functionality determined by the browser's Flash plugin?

View 2 Replies

Web Development :: Web Development / Make A Web Based Video Recording?

May 10, 2010

I want to have a web site which switches the web camera of users, makes a video recording and send results to my web server.Is it possible to do that? I think it should be. For example such sites as chatroulette.com starts web camera. Should it be done with the Adobe Flash technologies? Is it hard to do that?

View 1 Replies

Web Development :: Web Development - Browser Doesn't Load Imagers All At Once?

Jan 12, 2011

If I load a web page full of other files, e.g. images, my browser doesn't load them all at once.I seem to remember reading that IE will only have at most 3 requests open at a time for a page. The rest will be queued.If I have a flash movie on the page which is continually making image requests, how does this affect the maximum number of downloading files in the browser?

Is this browser limit accurate, and is it generally the same across browsers? Does flash share the requests of the browser? If not, does flash have a limit and what is that limit?
For some background, I do have a flash movie that is continually loading files so there is a queue of Loaders waiting to make requests.My idea was that if there was a different request that I needed to be executed straight away I could make it jump the queue by making a javascript call and allowing the browser to make the request instead.

View 1 Replies

Flex :: Can Do Conditional GET Requests From Flash / AS?

Feb 19, 2010

I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't.I haven't seen any headers in the Flash Player's requests which would indicate that it's already handling conditional GETs. Also, the HTTPService API doesn't seem to provide anything, either. Does that mean, Flash can't do this, or how can I implement this myself?

With regards to cookies, which aren't supported in Flash, I have heard the suggestion to build my own HTTP client on top of the Socket class. This might solve this issue, too, but frankly, I'm really not keen on doing that.As an alternative, I could just cache the result page and send it again, but so far, the API tries to utilize semantics that are already built into HTTP, and I'd like to keep it that way.

View 2 Replies

Flash - How To Make Synchronous URL Requests From AS

Sep 13, 2010

I have a big loop in actionscript that sends lots of data to an url:
for(var i=0;i<1000;i++) {
var request:URLRequest = new URLRequest();
request.url = url;
request.method = URLRequestMethod.POST;
request.data = data;
var loader:URLLoader = new URLLoader();
loader.load(request);
}

The problem is because URLLoader can make only asynchronous calls, it sends all those thousands requests at once which kills webserver. Also it acts a bit strange on top of that. Lets say the loop is running for 5 minutes. For whole 5 minutes there is no requests coming to web server, then at the end they all are sent at once. I already tried everything I could possibly think of (empty loops, callbacks, delays) - nothing works. All requests are sent at once no matter what. How to make requests synchronous, so it will send one request after another?

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

Flash :: HTTP Requests Won't Work On Localhost

Jun 11, 2010

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my first post and I will try to add more info.

I have a flash application hosted on-line that acts as a client for a server application written in Delphi. Most of the communication is done using sockets, which work fine. Uploading data files and downloading results files is done using HTTP requests, which work fine as long as the user is making use of an instance of the server on another computer. However, if the user has the server application installed on their own computer and attempts to use it specifying localhost as the url, the socket communication still works, but the HTTP requests don't.

All the socket based communication works fine and, when it is not on the localhost, all the HTTP requests work fine as well, which is why this is so mystifying to me. I've tried changing the flash cross-domain policy file that the server dispatches to be completely permissive, all ports, all domains, all http-request-headers, and still no luck. The Flash app will sit waiting for localhost indefinitely most of the time until I close the server application, and then give this error message:

[Code]...

View 1 Replies

Actionscript 3 :: HTTPS Vs HTTP Requests From Flash

Oct 16, 2011

I am finding that if I load Flash from a HTTPS page [URL] and try to make a request within ActionScript 3 to [URL] the request does not go through. Same goes for the opposite (accessing https from a http-loaded flash script).

The request is failing, the requested data (passed from a PHP script) is not loading.

Now at first I assumed the trouble was with cross-domain policy files, but I have fixed that issue (I think).

Is there any security policy in Flash (CS5 btw) on HTTP vs HTTPS requests based on where the script is loaded from?

View 1 Replies

Flash Uploader - Requests Host/crossdomain.xml File?

Jan 24, 2011

I'm using YUI file uploader based on flash, and the flash requests host/crossdomain.xml file. I'm requesting localhost and it requires this file. I was using this before and I have never had this problem and I've never had this file on my server.I've never used any adobe technologies, could please anybody tell me if it is possible to turn it off somehow ?The problem is that I can't have the file on my server, at least at root location...

View 2 Replies

Flash :: IE Requests SWF Using HEAD Instead Of GET In Facebook IFrame Application

Dec 18, 2011

By far the weirdest thing I've ever seen. On some machines (!) IE (!!) attempts to load an SWF file via HEAD request instead of GET. This happens only when the page is running in Facebook IFRAME application - when running solo works fine. Naturally, on FF and Chrome everything works just fine. The SWF is embedded using jSWFObject. There's no visible common feature to the machines which experience this problem - laptops, desktops, XP, Vista, 7.

View 1 Replies

Networking - How Can Flash Open A Port To Listen For Server Requests

Apr 27, 2010

Is it possible for flash to open ports to listen for messages from the remote server? If so, how?

View 2 Replies

ActionScript 3.0 :: Use Ajax From Flash?

Mar 25, 2010

is ajax/ javascript functions accessible from flash? in games like those at mindjolt it is irritatitng to wait for the flash file to load and initizalize  and then have the page change to the scores page again
 
i was windering if its possible to use ajax from flash? so the flash game sendds the score/ result to the page and only parts of it change, (developers can even choose to force pause the game for 5 seconds so the user registers/ submits score etc)
 
and then can continue. now what happens in page changes, then you need to return to the page and wait for flash swf file to load again ...

View 2 Replies

Python :: Flash - Handle Faults/exception In Flex In Http Requests?

Mar 15, 2012

Here is an issue i'm struggling to solve for quit some time now.I have a python + GAE backend with a flex client that communicates via JSON. I'm using flex's HttpService bound to a Responder with result and fault callbacks. When python raises an exception, I don't seem to get it in flex. I did some research and found out that the problem probably lies in the fact that the flash runtime cannot handle http responses with status code other than 200.

View 1 Replies







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