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


Similar Posts:


ActionScript 2.0 :: SendAndLoad - Check Value Of Returned Variable

Aug 31, 2010

I`m using sendAndLoad function to pass some var to serve rside language. ASPX to be precise. Everything works fine, but the problem is I need to check value of returned variable. And variable is returned in XML format.

[Code]...

View 1 Replies

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 :: 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 :: Login - Get The SendAndLoad() Function To Work Correctly

Apr 28, 2007

I am having trouble to get the SendAndLoad() function to work correctly so that when the php script echo's or print("result") is called it gets a string saying pass, or fail... the following is my code for php, and action script. Also I have provided two pictures explaining the what exactly I want.

[Code]...

View 3 Replies

ActionScript 2.0 :: LoadVars Correct Option?

Jan 7, 2008

I am required to send an http request to a server which will get me some xml. I am using LoadVars to do the job.

Code:
var str = "http://release.theplatform.com/content.select?pid=yigHHIb89BkaWJnMmg92cfLGmAIMqGZn&UserName=cmsguest@cnbc.com&key=luocyXPcWOvIJOX2NQZTB4TutU0%3D";
var my_lv:LoadVars = new LoadVars();

[Code]...

View 1 Replies

ActionScript 2.0 :: Tracing _xscale & _yscale - Only Values Returned Are 100

Dec 18, 2006

I'm moving my movieclip around and in order to make things work nicely I need to know the _xscale and _yscale values before and after the clip has been triggered, there are lots of variations but when I trace(myMC._xscale) & trace(myMC._yscale) the only values returned are 100

View 7 Replies

ActionScript 3.0 :: Test To See If The Class Of An Instance Is The Correct One?

Apr 13, 2009

How can I test to see if the Class of an instance is the correct one? Say I have two Custom Classes, Circle and Square. How would I make it so that if the class of instance one is Circle, a specific function is carried out?

View 1 Replies

Found The SWF File And Tried To Embed It On A Test Page And Its Not Working Correctly

Dec 10, 2009

I need to embed a SWF on a website. The swf is this interactive map at [URL](where it says select your region). So I found the SWF file and I tried to embed it on a test page, and its not working correctly. [URL] I don't know anything about flash, but the code I used was this:

Code:
<embed src=" [URL] The map is showing up, but the continents regions are not click-able, and the drop down text is not showing the continents.

View 1 Replies

ActionScript 2.0 :: Getting Values From A Radio Button Into A LoadVars Object?

Oct 17, 2006

I have a survey in Flash with 5 questions. Three questions have input text boxes for the user's answers, and two have sets of radio button options. I want to send the answers to a PHP script and insert them into a MySQL database.The text boxes work fine, but the values for the radio box responses show up as "undefined" in MySQL. I'd like to know how to pass the values from the two radio button groups into the LoadVars object. The code I have is:

Code:
submit.onRelease = function(){
var questionVar:LoadVars = new LoadVars();
questionVar.question1 = question1.text;
questionVar.question2 = radioGroup1.getvalue();

[code]....

View 2 Replies

ActionScript 2.0 :: Loadvars Values Not Loaded In Firefox Form?

May 2, 2010

Finding out my that my values are not loading the formfields in Firefox while they are loading perfect in IE i set up a small test.The codes are fine with IE and give a problem with Firefox and Safari

Code:
//Sending values.
knop3.onRelease = function() {

[code]......

View 2 Replies

ActionScript 2.0 :: Loadvars Values Not Loaded In Firefox Form

Feb 8, 2012

Finding out my that my values are not loading the formfields in Firefox while they are loading perfect in IE i set up a small test.The codes are fine with IE and give a problem with Firefox and Safari

Code:

//Sending values.
knop3.onRelease = function() {
zend = new LoadVars();
ontvang = new LoadVars();

[code]....

View 1 Replies

IDE :: Checkbox Values Not Adding Up Correctly?

Oct 8, 2009

i also tried with leaving the == true off - adds to zero The code files are at [URL]

New Code

Code:

substance.text = myVars.substance;
sum.text= myVars.sum;
score.text = Score;

[Code].....

View 1 Replies

Flex :: DropdownList Does Not Show The Correct Values

Sep 7, 2010

I have a Flex Spark dropdownList in which I need to show the Provider FirstName,LastName:

<s:DropDownList id="providerList"
dataProvider="{model.practiceProviderList.practiceProviders}"
labelField="provider.providerName.firstName"/>

But the output shows only [object Object] & [object Object] as there are 2 providers in the DB and does not show the actual values.

The PracticeProviderList.as:

[Bindable]
[RemoteClass(alias="model.PracticeProviderList")]
public class PracticeProviderList extends PracticeProviderListBase {

[Code]....

The Provider has providerName:PersonName as one of it's fields & PersonName has firstName:String & lastName:String

View 1 Replies

ActionScript 2.0 :: Correct Syntax For Passing 2 Values?

Apr 3, 2006

is this correct:

getURL("webform1.aspx?id=0&status=I",0,"Get");

I need to pass 2 values

value 1 is id
value 2 is status

View 2 Replies

ActionScript 2.0 :: Checkbox Values Not Adding Up Correctly?

Oct 8, 2009

i also tried with leaving the == true off - adds to zero The code files are at [URL]

New Code

Code:
substance.text = myVars.substance;
sum.text= myVars.sum;
score.text = Score;

[Code].....

View 0 Replies

ActionScript 2.0 :: Button Is Not Being Placing In The Correct Position When Set The X And Y Values?

Jan 15, 2011

My buttons are not being placed in the same position as my other buttons are on another page? I copied the same x and y cordinates as the other page..but they are still not being placed in the same position..why is this?

View 2 Replies

Actionscript 2.0 :: Source Object Values Not Reading Correctly

Apr 16, 2009

Basically, when a small link is clicked, the big title is meant to swoop down and the new page title is meant to swoop up. This isn't working, other than when the page is first loaded. The actionscript I'm using (as2) is:[code]

View 6 Replies

Flex :: Date Time Axis Not Showing Correct Values?

May 28, 2010

<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

[code].....

View 1 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

Flash :: Packet Loss Test Like In Ping Test From Flash Technologies?

Feb 22, 2012

Does any one have a idea about how to do a packet loss test like in ping test from flash technologies (Flash or Flex)?

View 1 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 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

View 4 Replies







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