Php :: Check Where Is Located Flash File Sending Request?

Apr 5, 2012

I have a flash file that is located on my website and I have a php file wich gets requests from flash file every 5 minutes. I want to be shure that flash file wich is sending request is located on my website and not somewhere else. How can I do it. Is there anything in PHPs global variables?

View 2 Replies


Similar Posts:


Php :: Check Ip When Getting Request From Flash File?

Apr 4, 2012

I have a flash file that sends some request to php file every 5 minutes. How can I check if the request from flash file has been sent from my website or from other place. I want to be shure that someone is not sending requests from other locations. It is very important for security reasons. Will the following PHP code work?

if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$user_ip=$_SERVER['HTTP_X_FORWARDED_FOR'];

[code]......

View 1 Replies

ActionScript 3.0 :: Socket Sending Policy-file-request Twice?

Dec 8, 2009

Running my Flash app from localhost (in debug) I can connect/contact the socket server just fine. Note: It doesn't seem as though the server detects any 843 connection (e.g. the policy file port) this way. However, when I move the app to the server itself and run it from there (i.e. from the website), it will send the policy file, get a disconnect (as it should), and then try to execute the regular port stuff but doesn't read anything from Flash. It seems like my Flash app isn't writing to the port as it should, or something else is going wrong. I did also notice that Flash seems to be trying to send the policy-file-request twice.My process right now is like this:

1) Flash tries to connect to port 843. The server responds to its <policy-file-request/> with the policy file.

2) Flash reads it, disconnects from 843

3) Server gets graceful disconnect, then gets another connection on 843.

4) Just after that, the server gets a connection on 2188, but reads another <policy-file-request/>, so sends the policy file again.

5) At this point, Flash SHOULD simply write the string "Test" to the socket (that's in my connect handler). However, my server doesn't seem to read anything on the socket after the second <policy-file-request/>.[code]

View 1 Replies

Flex :: Flash.media.Sound Not Sending HTTP Request Headers?

Feb 19, 2010

I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But flash.media.Sound object ignores the headers set in flash.net.URLRequest. Here's an example,

URLRequest sndFile = new URLRequest("http://blah.com/media/load_sound.php");
sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp"));
Sound snd = new Sound(sndFile);
snd.play();

The value of req-origin comes as null in load_sound.php. When i inspect the request using Firebug, the request headers to [URL] doesn't contain the header.

View 1 Replies

ActionScript 3.0 :: Dispatching New Event Upon Sending Request To HTTPService

Jul 9, 2009

I've a Services class...which handles the HTTPService requests and responses and faults. Now I want to dispatch a new event whenever I send request to the server...so that I can take custom actions like showing some popup window or disabling certain components.

Here is my services class:
PHP Code:
package business{
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
[Code] .....

The method doRequest calls the HTTPServices send method...so in this method, I want to dispatch a new event and handle it in the main application...

View 1 Replies

Actionscript :: Sending HTTP Request With Multiple Parameters Having Same Name

Dec 2, 2009

I need to send a HTTP request (and get XML response) from Flash that looks similar to following:

http://example.com/somepath?data=1&data=2&data=3

I.e. having several parameters that share same name, but have different values.

Until now I used following code to make HTTP requests:

var resp:XML = new XML();
resp.onLoad = function(success:Boolean) {/*...*/};
resp.ignoreWhite = true;

[Code].....

But in that case I am loosing ability to do POST requests.

View 4 Replies

ActionScript 3.0 :: Sending Request To Retrieve Text From Database

Nov 5, 2011

I have a problem with a flashpage I am developing. It sends a request to a database through a php-file and retrieve a text that I place in a textfield. The problem is that the swedish and other specialcharacters is shown in code format looking like this u00e4 . I know both my php-file and database is correct because I have used the same request with the same php-file and database in a android app and it works perfect.

PHP Code:
<?php
header("Content-type: text/html; charset=utf-8");
$con = mysql_connect("localhost","db","psw");
if(!$con) {
[Code] .....

View 8 Replies

Data Integration :: Sending XML Request To A Secure Server (https)?

Aug 30, 2006

am having this problem of sending XML request to an addresswhich starts with "https". The problem is I always get the errormessage "Error opening URL "https:......."", instead of the actualresponse which should be in XML format as well.The function I am using is "sendAndLoad()"requestXML and responseXML are objects of XML class . Whatfunction "sendAndLoad" above does is to post variables in the"requestXML" object to the specified URL "servelet_address". Theserver response is downloaded, parsed as variable data, and theresulting variables are placed in the responseXML object.However, as I stated above, I always get the error message.

View 2 Replies

Flash :: Passing Arguments Into A Function Located In A Separate File?

Jun 24, 2011

I'm an AS3 noob who is trying trying to get more comfortable with passing arguments into functions.why when the following code is all in one AS3 file as seen below it works and draws the purple square...

package{
import flash.display.*;
public class Main extends Sprite{[code]............

Flash CS5 gives me an error message 1137 saying that it was expecting only 1 argument in the code line --> Fill(square_commands, square_coord);I need to pass the arguments square_commands and square_coord into the function in the second AS3 file?

View 2 Replies

ActionScript 3.0 :: Check If The Beginning Of A String Match Request?

Apr 14, 2009

How would I write if I want to check if the beginning of a string match my request? Something like this but with real code
 
if(myString doesn't start with "http://"){
doSomething;
}

View 2 Replies

ActionScript 2.0 :: Load One Xml File To Swf File That Located In Different Servers?

Aug 21, 2008

i want to load one xml file to swf file that located in different servers...

like

[URL]

but i have only one xml file that update of those flashes..

how i can to do allowdomain to the xml file?

this is what i have and it's not work

Code:
System.security.allowDomain("www.studiomor.com");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://studiomor.com/upload/google_AD.xml");

View 2 Replies

Flash :: Request For An Edit To A File?

Oct 26, 2010

My web designer is no longer working and has left me with a flash file which would benefit from a small edit

The file is made up of a banner which rotates between 3 images. I'd dearly like each of the images to become a link to html files already uploaded to server

The banner can be seen at self catering accommodation belfast dot com

Is it possible to request this on the forum please?

View 6 Replies

Php :: Send POST Request With X-amf (Flash) Request Header?

Apr 13, 2011

I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:

POST /engine/ HTTP/1.1

Host: abcdef.com

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....

The result is a blank page instead of response from server.

View 1 Replies

Media Server :: Play A FLV File Located In A Second FMS?

Jun 23, 2009

How to play a FLV file located in a second FMS not directly accessible by the flash client?

- I am publishing an audio stream from the flash client to a FMS;- This FMS then publishes the stream to a second FMS, which records the stream to a FLV;

How can I play in the client the FLV audio file that I recorded in the second FMS?

- The first FMS is accessible by the flash client, but the second FMS is only accessible by the first FMS.

View 1 Replies

ActionScript 3.0 :: GotoAndPlay Another .swf File Located In The Same Folder?

Apr 1, 2011

Im trying to write a function that used to work real wll in AS2

on(release){
loadMovie("name.swf", _root;
)
 
This script would load a swf movie located in the same folder as "the calling swf)
The calling movie "unloaded" and the loaded movie "name.swf" would load up by itself.
 
I have tried different functions in AS3 including

//Name of the button: back
back.addEventListener(mouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void {

[Code].....

View 8 Replies

Flex :: Rewrite Absolute URL Request Made From A Flash (swf) File In Browser

May 13, 2010

Is there a way to rewite (or hijack) an absolute URL request made from a flash (swf) file in a browser?I have a flash application that is requesting URL..The code in the flash application cannot be changed but I want to be able to either use another flash or some javascript to write that URL as the image is beging requested - to something like URL...

View 1 Replies

Actionscript :: Post Request From A Flash File Stops Working After Published

Feb 14, 2011

I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).

View 1 Replies

ActionScript 2.0 :: Play .wav File Located On The Client Side?

Jun 21, 2004

I would like to know whether is it possible that Actionscript play .wav files that are stored on the client side? If yes, how? Otherwise, what are the alternatives to enable playback of wave files on the user's computer? I plan to create a button that will playback pre-recorded speech(mp3 format stored in the server) as well as user recorded speech (.wav format stored on the client side after user recorded the speech). How can I do so? I would want to make it away that it appears like a Q&A conversation session between the computer (mp3) and user (recorded wave).

View 5 Replies

ActionScript 3.0 :: Target An External File Located Up One Level

Feb 25, 2011

I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...

This code works just fine if I put my external .txt file in the same folder as my
.fla

var myRequest:URLRequest = new URLRequest("MaterialRef.txt");

but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.

var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");

View 6 Replies

ActionScript 2.0 :: Load 'sample_mc1' To A Movieclip Located In A External Swf File?

Aug 7, 2009

i know that:

sample_mc1.loadMovie("example.swf",1)
//will load "example.swf" into the current "sample_mc1" of the same swf file

however how can I load 'sample_mc1' to a movieclip located in a external swf file?

View 4 Replies

ActionScript 3.0 :: Accessing File Located On A Separately Mounted Volume (mac)

Oct 24, 2008

This is not web-based. It is a projector file running locally off my my hard drive and connecting to files on another server on my network.

I'm trying to link to this file through the following code:

loader.load(new URLRequest((path == null) ?
"file:///10.10.100.255/my_file.xml" : path));

(obviously that IP is not real)

but it can't see it. However, it works fine connecting locally.

Does URLRequest not work for finding files on another server?

View 1 Replies

ActionScript 2.0 :: Sending Variables From One Flash File To Another?

Oct 8, 2009

how to send variables from one swf to anotherAssuming they are on different domains,

View 2 Replies

ActionScript 2.0 :: Sending A Variable To Embedded Flash File?

Nov 28, 2011

What I need to do is pass a variable into flash.

I've had success doing this by just adding the variable to the end of the embedded SWF URL (.../mymovie.swf?variable=value), but what I need is the ability to send the swf variables when certain links are clicked, without the page refreshing.

I'm guessing this has to be done somehow with a javascript onClick function.

I've looked into using externalInterface, but it seems overly complicated for this application.

View 5 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

View 1 Replies

Professional :: Sending A Flash File To Someone Who Doesn't Have Flash?

Feb 9, 2011

i want to send a flash file to someone who don't have the flash softwer on her computer..ow do i save the file that i have done, that my friend can open it and just view it? is it posible??? please can you explain me how to do this step by step?

View 1 Replies

ActionScript 3.0 :: URL Request File Not Found

Feb 17, 2010

I just learned last night from Ned Murphy how to code a btn in AS3.Trouble is, when testing the Dreamweaver frameset website, site name: URLRequest on the C drive with my default browser F12, I get a problem loading the page / file not found.[code]Just for comparison here is the AS3 btn code Ned copy pasted to my Thread last night.[code]What is it that is stopping my browser from directing to "C:WebSitesFrameSetsURLRequestmainFrame1.html";Is it the var url:String?

View 3 Replies

Linux :: Intercept A Request To Read A Particular File And Instead Generate The Apparent Output Of That File Read Programatically

Mar 31, 2010

A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'

View 3 Replies

Professional :: Check Who A Flash CS4 File Has Been Created By

Jun 7, 2011

I urgently need to be able to check the authenticity of a Flash CS4 file. There is no information given about author etc in the properties using Windows but I was hoping that Flash embeds author information and history.

View 1 Replies

Flash :: Php :: Check If An Swf File Implements ClickTAG?

Apr 20, 2011

We've been developing an affiliate system and would like to detect somehow that a compiled, SWF advert implements clickTAG or not. Is there any way to automate this process?

View 2 Replies

Xml - Sending Data From MXML File To JSP File (and Receiving) Using HTTPservice?

Jul 9, 2011

I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :

Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.

I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?

View 1 Replies







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