ActionScript 2.0 :: Passing Variables Between Flash Movies (again)

Dec 23, 2002

Basically I have a button which can be clicked to load an external movie, the external movie loads an ASP script.Dependent upon the button clicked I want to be able to execute different SQL statements.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: FMX: Passing Variables Between Flash Movies On Different Html Pages?

Feb 21, 2003

Does anyone know of a good way to pass variables between flash movies on different html pages? Should I use a flash cookie? pass the variables in the URL of the html file and then try to get them back out on the next page?

View 3 Replies

ActionScript 2.0 :: [mx]passing Variables Between Movies?

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: [mx] Passing Variables Between Movies

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: Passing Variables Between Movies?

Sep 4, 2002

I have been receiving great help for the past few days on many different things, and now I have another issue. I am creating a form in an SWF that pops up in a window over my main site. Is there a way to pass the information that the user submits in that form to my main movie? Or will I have to embed the form movie into my main movie? Is there a tutorial dealing with this? Also, since I'm asking, is there a way to save information to a text file using ActionScript or Flash, or whatever? I was thinking the other thing I could do would be to save the information in a text file, then dynamically load it in a text box on the main site.

View 1 Replies

ActionScript 2.0 :: Passing Variables Between Movies And Do Action

Apr 14, 2002

I have two movies: m1 and m2. In m1 I set a variable to variable="yes". Now, I want m2 to read the variable and do an action depended on the variable (see the example below).

This is the AS in m1:
on (release) {
docufield = "background.txt";
}
And this is the AS in m2:
this.loadVariables(docufield);

View 7 Replies

ActionScript 3.0 :: Passing A Parameter Between Flash Movies

Nov 15, 2009

I have a flash movie for drop down menus that is called by all flash/movie banner sections of my site. The banner movies use FlashVars to set the heading and an image. The trouble is that the flash menus also were set to use a flashvar to dictate the context of the menus and leave one top level menu highlighted to show the content to the user. I have not been able to get both of them to use the Flashvars functionality. The html page calls the banner movie directly and it can therefore access the Flashvars. The menu swf however - which is not called from the html page but instead is called from within the banner movie - cannot access the flashvars variables. That leaves me with two choices:
 
1. Either use a different method for passing the context variable to the menu movie.
2. HTML code calls the banner movie. I can continue using flashvars and get the context variable by reading it from within the banner movie - and then somehow pass the value down to the menu movie if that is possible.

View 20 Replies

Flash :: Passing Values From 2 Flex Movies?

Oct 28, 2010

I have a flex compiled swf module inside my flex program I just need to pass it some values like I do it when I use chat.swf?username=john : that works !

I tried it with flex swfLoader and Image

SWFLoader source="../bin-debug/chat.swf?username=john"
Image source="../bin-debug/chat.swf?username=john"

This does not work: these values are not passed !

View 1 Replies

ActionScript 2.0 :: Pass Variables Between Flash Movies?

Nov 16, 2003

is it possible to pass variables between flash movies...

i.e. if you had 2 (or more) seperate flash movies in an HTML page, can you control one with the other?

View 2 Replies

ActionScript 3.0 :: Send Variables Between Flash Movies On Different Machines?

Apr 7, 2009

I want to send variables between flash movies on different machines. How can I go about doing something like this?

View 4 Replies

PHP :: XML - Passing Variables From Flash

Sep 4, 2010

Creating a flash project where users can visit the site, and turn off/on objects in a house (ie. lights, tv, computer, etc.) The next user who will visit the house in the website, will see what lights or house appliances were left on. Flash variables are passed to PHP, and those variables are saved in an XML file. (For testing to see what is being saved to the XML file, on each click --vars.xml opens.) In the vars.xml file, I see that the house objects that were last turned on--are saved in the XML file- But in the SWF file, only one of the objects that are listed in the XML are turned ON. Only the last object that was clicked on would show ON--not all the objects in the XML file.)

package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.text.*;
import flash.net.*;
public class House extends MovieClip {
[Code] .....

View 1 Replies

IDE :: Passing Variables To Flash?

Aug 7, 2009

So, I read the tutorial about passing variables by changing the url of the .swf with the following code:

Code:
if (movie==1 or movie=="") {
trace("default");
}

[Code]....

My question is, is there anything special if I want it to respond to the url of a .php page? So, if I have a page that ends in "?page_id=2" could I do the same thing or does it have to be an .swf?

Code:
if (page_id==1 or page_id=="") {
trace("default");
}

[Code]....

View 2 Replies

ActionScript 3.0 :: Passing Variables From Php To Flash

Feb 14, 2008

I have a problem using a very simple URLVariables script with php.The thing is this sample do works on some servers and doesn't on other:Instead of having the correct values with trace, I get the php code itself.That means I get the following string in trace():[code]I know it comes from the php configuration on my server because I tested it on another server and it works, but I can't find what I must change in my php.ini file to get the good results in trace();

View 3 Replies

ActionScript 2.0 :: Flash - Passing Variables To Asp?

Oct 20, 2009

how do I know if my flash form has sent its variables to asp? My code is:

onClipEvent (load) {
submit_btn.onRelease = function() {
emailform = new LoadVars();
emailform.var1 = var1.text;
emailform.var2 = var2.text;
emailform.sendAndLoad("form.asp",emailform,"GET");
}; }

I need to send the information as a query string to asp. Am I doing this correctly?

View 1 Replies

Flash :: Javascript - Passing Variables To PHP

May 13, 2010

I have a simple standalone application written in Visual Basic that I'm porting to a browser based application using PHP/javascript. The original VB application has some simple embedded flash games with token and point counters. The token and point values are being passed as variables between the application and the game.

I'm trying to achieve the same effect in my PHP port without modifying the actionscript code( using the variables in actionscript that already exist). Below is Visual Basic code that's loading a value from a database and posting that value to flash using FlashVars:

[Code]....

View 1 Replies

AS3 :: Php - Passing Variables From A Script To Flash?

Aug 27, 2011

I have an image uploader that runs on a separate PHP script, and then updates the Preview Url after the file has been uploaded. But what I'd like to do is have a Flash SWF embedded in the same HTML that's running the PHP Uploader to get that Preview URL and display it in the Flash Application.

View 2 Replies

ActionScript 2.0 :: Passing Variables In Flash

Nov 5, 2009

I have a php file that loads 2 variables to a new php page that has flash embedded. This works fine, I can see the variables in a dynamic text box I created, the problem is that I need to take the 2 variables and put them together, then load it in a gotoAndPlay.It then should play at that time-line but it just plays from the beginning frame.[code]

View 2 Replies

ActionScript 2.0 :: Passing Variables Into Flash

May 12, 2010

We have a web page which loads a Flash flipbook. This flipbook grabs the content of an external XML file which lists the images to be used for each page. I need to be able to send a word or number into the flash file which is then picked up and used as the name of the XML file. This will allow us to use the same flipbook to display different content depending on different the variable we pass in, without having to have multiple versions of the flash.So, having tried all the different places to add the querystring which I understand you use to pass the variable, I currently have this in the web page (note, "zone" is my variable and I'm trying to set it as 1 here).[code]

In case it helps to see the actual files I've tried to strip them down as much as possible, and put them at URL...Ignore what's going on in the linked flash files.You can see a working one where the XML file name is hard-coded at URL... and a failing one with an attempted passing of the XML filename at URL...The actionscript I'm editing to try get this to work appears under actions: Frame 1 inside 'Premium Page Flip'. Around line 153 in the original is a line saying this.extXML.load("1.xml"). I'm just trying to bring the "1" part in through the querystring.[code]

View 8 Replies

ActionScript 3.0 :: Passing Variables From Flash To ASP.NET?

Mar 23, 2011

I am currently trying to pass a single number variable (a score) back to ASP.NET. I have written something that I believe is able to pass the score back but I don't know how to get the value using ASP.NET. Every tutorial I have found has either been using a different version of AS or not in ASP.NET.

AS3 Code
ActionScript Code:
var score:Number = 5;

[code].....

View 9 Replies

ActionScript 2.0 :: Passing Variables From Flash To PHP?

Dec 12, 2004

How do you pass variables from flash to php?What I wanna do is, get the username and password entered in this form made in flash, when the submit button is hit, it will open and send these variables to login_processor.php. If the info is put in correctly, it will take them to a different page.The login_processor.pgp works for html form, but not for flash. In flash I have two input texts, and I gave them each their own var names.This code I assigned to my submit and reset button:

submit_btn.onRelease=function () {
getURL("login_processor", "_self", "POST");
}
reset_btn.onRelease=function () {

[code]...

this script is not working, even though you put in the right info, it will take you to login_processor.php and that's it, you're not even logged in.

View 1 Replies

ActionScript 2.0 :: Passing Php Variables To Flash?

Jan 4, 2007

I'm trying to send variables to flash from php and I can but the problem is that instead of showing the value of the variable, its name is shown instead.

This is the php code that sends to flash:

echo "&response=".$response;
echo "&username=".$username;

and this is the actionscrip which should receive it:

status1.text = data.response+" "+data.username;

(the loadvars variable i used to send and received the vars is called data).

View 5 Replies

ActionScript 2.0 :: Passing Php Variables Into Flash

Feb 22, 2009

is there any way i can get a variable from a url passed into flash? if a url contains '?go=contact' is there anyway of gettin the value of go passed into a swf?

View 3 Replies

ActionScript 3.0 :: Passing Variables From Php To Flash?

May 25, 2010

Just want to ask if it is possible to load the declared variable inside of php to flash?like i want to load $var_name into flash.

View 8 Replies

ActionScript 2.0 :: Passing Movies OnRelease?

Jun 16, 2004

m using the following code for my main four buttons -

Code:
button_array = ["home","plans","terms","contact"];
for (var i in button_array){

[code].....

View 4 Replies

ActionScript 2.0 :: Passing Data Between .swf Movies?

Dec 1, 2006

A map of the US comes up and users will select where they work, before getting to the next page, which is a form where they fill out the rest of their contact information. The Submit button sends the form variables to a php file on a different server which then stores their info in a database and will take the "location" variable from the map (in the previous .swf) to send the user the correct demo map.

My vars from the form post to the PHP and a confirmation e-mail is sent to the user etc. etc. this works fine...i'm just confused as to how to send the location variable that was pre-selected to send along with the form.

View 3 Replies

ActionScript 2.0 :: Passing Arrays Between Movies

Jul 16, 2002

I have a SWF movie ("bits.swf") with an array ("things") variable in it. I use loadMovie to load bits.swf into my main movie. Q: how can I read/use/transfer the values in array "things" from my main movie?

View 4 Replies

ActionScript 2.0 :: Passing Variables Withing Flash?

Jan 11, 2009

I have a setup where I am loading 3 XML nodes from a database. It lists 2 of the 3 onscreen - an item and an item price. I am trying to have it work so that when an item is clicked that the item_id (loaded in the xml, but not displayed on screen) jumps to a frame with a dynamic text box and have it list ONLY the item clicked. So far, I made it jump to the frame with the text box and it lists the entire list, not just the item.I really want it so that you click an item then it stores the item_id in the background (then a mc plays saying "item added to cart"). I want the ability to store more than one item_id from different categories and when a user presses the 'view cart' button, that the text box loads those items.

I think I am close, but I got to thinking if it would be better to have some way of doing a php session or something similar to store the item_id and then when the 'view_cart' button is pressed, the text box lists the item_id and the item_name and item_price for each item in the session. I wasn't sure if Flash can talk to php like that. Can it?Is this the right way to approach what I am trying to do? I'd like to use one 'holder text box' if possible.

View 1 Replies

ActionScript 3.0 :: Passing Variables From HTML To Flash?

Jun 15, 2010

I have a Flash movie (shell.swf) that loads in an external movie ("home.swf"). Within home.swf, one of two different swfs can load and I'd like to use a query string to determine which one loads.

View 7 Replies

ActionScript 2.0 :: Passing Variables From Flash To Php Script ?

Feb 16, 2012

I am using as2 to pass a variable from flash to my php and nothing is being passed! Here is the action script code that I put on my button:

Actionscript Code:[code]..........Now the amount of "5" is being inputted into a dynamic text field with the variable and instance name of amount (which, in the future, will be hidden ). This is working fine when clicking on the button. What I am trying to do, without success,is to get this value of "5" to my test.php and have it echoed and it's just not happening . This is my php script:

Actionscript Code:
<?php $form_inp= $_POST['amount'];if ($form_inp==''"){print "Nothing inputted <br>";}else{print "You have inputted: $form_inp";}?>

I'm getting "Nothing inputted" everytime.I've already tried the different routes for the amount.text such as:

Actionscript Code:
on (release){  amount.text=5;  form1= new LoadVars();  form1.amount= this.amount.text;  form1.sendAndLoad("http://mywebpage.com/test.php",amount,"POST");  }[code].......

Extra info: I have put the .swf file and the .php file on the same level in the same folder on my server just to be sure and the amount.text dynamic text field and the button are on the same level in the .swf file.

View 3 Replies

ActionScript 1/2 :: Passing Variables From Flash To Php Script?

Feb 14, 2012

I am using as2 to pass a variable from flash to my php and nothing is being passed! Here is the action script code that I put on my button:

on (release)
{
amount.text=5;
form1= new LoadVars();

[Code]....
 
Extra info:  I have put the .swf file and the .php file on the same level in the same folder on my server just to be sure and the amount.text dynamic text field and the button are on the same level in the .swf file.

View 28 Replies







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