ActionScript 3.0 :: Send Two Seperate Variables?
May 2, 2010
Just a quick question. I transfer one variable from php to as3 using
<param name="FlashVars" value="myVar=<?php echo $_POST['name'] ?>" />
How can I send two seperate variables? I know I can use & in the middle of that code, and pass another value, but this will place both values into the variable myVar. Can I just do a new one underneath like
<param name="FlashVars" value="myVar=<?php echo $_POST['name'] ?>" />
<param name="FlashVars" value="myVar1=<?php echo $_POST['pass'] ?>" />
View 7 Replies
Similar Posts:
Sep 16, 2011
The swf file kind of captures a certain area of a flash movie which is loaded in.. I guess it works a bit like a camera..Anyway, what I am trying to do is figure out what determines the size of JPEG produced. At the minute its pretty small.The Flash movie is used to make an avatar. When the user is finished they hit a button and it captures the design, then emails it.I have found a line of code which relates to the size of the jpeg which is emailed
var myBitmapData:BitmapData = new BitmapData(230, 200);
What I want to do is produce a much bigger image than 230, 200
I tried changing those numbers higher and it did not work,Also I want to be able to send the image to a seperate page where an API can be picked up.Here is the code
Actionscript Code: [code]......
View 4 Replies
Oct 16, 2002
I am having trouble passing information from a loaded movie sitting on level1 back to the main movie.
View 3 Replies
Nov 16, 2010
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 2 Replies
Nov 16, 2010
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 6 Replies
Apr 17, 2010
I am currently trying to write a website for myself from a flash template and need seperate buttons to Play and Stop seperate tracks of mp3s. I have managed to get it to play one track however when I try to add a new track, the new button just plays the same track as the first one.
Here is the method I have used, I am still learning flash so this might not be the best way to go about this. Any help would be greatly received.
[Code]...
View 3 Replies
May 19, 2010
I want an image to change when users scroll over a seperate button. Here is my code for that button:[code]The name of the image I want to change is bikebutton. I want frame two of bikebutton to display when this button is moused over. I want frame one of bikebutton to play when the button is moused off.
View 3 Replies
Oct 19, 2009
Does anyone know how to send variables from actionscript to php?
View 11 Replies
Feb 15, 2011
I desperately need to send variables from AS3 to PHP. I have been searching and trying for days to work it out but nothing seems to work. I have a swf which will be used for quotes, each part asks things like size, colour and other options. It has a summary part at the end that shows everything that has been added. I want to send these variables with there values to a PHP page to send an email. I can work out the PHP bit and I have tried several things to get the variables sent to the PHP but nothing seems to work. I want to send the variables to php when the submit button is clicked, it goes to the test PHP page which should then print the variables but it is blank.
Here is the code I have at the moment:
ActionScript Code:
btnSubmit1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
PHPSendData()
var myData:URLRequest = new URLRequest("test.php")
try {
navigateToURL(myData, "_self")
} catch (e:Error) {
[Code] .....
I'm new to AS3 so not too sure about anything but I'm not even sure if I need the loader bit or the function doComplete but I have tried it with and without and it doesn't make a difference.
View 5 Replies
Aug 16, 2010
Im trying to make an swf send a phone-number to a specific asp-fil on the press of a button.But since I'm an as3 rookie I have no idea where this code is going wrong (PLEASE HELP):[code]
View 2 Replies
Jan 28, 2009
I know when I was connecting to my database in my last project I used PHP, however I need to use JSP for this project and I can't find any info on google, it just seems to be flash remoting with PHP.
View 1 Replies
Apr 5, 2006
how can i send variables to asp... that's all i want.
this is what i have...getURL("webform1.aspx?id=1&status=I",0, "GET");
but everything this gets send to asp... it also loads a new browser... i would like to continue with my flash movie from section 1 to section 2 and just send 2 variables to asp to let them know that i have finish section 1... that's all.
View 5 Replies
Jan 25, 2009
I have written the following to call in a text file via php and evaluate the contents for duplicates. If there are dupes, it identifies and removes them and resaves as a new array to send back and overwrite the current php. It identifies the dupes perfectly and assembles the new array as well. Unfortunately, it's not sending the new contents (myLV) to the php in my sendAndLoad.
I suspect that part of my problem is that it's all encased in the onLoad function which is embedded in another function, but I cannot get the initial variables to load from the php any other way.
Here's my AS:
function upDate() {
var playerData:LoadVars = new LoadVars();
playerData.onLoad = function() {
var currentNames:String = this.blog;
[Code]....
View 3 Replies
Feb 18, 2010
Well, I made a login page with flash and php. So I was wondering how can I make it so that I can send variables to another frame.
Like I have a button, when you press it, it connects to the database, and it checks your login. Then it gets all the variables. So how can I get the variables for every page on my flash project?
The only way I can think of now, is setting a dynamic text to the variable..
View 3 Replies
Mar 29, 2012
I am trying to send some variables from my actionscript 3.0 to PHP file.. but if i am using POST method I am getting an error instead if I use GET method it is working fine but then there comes the security issue. All my variables are displayed in URL which I dont want to happen. This is my code:
[Code]...
View 1 Replies
Apr 20, 2010
I need to retrieve data from a text file, sort it with a new added score, and then turn the whole data back into a string and save it back into the text file.
I have worked on mini .swf files and php files, and I can seperately:
- retrieve data from a text file to Flash
- do the sorting in Flash from a string coming from a text file
- send a string to a php file and save it on a text file
But I cannot seem to do the three at the same time! Here is my [code]...
View 0 Replies
Jul 29, 2010
I have a simple banner that has three choices. A, B, and C. When a user clicks on one of the choices...I just need a counter to make note of it...in some remote file. Php I would guess.So the end result is that you could access the php file and see that choice A was clicked however many times, and choice B was clicked so many times, etc.But I am not a Php guy and don't know what syntax to use to make this happen.
View 1 Replies
Jun 10, 2005
I've searched everywhere, but can't find one thread/result that suits my situation.I'm trying to post data into a database, through php. I don't want to reload the page, so I want this to happen through Flash. I thought about using the LoadVars() class, but it just simply isn't working.How would I about doing this? Say I have three variables, blah1, blah2, and blah3, all of which are strings. How do I send these variables to a php page with the POST method?
View 4 Replies
Jul 2, 2005
Am trying to make a good form, butm i have problems whit SEND button, when i click in, it only go and play it didnt send anything, i put this on button :
[Code]...
View 2 Replies
Jun 29, 2006
I'm making a flash form and I just want to send some variables to a php page but not show a new window or anything. And the variable is huge so I want to use the post method. It's also posted from a component therefore movieclip.loadVariables doesn't work?
View 3 Replies
May 8, 2007
I would like to send php variables to flash, how do i do this?
View 2 Replies
Nov 1, 2007
I'm trying to send an email with 3 input text fields to a PHP script.The input text fields are populated and I've tried using LoadVars and loadVariables and getURL, none of which have worked. I trace the text fields and they have values, and the PHP script is reached and it sends the email but not with the right content that it is supposed to receive from AS.what's the deal? I would also prefer not to open another window as in the target property of the getURL function but would like to give confirmation of receipt directly in Flash.[code]
View 1 Replies
Jan 25, 2008
I know you can send all the variables using: url...Is there a way to do this but only send the variables I want to? Say I only wanted to send "user" and "pass" but not "content".
View 4 Replies
Mar 10, 2008
I have an email form in a flash file. Currently I am using the send variables coding as for whatever reason, it doesn't function if I use loadvariables:Here's what I have set up on my submit button:
on(release)
{
if(form.name == "" || form.phone == "" || form.email == "" || form.message == "")
[code].....
View 1 Replies
Jun 9, 2008
I have three movie clips that I am using as buttons. Their instances in the movie are Espanol_btn, Francais_btn and Deutsch_btn. I have added script to control the rollover and press/release states of the buttons, and now need to get the script to recognise which of the three buttons was pressed, store that result in the variable called lang (The posibilities are Espanol, Francais or Deutsch), and depending on what the variable land is, do different things. The script is below.how I can get this to work.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var lang:String;[code].....
View 1 Replies
Jul 16, 2008
I saw that there are lots of ways to send info or values from flash to PHP. But is there a way to do the REVERSE? Send variables or values from a php to a flash and this same flash movie react to those values?
View 8 Replies
Jul 29, 2010
I have a simple banner that has three choices. A, B, and C. When a user clicks on one of the choices...I just need a counter to make note of it...in some remote file. Php
So the end result is that you could access the php file and see that choice A was clicked however many times, and choice B was clicked so many times, etc.
But I am not a Php guy and don't know what syntax to use to make this happen.
View 1 Replies
Jan 13, 2011
I am searching how to send variables from a php webpage to a flash animation that it will be integrated into anther webpage ... Little exmple : An user enter his name in an input in a php page then when he clicks submit button his name will be shown in a flash animation
View 2 Replies
Jun 3, 2011
I have a flash player embedded on page page.php?user=john using swfobject. The player calls the xml file content.php to get the results. I'm trying to get the user name from the url id. and fetch results based on that. I can get the username on page.php by doing $_GET['user'], but how can i pass that to content.php. Having read allot of articles online, i did the following,I'm embedding the flash on page.php using swfobject like this
<script type="text/javascript">
var flashvars = {user:"<?php $_GET[user] ?>"};
var so = new SWFObject("<?php echo $index->CFG['site']['url'];?>preview2.swf", "sotester",
View 2 Replies
Feb 13, 2009
I am using as3 for some time now, but i have never tried to communicate with a server. I have to send some values to a server and also receive some values using HTTPS.I found some stuff about HTTP, i havn't tried them yet. I hope this is not too difficult because it has to be figured out by Monday.
View 0 Replies