ActionScript 2.0 :: Passing Variable From Swf To Mysql?

Aug 12, 2009

I have a game file...i know the log in file is communicating with the database and working...I can not get the new user login to work. It is basically the same file set up with the extra query added The site is [URL]

I will post codes for both actionscript for login

Code:
stop();
// Create two LoadVars objects to send and recieve data
var sender:LoadVars = new LoadVars();

[Code].....

View 0 Replies


Similar Posts:


Professional :: Passing The Result Of A Mysql Query To The Flash Banner?

Apr 15, 2010

i wish to do something similar to what is shown on the top banner of this website [URL] like passing the result of a mysql query to the flash banner.

View 1 Replies

Php :: Passing Variables To Actionscript From MySQL To Play A Audio File?

Nov 26, 2010

How can you bring in a path as a variable from php? I have hundreds of mp3 file names stored in a My SQL database and I want to call the name, load it into a variable and then have it replace the URL in the call to the sound file. I am all set with the PHP and database side of things, but I have been frustrated with the Flash part. I think it would just involve passing a variable from php to flash. The web pages we are building would eventually have 10 - 15 files per page and each one would have a different sound file and a different image that you could click to trigger the sound. First click would start the file and the second would stop the sound. The images and sound files are all stored in the database.I found this code on another post and it is basically what I want to do. Still missing the button part, but if I can figure out the variable from PHP I think it will open up a bunch of new options.

var soundRequest:URLRequest = "path/to/file.mp3"; //the path would be a variable passed from the database to php and then to the actionscript
var s:Sound = new Sound(soundRequest);

[code]....

View 2 Replies

Flash :: Server Side - Passing Vars To Php And Edit A Mysql Row From The Db

Oct 5, 2005

i'm passing vars from flash to php and trying to edit a mysql row from the db. anyone know php and can spot something going awry with my code here?

[Code]...

View 11 Replies

ActionScript 2.0 :: Pass Dynamic Variable To Mysql Db?

Aug 18, 2009

I've created a quiz with following variables: name phone email score.

The first three varibles are submitted by form and sent to db(these are 3 text fields).

A end of test I need to send the score (score is a dynamic text field which kept score throughtout quiz) to mysql db.The variable for score is also called "score"

Can this be done using loadVArs? should I be using "score.text" to ref score variable?

View 1 Replies

IDE :: Flash Doesn't Read Php-mysql Variable?

Jan 6, 2010

I am trying to send a php variable with one field from mysql. When I print the php variable on my php page it outputs the field, but when I try to send it to flash it doesn't output anything.Here is my php script that tries to send a mysql field to flash and there nothing is shown. It works on my php page, it outputs the mysql field.

$product=$result['product'];
$pro=$product;
$pro = "&pro=".$pro."&"; //~ make it a flashable variable

[code].....

View 2 Replies

ActionScript 3.0 :: Send Variable From MySQL To Flash

Feb 17, 2012

I wrote a little test program to learn about mySQL integration in Flash. The program looks as: I have one button and one dynamic text field. If I hit the button, as3 starts an URLRequest to a php file which then connects to a mySQL database. The requested variable is send to as3 and displayed in the text field. Up to this point, everything is working fine. But when I hit the button again, after I updated my db, the text field still shows the old value. Although it should output the current value.

So, here's my as3 code:
mButton.addEventListener(MouseEvent.CLICK, onSQL);
function onSQL(e:MouseEvent):void {
var varSend:URLRequest = new URLRequest("[URL]");
varSend.method = URLRequestMethod.POST;
var varLoader:URLLoader = new URLLoader;
[Code] .....

I really don't know, why the program is not updating the value.

View 3 Replies

Php :: Zend Class Variable Retention For Mysql Queries

Jan 9, 2010

I have a flash application which uses a single php file to retrieve records from a database (using the Zend framework). When the application first begins, I make a call to the php to set a class variable, so that all future requests to the database will use this variable to select records based on its value. So here is how the class begins: class MyClass

[Code]...

So my question is, how can I get a PHP class variable to persist so that I can set it once, and I can access it anytime during the life of an application?

View 1 Replies

ActionScript 2.0 :: Send Score Variable To Email Or Mysql?

Dec 7, 2009

I've decide racing car game! and I want to be able to send the score to send to a mail box or send it to a table in php or database! at the moment I can send the Score Variable to be display in PHP but its not the way that I want!

Script that send the Score to php
submit.onPress = function () {
getURL ("getVars.php", "_blank", "POST");

[code]....

View 2 Replies

ActionScript 2.0 :: Swedish Font - Sending Variable To MySQL Database

May 23, 2005

I am using a form I made in flash to send variables to a MySql Database.
Code for form:
trace(email1.text+", "+question1.text+", "+check1.selected);
status1.text
send1.onPress = function () {
status1.text = "sending..";
var ld:LoadVars = new LoadVars ();
[Code] .....

View 9 Replies

ActionScript 3.0 :: MySQL, Php: Post A Variable, And Retrieve Info From Db In Flash?

Aug 2, 2009

Currently I'm setting up a webservice, which includes a login to access the member area.I'm testing all components seperately, and I've ran into a problem. When the user logs in I want flash to retrieve the user_id as a variable, so that I can use this user_id for member related database access. However, I'm having problems with retrieving the user_id.The login is done by inputting the email and password of the user. If these variables match the data in the database the user is send to the member area. I want to get the user_id by posting the email variable to a php file. In the php file the following code is responsible for this:

PHP Code:
$email = mysql_real_escape_string($_POST["email"]);

View 2 Replies

Mysql :: Migrate A Preexisting Flex/Java/Hibernate/MySQL App Onto A CD For Portable Distro?

Feb 2, 2011

I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.

To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?

View 3 Replies

Mysql :: Create An Insert Form With TextInput Containing ComboBox Provided By MySQL Database Table?

Jan 13, 2010

I have a Flex application which manage a database composed by 7 tables.I have created the insert form and all work great. Now I wanto to improve the Form performances; the idea is to replace the TextInput of the Form with ComboBoxes which are provided by the DataBase tables

View 1 Replies

Configure MySQL JDBC Driver Mysql-connector-java-5.1.12?

May 25, 2010

I have downloaded MySQL JDBC driver from [URL]... How do I configure it?

View 1 Replies

CS3 Passing A Variable Through A URL Into A SWF

Aug 22, 2009

I have a flash file that has an XML driven menuing system to select and play various FLVs. I want to be able to craft different URLs to open the swf and start playing different FLVs. (The others will be accessible from the menu once the sfw is opened, but I am looking to control what plays on opening, dependent on what link a user click.) Not really sure about the best way to get the selection into the swf.

View 4 Replies

ActionScript 2.0 :: Passing Variable To Url?

Aug 17, 2009

I have a site that uses an user id that needs to be passed from links with a flash banner. I have it working, but not the way I need it and could use a little assistance.

[Code]...

View 4 Replies

Flash :: Passing A Variable From PHP To A SWF?

Aug 26, 2011

I'm trying to pass the file name of an image upload PHP script into Flash's UILoader component. So when a user uploads their image, the file name of the file is passed to flash so that the image displays within the Flash UILoader application. Here's the PHP variable I'm trying to pass: $filename= ''; And here's where Flash's UILoader gets it's source (ActionScript 3.0): uiLoader.source = "freshly uploaded file.jpg ($filename)?";

View 1 Replies

ActionScript 2.0 :: Passing One Variable From Php To Swf?

Aug 13, 2009

i have the php file transfering the correct data but it is not registering as the variable in swfi have already tested the php file and do Know that it is working correctly
I have tested the swf file - no user works but the variable sent for balance is not setting

$select = "SELECT * FROM `auth` WHERE `username` = '$username'";
$result = mysql_query($select) or die(mysql_error());
//how many rows

[code].....

View 0 Replies

ActionScript 3.0 :: Passing Variable From One Swf To Another?

Dec 7, 2009

I am using SWFObject2 and passing in a flashvar to the movie it is loading (preloader.swf). I can retrieve the flashvar in preloader.swf no problem at all.The issue is that I am loading another swf from the preloader.swf (lets call it loaded.swf) and I want to get the variable from preloader.swf into loaded.swf - but for the life of me I just can't work out how to do it.If I try and access the variable from the preloader.swf via loaded.swf I just get compiler errors because the variable I want in preloader.swf doesn't exist in loaded.swf

View 0 Replies

ActionScript 2.0 :: Passing Variable From PHP To .swf?

Oct 19, 2011

I've got a question regarding passing a variable from PHP webpage to .swf file placed on that webpage.

Example:
Button on a webpage1.php is loading a frame.swf file.
Frame.swf is loading test.swf into itself using
ActionScript Code:
loadMovie("min est.swf", mc);

Button on second webpage2.php is again loading frame.swf file but this time I would like that frame.swf would load test2.swf into itself using ActionScript Code:

[Code]...

View 2 Replies

ActionScript 2.0 :: Passing Variable From One Fla To Another?

Nov 1, 2005

I have integrated a swf into another swf. (Actually it is a menu that I have incorporated in my 'main swf'.) When clicking a button in swf no.1 (the menu) I set:

_global.new_value="1" ;
_root.Application.newfunction();
-and then in swf no.2:

[Code].....

View 5 Replies

ActionScript 2.0 :: Passing A Variable From One Swf To Another?

Apr 5, 2006

I'm trying to pass a variable from my main swf to another one that's being loaded in a container in the main swf. What I usually do is create that variable in the main swf and have the loaded swf fetch it but in this instance I need the loaded swf to have it's own root.

Code:
container._lockroot = true;
container.loadMovie("main.swf");

[code].....

View 7 Replies

ActionScript 2.0 :: XML Variable Isn't Passing?

Sep 2, 2006

I am at a loss as to why I can't get the "linkto" variable to pass through past the firstImage() function. here is the code:

Code:
delay = 5000;
//-----------------------

[code].....

View 1 Replies

ActionScript 2.0 :: Passing Variable From MC To MC?

Oct 25, 2006

i have a "campus map MC" that is an attachedmovie clip linked from the library to a scrollpane on the main timeline. there is a "info balloon MC" in the "campus map" with a "close" button on the info balloon that hides the balloon.

the campus map has buttons over each bldg. on rollover/rollout the "info balloon MC" appears and disappears. if you click the button it 'stays' and the button is disabled so that the rollover/out stop.

button code:

Code:

on (rollOver) {
setProperty(this.bubble,_visible, 100); // info balloon MC nested in the campus map MC
setProperty(this.bubble,_x, 200);

[Code]....

View 1 Replies

ActionScript 2.0 :: Variable Not Passing?

Jun 29, 2007

I know this should be simple but I can't figure it out for the life of me.

Code:
for(i=0;i<xmlLength;i++){
mainMenu.createEmptyMovieClip(xml[i].attributes.n,mainMenu.getNextHighestDepth());

[code]....

View 3 Replies

IDE :: Passing A Variable Into An Swf Using The AddVariable?

Oct 5, 2009

i am passing a variable into an swf using the addVariable seen below

Code:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("ticker.swf", "background", "293", "107", "8", "#000000");
so.addParam("menu", "false");

[Code]...

View 1 Replies

ActionScript 3.0 :: Passing A Variable Into A Function?

Mar 19, 2009

I have 3 movieclips in the Libarary, called (both by name and class) section0, section1 and section2.This works for instance to attach a movie clip to the stage:

Code:
var myMovie:MovieClip = new section1;
addChild(myMovie);

[code].....

View 2 Replies

ActionScript 2.0 :: Passing Variable On Loadmovie?

Apr 18, 2009

I have several movies (movieA, movieB, movieC) that have a button in them that loads another movieb into the same level thus replacing them. My problem is that i need the movieB to start playing from a particular frame depending on which movie, a, b or c loaded it.

I'm trying to find a way of using variables to make it work or maybe just a simple gotoAndPlay function but with no luck. Can you send a variable via loadmovie function?

View 2 Replies

ActionScript 3.0 :: Passing A Variable To MovieClip?

Jul 30, 2009

I am trying to send a value from one of my xml nodes (<marker>) by declaring it in a function 'showData' as a variable 'XMLMarker'. If I trace this value (XMLmarker) it returns the right data found in the node <marker> (which is 'myMarker_mc'). However, I need to tell the stage that myMarker_mc is a MovieClip...please see the 'PROBLEM' stated in the code below.

Code:

stop();
var placesXML:XML =
<places>
<place name= "Yogyakarta">

[code]....

why do you want a variable to hold the value in the node <marker>, when that value is identical for each node, ie. it is always 'myMarker_mc', so why not just directly declare the variable 'xmlMark' as myMarker_mc. The reason is; the value in some of the <marker> nodes will soon be changing to 'myMarker_mc2' - a slightly different movieClip which I may need to call depending upon which place @name is chosen.This is the new output thrown up by the variable XMLmarkers

Code:
<marker>
myMarker_mc
<myText>

[code]....

View 16 Replies

ActionScript 3.0 :: Passing Value To Global Variable

Aug 11, 2009

I have a movieclip on the stage, and in that clip I have a button that is supposed to turn a global variable from true to false, but the compile tells me:
1119: Access of possibly undefined property root through a reference with static type Class.

When I use this code:
Code:
function closeMSN(event:MouseEvent):void{
this.visible = false
Stage.MSNOpen = false
}

I know how to reference the movieclip itself by this, but how do I change the value of a variable on the main stage, from inside the movie clip?

View 3 Replies







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