ActionScript 2.0 :: Setup A SendAndLoad() With The LoadVars() And Return XML From The Proxy.asp?

Sep 10, 2004

I have a flash menu which is currently loading its contents via a ever-changing XML file... well this has always been a good thing and worked just fine... until the release of AOL 9.0, which for some reason causes the XML to stop loading.So I found a workaround for this... rather than calling "menu.xml" I have this sript called "proxy.asp" which loads the "menu.xml" file into it via some sort of crazy .asp tunneling and object creation. Here is the proxy.asp file::

Code:
<%@ LANGUAGE=VBScript%>
<%
Response.Buffer=True
Dim MyConnection, TheURL

[code]....

NOW...since I run in literally hundreds of websites I need it to be dynamic. Is there a way for me to use the sendAndLoad() in Flash to pass the "proxy.asp" file a couple variables that will return the XML as an XML Object back into Flash? I know it can return Strings, but I need to learn how to send 2 variables out - ID and progID - and then based on that I will have the "theURL" variable in the proxy.asp file load the appropriate menu.xml file. how do I setup a sendAndLoad() with the LoadVars() and return XML from the proxy.asp?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loadvars():sendAndLoad()?

Aug 1, 2005

Just wondering if you can use the sendAndLoad method of the Loadvars object to send "POST" data to a server then recieve the response in an XML object.

[Code]...

View 11 Replies

ActionScript 2.0 :: Use LoadVars.sendAndLoad To Get An Image?

May 17, 2007

From what I understand, LoadVars.sendAndLoad( ) is generally used to request variable data form a server. I am trying to download an image (which can be returned to me as a bitmap, jpeg, or png depending on my a variable i pass to the server in the sendAndLoad command.

Is this possible? If so, what object do I specify as the target object in the sndAndLoad( ) command?[code]...

View 7 Replies

ActionScript 2.0 :: Create A SendandLoad LoadVars Object?

Apr 17, 2009

I'm using the following code to create a sendandLoad loadVars Object but it suddenly quit returning data and no matter what i do i cannot return a value.i'm useing aspx to return the value the response code looks like this. Response.write("success = success"); Ive also tried Response.write("&success = success"); but neither works and i also don't send data here is my code.

PHP Code:

sv0=new LoadVars();
sv0.filename = str1+cntrl0+".flv";
sv0.identifier=str5;

[code]....

View 1 Replies

Data Integration :: LoadVars - SendAndLoad() Over Https?

Feb 20, 2007

I am having problems with loadVars over https. What I am trying to do is sending credit card information from a flash store to a PHP-script on a server over https, and the PHP-script should return a reply. (So I am using the LoadVars sendAndLoad command). The problem is that the reply I get from the script is empty. If I try the same over http, it works fine.

View 4 Replies

ActionScript 2.0 :: [CS3] LoadVars.sendAndLoad Only Working On Some Computers

Jan 15, 2009

I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain via curl to sign up the user.

So far, so good, and it works on roughly 70% of the computers on which it's been tested (it's being tested live from the website, not locally). However, on some computers, it doesn't appear that the LoadVars.sendAndLoad call is being made, as the email addresses sent from those computers aren't showing up on the subscriber list. I know that the PHP script still works on those computers as I've made a barebones HTML form that acts in exactly the way the Flash app does (POSTs to same PHP script with same variables, etc) and it works on all computers.

Here's the relevant AS:

submit_btn.onRelease = function(){
submitOutAnimation();
this.enabled = false;

[Code]....

View 2 Replies

ActionScript 1/2 :: LoadVars.sendAndLoad() Between Parent And Popup Window?

Jun 8, 2010

Having not used PHP in conjuction with Flash before the last few day, I'm a bit stuck.I have a PHP file which will contain a list of online courses, each with their own link to to launch them.  The link to launch the course will contain data such as:

- A book mark that will be read when the flash movie loads to determine which page to go to.

- The current score of the student

- Wherever or not the student has compelted the course.The links open the course in a new popup window, and I am trying to send the PHP variables from the new window to the parent page, without much success.

If I use LoadVars.send(); then the whole works ok, updating the variables and the PHP page, but opening it in a new window, instead of just refreshing the existing page.I have tried getting my head around sendAndLoad, but it doesn't seem to work?Current the "courselist.php" file looks like this:

courselist.php[code]....

View 1 Replies

IDE :: Specify A Proxyserver (and Port Number) Using Loadvars And SendAndLoad From A Projector EXE?

Jun 1, 2009

I am developing a module that will run on a CD-Rom as a projector. It needs to post small amounts of data to an online URL to facilitate tracking.Consider this:

Code:
var myVars = new LoadVars();
myVars.username = _root.userName;
myVars.email = _root.emailAddress;[code].....This works fine, unless the user's computer is behind a corporate proxy server, which is specified in the Internet settings of the browser. My question.....Is it possible to specify a proxyserver (and port number) using Loadvars and SendAndLoad from a Projector EXE?

View 1 Replies

ActionScript 2.0 :: LoadVars / SendAndLoad - Values Returned To Flash Are Appearing Correctly But Do Not Test Correct

Jan 29, 2009

I'm basically sending some variables to a php script from flash and then returning some values back to flash from the script. The problem is that the values returned to flash are appearing correctly but do not test correct. My actionscript and php scripts are below (just samples displaying the the mechanics of what i'm trying to do):

[Code]...

View 3 Replies

ActionScript 2.0 :: Return Value From Function That Does SendAndLoad?

Feb 4, 2009

In the code below - fRequest_activate initiates a sendAndLoad - all fine and dandy. Thing is - I want to be able to return a value from this function that indicates whether the server response was satisfactory - and I can't work out how to to it.Because the onLoad function is nested within my fRequest_activate function it has all got a bit messy - and just doesn't work - how do I pass the status from an asynchronous server call - which at the moment is picked up by the onLoad callback, back to my original function? - or should I just approach this problem in a different way? All I want to do is call one function - and know if it has been successful or not in talking to my server.

Code:
function fRequest_activate():String {
var lvEmail_send:LoadVars = new LoadVars();
var lvEmail_response:LoadVars = new LoadVars();[code]...............

View 5 Replies

ActionScript 2.0 :: LoadVars.onload And Return?

Jul 19, 2006

i have been stuck on this thing for a while now and can't find the solution anywhere on the internet. I'm working on making a class file for the flash foru i just made and am stuck on the logging in part. The cript works and logs in the user, but i want to be able to know when the data has been loaded from php to flash.

[Code]...

View 2 Replies

IDE :: LoadVars Send Always Return Undefined?

Apr 19, 2009

Flash file:

Code:
s.onSoundComplete = function(){
loadVars_out.songId = sa[cps].id;
loadVars_out.send("incPlayedNumber.php", "_self", "POST");

[code]....

View 5 Replies

ActionScript 2.0 :: Setup A Class Which Will Load Xml And Return Data?

Feb 19, 2007

Im trying to set up a class which will load xml and return data I can later parse with a parser class.

When I run the getRawData function from the fla, I get [type function].

[code]...

View 2 Replies

Flash :: Uploading Images With Uploadify Run Into IO Error With Local Proxy (proxy.pac)?

Feb 21, 2010

I'm trying to upload images with Uploadify but I run into IO error. I have gotdemo and it works on my computer, so I decided to implement functionality of my application to this example step by step to catch the error and discovered that the reason of IO error is my local proxy.pac (I use FF):

function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.app.local*")) {
return "PROXY 127.0.0.1:3000";

[code]....

View 1 Replies

Media Server :: Stuck In Vhost Setup Have Setup And Working Up To Connection?

Feb 22, 2011

I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to
the hosting account just fine pull up www.domain.com and goes to server.
 
I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/
 
I copied live over to applications dir. I setup user and pass for the virtual host login.

View 3 Replies

ActionScript 2.0 :: TUTORIAL Error - Change LoadVars() Into LoadVars()?

Apr 13, 2004

One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work

View 2 Replies

ActionScript 2.0 :: Using LoadVars.getBytesLoaded And LoadVars.getBytesTotal?

Sep 1, 2003

Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.

View 14 Replies

Php :: Proxy To Get XML?

Feb 17, 2011

So I need to retrieve XML from a public API, but my app is in Flash and the public service won't implement a crossdomain.xml file. I found this PHP script online (below) for a proxy to request the URL. It works fine for URLs like:

[URL]

but the script seems to either strip or ignore any arguments on the URL, like:

[URL]

I'm PHP ignorant. Is there an easy way to have this script process those URL arguments? Here is the script:

<?php
$post_data = $HTTP_RAW_POST_DATA;
$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);

[code]....

View 1 Replies

Media Server :: Using A Proxy To 3.5

Aug 18, 2010

Is it possible to use Apache to proxy/tunnel RTMP(S) traffic through to Flash Media Server?Basically, I want to tunnel RTMP traffic using HTTP through Apache.What I want to be able to do is open up an appropriate port (either 80 or 443) on the Apache server and have that proxy traffic through to Flash Media Server. The reason I ask is that I have set-up this scenario but I keep getting a "NetConnection.Connect.Failed" error message; I captured the network traffic flowing between my machine and the server and it is connecting to the server, just nothing happens after that.Do I have to connect directly to Flash Media Server?

View 1 Replies

Flash :: Get The Client-IP Even If A Proxy / VPN Is Used?

Aug 23, 2011

How do I get the clientIP from users in my regisrtationforms? It's easy to get the IP with the user isn't using a Proxy, Proxycacade or VPN. But if he uses one of those its difficult. X-Fowarded-For isn't reliable and fails within cascads.

But there are possibilities, because JavaApplets and Flash aren't using the Proxy-Services. How can I archieve to get the clientIP with those technics? I prever to use a small Flash-Code to get the IP from the client, but how to implement?Another way should be a counterpixel which is using IPv6. Most of the proxyservices only support IPv4, can I tell an image only to use IPv6?

View 1 Replies

Use A SWF As A Web Request Proxy Between Javascript And Server?

May 23, 2009

I know I can call my server directly from javascript. However, I want to do this through a non-GUI SWF file. I'm fairly new to Flash but have gotten all the CS3 tools from work. Does anyone know of any examples on:

1. how to make a web request from within flash provided the URL, post content, and timeout

2. how to call a Flash API from javascript asynchronously

3. how to detect whether the browser being used can support my SWF (I don't want it to prompt to install Flash if they don't have it yet)

I'm actually hoping someone has already done this and has a sample already built.

View 7 Replies

Actionscript 3 :: Cast A Proxy To An Interface?

Jan 30, 2011

I need ActionScript Proxy to be castable to a particular interface.

Here is an example without interface:

public dynamic class Tracer extends Proxy {
flash_proxy override function callProperty(method:*, ... args):* {
trace(method + " " + args)
}
}

[Code]...

View 2 Replies

Flex :: Use Proxy In It's HTML Control?

Mar 21, 2011

I want to use a proxy on the HTML Control found in Adobe AIR.I have tried looking at the AS3 docs on Adobe but honestly, it didn't explain the usage clearly to me and looking at Adobe's example, I can't seem to make out anything off of it.

View 1 Replies

Php :: Facebook Proxy Loader Security?

May 19, 2011

I'm using a PHP proxy script to load images from Facebook into Flash without any sandbox violations. It is taken from the guide here: [URL].. The relevant PHP code is:

[Code]...

The guide mentions that additional security measures are recommended for a real world application. What additional measures would be applicable to this? Maybe some kind of key passed from Flash to PHP?

I realise that there's nothing I can do to completely protect the Flash from being decompiled, but can I prevent the script from being used maliciously?

View 1 Replies

AS3 :: Overriding Proxy GetProperty Method

Jun 6, 2011

I've run into a peculiar problem while trying to make use of the Proxy class and override the getProperty() method. I've attached my example class code below:

package
{
import flash.utils.Proxy;
import flash.utils.flash_proxy;

[Code]....

View 1 Replies

Flash :: Proxy Error #2124?

Jul 13, 2011

I got a standard php proxy getting images cross domains.

domain/proxy.php?url=http://images.fandango.com/r85.7.3/ImageRenderer/69/103/images/no_image_69x103.jpg/135631/images/masterrepository/fandango/135631/hp7_2-3d imax poster_lo.jpg

[code].....

View 1 Replies

Flash :: Get The Proxy Server To Cooperate?

Aug 1, 2011

I'm trying to use JMeter to test our web application and I'd like to use an automated recording of tests but our UI is in flash/flex. Is there any way to get the proxy server to cooperate with the flash/flex? I do have control of both the client and server sides, though rewriting our application to redirect the flash/flex calls to another address isn't really an option. If there were an automated way...

I'm currently testing Windows client and server, but I also need to support testing on Linux client and server. If tests need to be created on one or the other and can be ported to both I could live with that.

View 2 Replies

Actionscript 3 :: How To Define Proxy Without Blaze DS

Jan 5, 2012

I have an AIR app that I need to define a proxy for because the services sit behind a firewall. We are not using BlazeDS so I can't define the proxy settings in the proxy-config.xml file. So, how do I do it? I'm guessing that I'm not the first person who has had to work behind a firewall when accessing data so I'm not sure why I can't find any documentation on the web anywhere about this.AIR says it is supposed to automatically know and use the proxy configuration from your system, i.e. default browser. In there, I don't set a manual proxy, I use the 'automatic configuration' and point it to a .dat file. Could this be where the problem is? Does AIR not know how to understand this?There's no way to set a proxy on an HTTPService component unless you are using Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application just so I can get this accomplished.

View 1 Replies

ActionScript 3.0 :: Flash Upload From Behind A Proxy?

Jan 20, 2009

I am working behind a proxy and some of the flash uploaders out there require me to authenticate myself on the local proxy before allowing me to upload files. I have such an uploader which currently is outside my network. However after it tryes to execute file.upload(request); it dies silently without a trace of what is going on. I presume that it fails because it hasn't requested the proxy auth. How can I show the proxy auth login pop-up. Here's a sample of my code

ActionScript Code:
var request:URLRequest = new URLRequest(this.uploadScript);
request.method = URLRequestMethod.POST;
request.data = new URLVariables();

[code]....

View 0 Replies

ActionScript 3.0 :: Loading Crossdomain.xml By Proxy?

Feb 6, 2009

I have to load my "crossdomain.xml" using a proxy.how can i do that?

View 0 Replies







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