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"
<? 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
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;
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.
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.
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.
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);
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;
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??
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 ?
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)
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.
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
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]...
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?
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.
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
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