ActionScript 2.0 :: Sending Vars To A Php-file?
Jul 2, 2003
I am using the follwing actionscript to send 2 vars to a php file:
Code:
getURL ("file.php?name1=" + name1+ "&name2=" +name2, "_self", "POST");
.but when i test it local. I see the following:
"file.php?name1=david&name2=posh?M%5FloveMatch=%5B type+Function%5D&calculateScore=%5Btype+Function%5 D&your%5Fname%5Fstatic=dfjkawef&your%5Floveone%5Fs tatic=oiaSDV&score=78&scoretext=78%25&name1=david& name2=posh"
and all i wanna get is:
"name1=david&name2=posh"
View 1 Replies
Similar Posts:
Oct 12, 2004
i have this php page..
PHP Code:
<?
include("dbconnect.php"); /// connects to database
//// get data
$SQLstr = "SELECT * FROM programtexter WHERE subject='$select'";
[Code].....
flash reads in the 1st variable _root.pg1text1 and writes it out on the page ok
but how do i make it know when theres a new variable. because it also puts the second part in the 1st variable. it does not break up the variables it just puts all the text into _root.pg1text1
how do i break it up so that each text string is put into the right text string? doing <br> and haviung spaces between dident work
View 2 Replies
Nov 23, 2007
I need to pass some variables so ASP, but error occur.
[Code]
but it did not catch any request
View 4 Replies
Aug 18, 2011
having an unusual problem sending vars to php. it is sending the var but my flash game is being unloaded off the site once the var is sent. if there is another way to send VARS please let me know, OR maybe my code is wrong.
Code:
function sender()
{
varsToSend = new LoadVars();
varsToSend.var1 = beatTimer;
[code]....
View 1 Replies
Jun 9, 2004
I'm trying to send variables to a php-file. It works ok with some of the vars but not for continent (see code below). I have all tried the "" around the value - still no go. The clip is loaded from a mouseover function. I have tried to make a trace of the variables, but that doesn't work either.
this.createEmptyMovieClip("myForm", 0);
myForm.newSearch = 1;
myForm.searchType = 1;[code]....
View 2 Replies
Jan 1, 2012
I have an AIR app that is uploading a txt file to a server, and I have a progress bar set up in AIR for the user.
The php file that handles the upload then opens the txt file, parses and sanitizes the contents, and inserts them into mysql.
I was wondering if there is any way to have php tell Flash what's going on at each stage of the operation?
At the moment, my progress bar gets up to 100% once the txt file stops uploading, but then hangs around until php has finished the backend stuff. This is fine - I like that the progress bar movieclip stays there until the mysql insert is complete, but I was wondering if it would be possible to reset the progress back and have it move as the php continues through the parsing and mysql insert, or send back a series of text vars saying 'Parsing text file' then 'updating database'?
I understand that you can only echo back to Flash once, and I've also come across that Flash bug that doesn't accept variables back when you are uploading a file as opposed to just uploading variables.
View 5 Replies
Apr 23, 2008
I have developed a facebook application in which I am sending data from Flash to Php.Its actually a game based on Flash 8 and at the end I send data by using
loadVarsNum()
using POST method to flash but the problem is this data can be easily tampered so I want know that how can I secure my data from theft or any hack.
View 1 Replies
Feb 23, 2011
I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.Here is my code:
PHP Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
[code].....
View 2 Replies
Feb 23, 2011
I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.
Here is my code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
[Code]......
View 1 Replies
Jan 4, 2010
i'm sending flash vars to php, but the .swf refresh when the fuction "send" is call.
fo exemple:
var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");
when this happen, the page refresh and also the .swf
View 3 Replies
Jul 5, 2010
On my html page I have two frames, one for navigation and the other for content. The navigation menu is an swf. Most of the content is html, except for the 'gallery' page.
The thumbnails for the gallery appear within the navigation. I can get the pictures to load from the thumbnails into the 'content' frame using LoadVars sendAndLoad.
However, doing this means that the flash gallery refreshes itself each time a thumbnail is clicked (thereby losing the transition effect).
So, how do I load the images in the other frame without reloading the flash??
Could I do it using external interface? ..
View 2 Replies
Dec 11, 2011
I want to open a web page on the same tab when the user clicks a movieclip. I'm using this method:
var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {
[Code]...
how to open it sending POST vars. Is that possible?
View 2 Replies
May 19, 2005
i am trying to load vars from a text file into a load vars object.
var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');
Once in the object, i thought i could reference them like so
kitchentext.name
kitchentext.style
but i am having trouble doing this.
i have a textbox called displytext.
_root.displaytext.text = kitchentext.name;
doesnt work
View 3 Replies
Jan 4, 2010
i'm sending flash vars to php, but the .swf refresh when the function "send" is call.
fo exemple:
var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");
is somehow more correct to do it?
View 4 Replies
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
Dec 8, 2009
In first frame of my movie I've got this:
PHP Code:
loadVariablesNum("produkter.txt", 0);
import TextField.StyleSheet;
var myCSS:StyleSheet = new StyleSheet();
[Code]....
and a dynamic textbox called "myHTML". If I name 'var' on this textbox everything works fine, but I want to write it in actionsscript instead. Where do I write that? (I have 3 different vars in the text-file)
View 1 Replies
Apr 10, 2010
I can't get it to work. I now messed up the code so I have to start over and I'm a bit desperate now
I think the core of the problem in my actionscriptproject is the following:
1. I need to read, for example, 20 variables from a file, preferable an xml file. This file has 20 lines, and has two fields per line, variable name and content
(being text between " ").
so data.xml would be something like:
variable1, "text for variable1"
variable 2, "this is var2 content"
...
or even:
&variable1=value1&variable2=value2&variable3=value3&variable4=value... and so on to 20.
2. Then, from the 20 read vars, a new array should be "populated" randomly! And at this point, I don't even know how to start doing that.
View 1 Replies
Aug 5, 2009
I am using flash vars to pass variables into my swf file.but i want to refetence a Mc by using a flash var. [code]how Can i call a Mc from the flash vars and have it do something
View 1 Replies
Nov 27, 2010
With URLLoader I can read vars from a file. How can I send the same files , new vars values?
View 3 Replies
Mar 8, 2011
Writing a couple of vars to a txt file is relatively easy.I store them as .sql (sort of) layout, so that i can import them into mysql later.But obvious this is not necessary..
The thing i am struggling is how do i read these vars back into flash[code]...
View 1 Replies
Nov 18, 2006
When i've created a vars in my fla file and load it from the html file to dynamic text field, using this action
[code]...
Ok ... it is working, but it only for 1 text field. So .. how i can load a vars from one html file with other dynamic text fields.
View 2 Replies
Aug 10, 2010
I have an AS2 FLA that needs to get an external JPG file from a web-server and send it to another server encoded as base64.
The only problem is I can't use an external PHP page or something like that. It should work with a single SWF at the end.
I don't even need to show the JPG inside a MC. Just need to send it encoded to the other server.
View 3 Replies
Mar 12, 2011
I need to send my flash file some values to .as file.
Example: I have 2 buttons.
Actionscript Code:
Button1.onRelease = function(){myXML.load("something1");};
Button2.onRelease = function(){myXML.load("something3");};
And if I press the button then AS3 get myxml.load value
Actionscript Code:
private var xmlURL:String = HERE';
View 1 Replies
Apr 29, 2010
I have an ActionScript File sending XML to my servlet. I am only getting empty arrays on output. Anyone know what Exactly I'm doing wrong? output is:
[Code]...
View 1 Replies
Jun 3, 2010
How can I send a .png file using python cgi to a flex application?
View 1 Replies
Sep 19, 2003
can i send some variables that are within a text file into the actionscript; i mean, in 1.txt there will be a[1]=30; can i use a function to read this variable and then use it in the actionscript like x=a[1]+2 and x would be 32?
View 1 Replies
Oct 8, 2009
how to send variables from one swf to anotherAssuming they are on different domains,
View 2 Replies
Feb 20, 2009
I have a job application form where i am taking users basic info as name,email, phone no along with this i am asking him to upload his CV(a doc /pdf file)
How can i post all data on one submit. I am using PHP at backend.
I can send data and upload file seperately.Isit possible to upload file and submit data at a time.
Can we send additional variables with File Reference object.
View 3 Replies
Nov 22, 2010
I'm running it in actionscript 1 and 2 since 3 wouldn't work when getting data from external media. I'm trying to find out how to post data to a PHP file and getting from that file I'm trying to make the flash for something that works like a game but differently. Since I just found out how to make the HTML stuff show up but a lot of times, some of my text will not appear so I don't know what's going on.
how to send and get data both at the same time from a sample file?
The sample file is example.php
It has to sent information like ID and NAME and it has to get information like Description and userID
View 3 Replies
Nov 22, 2010
I'm running it in actionscript 1 and 2 since 3 wouldn't work when getting data from external media. I'm trying to find out how to post data to a PHP file and getting from that file I'm trying to make the flash for something that works like a game but differently. Since I just found out how to make the HTML stuff show up but a lot of times, some of my text will not appear so I don't know what's going on.
how to send and get data both at the same time from a sample file?
The sample file is example.php
It has to sent information like ID and NAME and it has to get information like Description and userID
View 8 Replies