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


Similar Posts:


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 :: 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

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 :: 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

ActionScript 2.0 :: SendAndLoad XML?

Nov 4, 2009

i am trying to get my serverside URL link from XML file to be able to POST in flash using sendAndLoad method.

[Code]...

View 0 Replies

ActionScript 3.0 :: SendAndLoad With Accented Url?

Aug 18, 2009

I have a little flash application(cs4) to read xml files and to display the contents. xml files are being read using LoadVars::sendAndLoad() over http. It works fine unless I have an accented characater in the url.

[Code]...

View 11 Replies

ActionScript 1/2 :: SendAndLoad With GET Method?

Sep 21, 2010

I was googling all the evening trying to find a safe way to send data to MySQL db.
 
The method that I was using in past projects is like this (AS2 > PHP > MySQL):

[Code]...

This method is unsafe since it sends data to PHP with a GET method, the URL string insertDB.php?Name=Jonh&Age=18&Country=USA&Points=123 So anyone can just type in the address bar [URL]..and insert this record (for example with 999 points) into database.

View 1 Replies

ActionScript 2.0 :: Sendandload Not Working In IE?

Jan 26, 2009

I am having an issue getting sendandload to work with IE. It is working great with Firefox. I am not using https for anything, so I dont think it would have anything to do with what I have been reading.

View 0 Replies

ActionScript 2.0 :: Crossdomain.xml And SendAndLoad?

Dec 14, 2009

I have a flash form with input text fields. I am sending the data to a 3rd party server. I can send the information via getURL but I want to send the data without opening a browser window so I am utilizing sendAndLoad. It works great locally but not through a browser (tested in IE and Firefox). I have verified that all the variables and urls are in the correct case, I have tried both Post and Get, I have tried network and local

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash SendAndLoad XML?

May 30, 2010

Theres a great tutorial for sending and loading XML here: http:[url]...However, its written in AS2 and Id like to have an equivalent in AS3. Ive attached my attempt, but it doesnt work? even though it doesnt throw any errors.

View 2 Replies

ActionScript 2.0 :: Pausing A SendAndLoad?

Sep 15, 2004

I'm attaching an MC to the timeline and within that attached MC is a LoadVars.sendAndLoad command. This works flawlessly when I have a few variables but becomes horribly bogged down when I have to send (and receive) lots of data. It actually freezes my swf until all the data is loaded, then switches windows <minimizes itself in Win XP> after it's all done loading.So I figure I need a way for the original attach movie to finish loading, before I send the PHP commands...

View 1 Replies

ActionScript 2.0 :: CS3 XML SendAndLoad - Using PHP To Read Sent XML Data

May 29, 2009

I'm using sendAndLoad to send data from a Flash form to a PHP script. The PHP script will search an SQL database and return the results, in XML, to Flash for parsing. The problem is I'm completely stuck on how to extract the sent Flash information with PHP. It's a single tag with attributes.

View 1 Replies

ActionScript 2.0 :: Flash8 SendAndLoad Not Getting Response

May 28, 2010

I'm having trouble with a sendAndLoad-script:

Actionscript Code:
listener.onComplete = function(file:FileReference):Void{filename = file.name;var sender_lv:LoadVars = new LoadVars();sender_lv.filename = filename;var reciever_lv:LoadVars = new LoadVars();reciever_lv.onLoad =

[Code]......

It uploads a text file to my server (I'm running the .swf file locally) and it works. But I need to load the contents of the file into my program, and when I do the special norwegian characters "� � �" turns into jibberish. So I wrote a script to change the encoding, but when I send the filename to the .php file, I don't get a response.

View 1 Replies

Professional :: Swf Is Not Receiving SendAndLoad Variables?

May 26, 2010

I am using the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly, including the PHP script returning the following variables:
 
&mySubscriberID=36&firstName=Bill
 
But the variables are not making it back into the swf file. Here is the code for the first frame of my flash file:

[Code]....

I also have dynamic text fields with the above variables assigned to them.

View 1 Replies

ActionScript 1/2 :: Swf Is Not Receiving SendAndLoad Variables?

May 26, 2010

the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly,including the PHP script  returning the followingvariables:&mySubscriberID=36&firstName=BillBut the  variables are not making it back into the swf file. Here is the code for  the first frame of my flash file:

stop();  var sendLV = new  LoadVars();var recLV = new LoadVars();
recLV.onLoad =  function(success:Boolean){trace("recLV back from php");}
sendLV.onLoad  = function(success:Boolean){  nextFrame();  trace("sendLV  back

[code].....

View 7 Replies

ActionScript 1/2 :: Add A Preloader For The SendAndLoad Function?

Jun 16, 2010

How do I add a preloader for the sendAndLoad function.

View 11 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 :: SendAndLoad: Is There A Faster Alternative?

Feb 23, 2009

I am using sendAndLoad to query a database that returns over 30,000 records. While the query itself is executed in 0.43 seconds (says phpmyadmin) the sendAndLoad takes some 15 seconds to be executed in AS2. I am wondering if there is a faster alternative to this method.

View 2 Replies

ActionScript 3.0 :: SendAndLoad - Var1 Is Undefined?

Dec 23, 2009

I try make work a simple sendAndLoad but I got a strange answer from server!

AS3-PHP.fla :

ActionScript Code:
var var_put:URLVariables=new URLVariables();
var_put.name1="John";[code].........

First var1 is undefined, second it's strange to see a part of the html page.I read other examples which looks like to mine, I don't know what write more to make it works.

View 7 Replies

ActionScript 2.0 :: See The URL String Generated By SendandLoad?

Oct 31, 2005

I'd like to double check that sendAndLoad is sending the correct string to a jsp. I don't have any control over the jsp so I'm reliant on seeing the url string. Here's the code use to sendAndLoad

ActionScript Code:
function doSubmit() {
formData = new LoadVars();
formData.loginName = "test";

[code]....

View 9 Replies

ActionScript 2.0 :: SendAndLoad() Not Returning Result?

May 4, 2006

I'm creating a login in Flash that connects to a MySql database through PHP.I'm using sendAndLoad() and the variables are being send to PHP without any prolems, however it does not seem to be returning any info resulting in a "invalid username/pass" message.I'm fairly sure the problem lies in the PHP but not too sure where! Do I have to declare the result_lv variable in the PHP somewhere? How and where?

[code].....

View 1 Replies

ActionScript 2.0 :: SendAndLoad Variables That Are On Another Domain?

Jul 24, 2006

I have one questio: How can i sendAndLoad variables that are on another domain.I have a mail form in flash...and i'm using sendAndLoad property, here it's my script:

Code:
sender.onRelease = function () {
//senderLoad.theName = nume.text;
senderLoad.kind_txt = Kind;

[code]....

But i don't get the variables back and no mail was send!

View 4 Replies

ActionScript 2.0 :: SendAndLoad It Sends But Not Loads?

Dec 3, 2006

I have a problem with the code below. It sends the vars to the submit.php but it doesnt load them. All files are in the same folder. Get the .fla --> here

Code:
var oListener:Object = new Object();
this.onEnterFrame = function() {
ratio.text = score;
lvData.scored = score;

[Code]...

View 7 Replies







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