Data Integration :: LoadVars-using Send To Pass A Variable From Flash To Php

Mar 24, 2008

For the life of me, I've tried everything: I've researched LoadVars on Adobe forum, used David Powers' books, googled 'flash to php', LoadVars, etc. and tried sendAndLoad, send, and using $_POST, $_GET, $_REQUEST. $HTTP_POSTVARS but I keep getting this same error.

I have a Unix server running Apache/PHP 4 - LoadVars worked to load name-value pairs into an array -see thread)

My goal with this simple app is to prototype being able to pass a variable from flash to a variable in php.

Parse error: syntax error, unexpected T_VARIABLE in flash_to_SQL.php on line 5

Actionscript 2.0 code:

var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("

[Code]....

View 3 Replies


Similar Posts:


IDE :: LoadVars - Send Data From PHP To Flash - Does Not Display The Contents In The Variable

Jun 23, 2009

I would like to send data from PHP to Flash however, it sends just fine but when displaying on Flash, it does not display the contents in the variable. Instead, it displays the name of the variable. This may be a simple answer but I'm quite new to this. Here is the code in Flash.

[Code]...

View 7 Replies

Data Integration :: Firefox 2.x Sending Variables To PHP Scripts With The LoadVars.send / POST Method

Dec 29, 2006

There seems to be a problem with Firefox 2.x sending variables to PHP scripts with the LoadVars.send/POST method.

<br>

The same problem doesn't occur in IE or Opera. <br>See this url for example to try in both FF and IE/Opera: here. <br>The source files are here g.zelenka@iinet.net.au

View 4 Replies

Data Integration :: Get The Html To Pass The Url Variable It Receives On The Flash?

Oct 9, 2006

this liveDoc covers getting a url variable into flash:http:/[url]....you can pass data to a flash movie by doing the following:[url]....this will create a variable: _level0. variablename with the data: thisisthedata.so far so good.you can then embed this in the published html doc by including your data string in the object/embed tags.like so:

<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=8,0,0,0"[code].....

not to bad, so now your html is loading the swf with the url variable. the problem is this data is hard coded into the html.now for the question. how do i get the html to pass the url variable it receives onto the flash?

View 2 Replies

Data Integration :: Send Data From Html To Flash Action Script

May 31, 2007

I would like my flash to act differently depending on what html page it is on. Can I send information from html code to action script?

View 1 Replies

Flash :: Data Integration :: Send Record And Place It In A Data Grid?

Mar 1, 2007

i have a problem regarding the integration between flash and ASP file i have an ASP file that gets a record set from the database i don't know how to send this record set to flash and place it in a data grid

View 4 Replies

Data Integration :: Send Sth By ASP In Flash

Dec 11, 2007

I have got to send sth by ASP in Flash. I wrote some code but this doesnt work.[code]If I just click on email. asp without Flash, I will get a email from there. But if I use the above method to call that page, the email wont be sent. So do anyone know what wrong?

View 3 Replies

Data Integration :: Send XML From Flash To PHP?

Apr 17, 2007

I create an xml in flash and want to save it on the server. i user my_xm.send("script.php"); to send the created xml, but don't know how to handle it in PHP in order to save the file on the disk.

View 2 Replies

Data Integration :: Send An Array From Flash 8 To PHP?

Jan 13, 2008

I am using flash 8 and actionscript 2 I have created an array in flash to send to php using getURL and POST. i.e.

on (release) {
var id:Array = new Array();
id.txt_4 = 'nopanels';
id.txt_2 = 'xheight';
id.txt_3 = 'xwidth';

[code].....

I am trying to make it 'register globals = off' compatible.

View 2 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

Data Integration :: Pass Variables To Flash From Php?

May 25, 2010

I have searched the forums and internet and nothing seems to work. It sounds so simple but the variables are not passing into flash. Here is the scenario:

On frame one of my flash file I have:
stop();   var sendLV = new LoadVars();
var recLV = new LoadVars();

[Code]....

View 2 Replies

Data Integration :: Php Document And Send The Variables To Flash

Apr 6, 2009

I need to build a really simple php document and send the variables to flash, I'm following a simple tutorial where PHP document:

[Code]...

View 3 Replies

Data Integration :: Send Variables Stored In A Ms Sql Db To A Flash

Jul 18, 2008

Im having a bit of trouble integrating dynamic variables pulled from a databse using an ASP script with a flash movie.

Background:

I need to send variables stored in a ms sql db to a flash movie to display several values.

The dyanmic element comes in because i am using an ID to select the values from the db e.g id1 = joe bloggs id2 = paul smith

etc

When i am hardcoding the id in the asp script the variables are sent to the flash movie no probs and they display correctly.

I am also printing the asp code on the page and that all displaying fine.

HOWEVER, the issue arises when i make the asp code dynamic and by that i mean I am using request.querystring to pull the id

from the URL - The print out of the asp code is still displaying the correct variables, BUT they are not being passed to the

flash movie at all - the placeholder is blank there isn't event an error!!.

Couple of things to note -

- if you change the id bit of the url in the dynamic script to the printed asp code changes

- THE FLASH MOVIE IS IDENTIAL in both scenarios

- all variable names have remained the same

- it is NOT a location of file issue as we have tested the dynamic code files In another folder and no joy

- we are not using any other file includes or asp code in any of the page - all other code has been stripped out

THE ISSUE WE HAVE IS THAT THE PRINTED VARIABLES ARE NOT BEING PASSED TO THE FLASH MOBIE in scenario 2 where the asp code is looking for the participant id dynamically (i.e from the URL)

View 1 Replies

Data Integration :: Adding Variables To LoadVars Object?

Apr 27, 2007

I have an application that reads a PHP script and populates the Flash applets using the following on frame 1:

[Code]...

A combobox (created with the returned data) is created on frame 61. When a selection is chosen in the combobox I need to add the value returned from the combobox to the variable catvar, add this variable to the LoadVars object and run the script again. It seems to set c.catvar initially but when I use the 'sendAndLoad command the second time c.catvar isn't included. Is it possible to add variables to a LoadVars object created
on frame 1 from frame 61?

View 1 Replies

Data Integration :: Loadvars Blocked When Run From Powerpoint 2003?

Sep 8, 2006

I have done many assignments where I have developed Flash movies that access external databases over a web pages and present the results in custom made graphs. Perfect for scorecard applications etc. The main benefit of using Flash has been that the whole thing can be embedded and run from PowerPoint,

[Code]...

View 1 Replies

ActionScript 2.0 :: Use LoadVars To Send POST Without Attached Variable Name?

Jan 12, 2009

Let's say I'd like to post some data to a server side script. If my data is

var data:String = "<data><tag1>hi</tag1></data>";

and I'd like to send it with LoadVars, I can do:

var lv:LoadVars = new LoadVars()
lv.data = data;
lv.sendAndLoad("http://thescript/", lv, "POST");

However, this results in the POST looking like this:

data=<data><tag1>hi</tag1></data>

if I want to send it without the variable name (no "data=", just the actual data), how is this possible? In AS3 I can just use the .data property of a URLRequest and it will work, however I can't find a way to do this in AS2.

View 1 Replies

ActionScript 2.0 :: Pass Input Text To LoadVars Variable?

Oct 14, 2009

[code]...

I have an input field with the var name "chosenloc" in the same scope as the timeline I'm working in. I've set the input field var in code, on the fly, and by entering a number right into the field.

View 2 Replies

Data Integration :: Using LoadVars With XML Data

Aug 17, 2006

All the examples in the text books, etc. show the LoadVars object being used with a .txt file. Can I use it with a .xml file or not? I have tried but the output panel just shows rubbish data!

View 1 Replies

Media Server :: Using LoadVars In SSAS To Send Data To A Php File?

Mar 21, 2012

I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
 
Here is main.asc:
 
<code>
var variables = new LoadVars();
variables.username = "uname";
variables.send(http://url.abc.com/test.php,POST)
</code>
  
I can't compile with the second line. FMS just says: Sending error message: Compilation error
 
How do I send variables to a HTTP URL?

View 2 Replies

Data Integration :: Load/send XML Data Via HTML Form?

Jul 26, 2006

I currently have a Flash app that gets populated by parsing data from an external XML file. However, I need to get the XML data into a (JSP) session and can't neccesarily have an external XML file--any suggestions? Can I put the XML string into a hidden input field in a form on the HTML? Can Flash communicate with that HTML? Or are one of the below methods recommended:

* FlashVars

* Flash Remoting

* Web services

* JavaScript - call JS function

* fscommand

* ExternalInterface

View 1 Replies

Data Integration :: Send And Receive Data From Mysql?

Jun 17, 2007

I would like flash to send and receive data from mysql.

To send data I would like to create 5 input fields, and then use a submit button.

Then to retrieve the data I would like to use the data grid or a dynamic text field.

View 6 Replies

Data Integration :: Sending A Variable From Flash --&gt; PHP?

Mar 14, 2007

according to a Flash MX book I'm using, the following should work (their own example):

The Flash movie:

- button with script:
on (release) {
loadVariablesNum("xxx.php", 0, "POST");
}[code]........

View 7 Replies

Data Integration :: Reset A Variable From Flash In The Parent Php Page

Jun 5, 2006

I know how to pass vars from php to flash and from flash to a "new" php page but here is my question.

I have a php page (page1.php) with some HTML and a php variable called $number. page1.php also has an embedded test.swf movie. While working with the test.swf movie, I want to send data back to the $number var on the page1.php without reloading the page1.php because then it would reload the test.swf movie.

I have been able to use javascript to change background colors on page1.php from within the test.swf movie but cannot figure out how to set a php variable from within the test.swf movie.

View 2 Replies

Data Integration :: Send Email Form To ColdFusion?

Apr 7, 2007

I am trying to send data filled out in a form in my flash movie to send mail using CFMAIL. In my form that is in Flash I have variables set. Then when the button is pressed loadVariables("sendMail.cfm", "POST");

Then on my CF page I have this:

<cfmail from="info@mysite.com" to="#FORM.email#"
SERVER="mail.mysite.com" >
#FORM.comments# #FORM.company# #FORM.name#
</cfmail>

I can't find a tutorial on this. Everything is PHP. And I don't want to use "Flash Forms in MX7"

This is all embedded in my Flash web site.

View 2 Replies

Data Integration :: PHP - Cannot Get The Submit / Send Button To Work

Sep 5, 2008

I have a Flash website with a web form that I cannot get the submit button to work. I was able to create a button for reset to work, which I will post that action after the one for my form. I have an instance of web form (which I placed onto my contacts page) created with onsetfocus code and this is the parent form t1_2 and this is the code I have assigned to this form.

[Code]....

View 1 Replies

Data Integration :: How To Pass In Dynamic URL Path For Property

Oct 8, 2006

Shouldn't it be possible to pass in a dynamic url path for this property? I am successfully loading a variable using loadVars and then attempting to use that variable to populate the xmlConnector.URL property but it does not seem to work. Do you have to hardcode a url for this property?

View 1 Replies

Data Integration :: Send Variables To Database Without Opening Broswer?

Mar 12, 2007

I have a standalone flash app that needs to get user inputand send it to a remote server / database. When I use the methodbelow, a browser window opens which I don't want to happen - I wantthe data to be sent but not display the page.

my_lv.fname = fname;
my_lv.lname = lname;
my_lv.emailaddr = emailaddr;

[code].....

View 1 Replies

Data Integration :: VoucherNo Variable From Flash To Replace The Value In GoodVoucher Field In XML File?

Aug 21, 2006

I have the following code in place to move a variable from my Flash app to an XML file for storage [code] how do I go about getting my VoucherNo variable from.Flash to replace the value in the GoodVoucher field in my XML file?

View 3 Replies

Data Integration :: Enable Data Management If Passing An Extra Variable To PHP Script?

May 7, 2010

Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script.  I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter.  It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
 
Or is there another way I can pass the tablename variable to the php file before I call any functions?

View 3 Replies

Data Integration :: How To Parse Data And Assign Variable To Text

Jan 30, 2007

I have three dynamic text boxes. variables respectively
(caption0,caption1,caption2).
My xml file is structured as:
<?xml version="1.0" encoding="iso-8859-1"?>
<captions>
<caption>Roll over this</caption>
<caption>This is the first Caption.</caption>
<caption>This is the second Caption.</caption>
</captions>

I am trying to create a rollover where when you rollover caption0; caption1 and caption2 are displayed in sequence. Everything works except though only the first caption is ever displayed. For the other two I get "level0.caption1" and "level0.caption2" instead of the text in the xml file above. How do I parse the data so that each of the variables are assigned the text in the xml file?

View 8 Replies







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