ActionScript 3.0 :: Send The User Balance To Mysql And Save It There?

Aug 8, 2009

What actionscript i need, to send the user balance to my Mysql and save it there. and when the user come back to the game get the same balance from the last time(override the user balance).here is part of the Flash code that in the game:

game_pr.display = function ()
{
_root.display.balance = "<P ALIGN='LEFT'><FONT FACE='04b_25' SIZE='12'

[code]......

View 0 Replies


Similar Posts:


Professional :: Send Data To MySQL?

Oct 30, 2010

There an input textfield, name.text. There is a button with the following script,
 
send.onPress = function () {          getURL ("name.php", "_blank", "POST");    }The info will be send to MySQL database, name,  when pressing the button.
  
PHP---
 
<?// Receiving the variables.$name = $_POST['name'];
// Printing out the variables.print "Your name is ". $name . ".";
?>
 
I am not able to perform the task.

View 1 Replies

Php :: Get Some Data From PHP/MySQL And Send It To Flex?

Jan 1, 2010

I'm trying to get some data from PHP/MySQL and send it to Flex..Let's say That my object in Flex would look like this:

package some.package.VO {
[RemoteClass(alias="VOPerson")]
[Bindable]
public class VOPerson {

[code]....

In my case, personDetails is an Array, and in theory, it could be some other object... But is it really necessary to make it an object? I do not intend to use that data nowhere else except within my VOPerson class. It is some associative array, and I can easily transform it to another object, but there will be lots of similar situations in my app, so I would like to avoid making unnecessary (value) objects if there is no need for it...

View 1 Replies

ActionScript 2.0 :: Save/Load Using Php And MySQL?

Oct 27, 2004

save/loading with Php and MySQL. Every user should have hes own save under hes username and password.

View 1 Replies

ActionScript 2.0 :: Save / Load Using Php And MySQL?

Oct 27, 2004

Iw allready done the register and login thingy now save/loading with Php and MySQL. Every user should have hes own save under hes username and password.

View 1 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 - Send An Array Of Flex Checkboxes To A Mysql Server?

Jul 26, 2011

I am using FB for PHP 4.5, ZendAMF, and I read that I do not need to use HTTPService for what I want to do.

Table structure:

people: {pID, pName}
departments: {deptID, deptName}
people_departments: {pID, deptName}

I have a slightly complex flex script, People.mxml. In the PersonAdd state, I have a form which will be used to send data to the mysql server. In that form , I have a repeater that will create a checkbox for every department in my database. When I click the Add button, I want to insert data into the people and people_departments tables.

[Code]...

[Edit] I am using an s:Checkbox and I do not have the data property. mx:Checkbox does but I cannot use the mx:Checkbox component in my project.

View 2 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 3.0 :: Send The Form Data To A MySQL Database?

Feb 28, 2011

What I am wanting to do is create a "registration form" and send the form data to a MySQL Database. Once the user submits the form, a password is created and emailed to the user.

Then once all has been created and stored, the user can log in and gain access to secure pages.

View 9 Replies

ActionScript 2.0 :: Save Files With "Save As Window" From A CD To User Choice?

Jan 19, 2006

I need to open a popup(html) form a Flash projector.

And I need save Files with "Save as window" from a CD to user choice...

View 1 Replies

ActionScript 2.0 :: [CS4] Flash/PHP/MySQL Multi-User Interaction?

May 22, 2009

On load - Get the current position of the movieclip object on stage which is stored in MySQL through PHP.When the user moves the movieclip object, update the x and y position of the object by sending it to MySQL through PHP.It's a pretty simple way of understanding Flash/PHP/MySQL Integration and I find it much less complex than a socket server but I don't think it's efficient enough to use with the constant queries. [URL] Does not really work very well, dont think the Y position works at all lol, when you refresh the page it is suppose to save your current object position into the database then load it again but it appears a bit buggy, not completely sure why - I'm pretty new to Load/Send but it doesnt matter much. Also the movement appears to be lagged too and opening a new window as a 'new user' does not share the same instance of the object on stage (I think that would require me to make seperate ID's for each user though to give them their own unique objects on stage.)Is there any better (more efficient and reliable) way of creating a stage for multi-user interaction (like player characters for a game which move around by user key input, not a chat room)...Which does not involve the use of a socket server?

View 1 Replies

Php :: MySQL Or XML: Saving User Votes On Server From A Flash Movie?

Nov 21, 2009

A project of mine involves a flash movie (.swf) in a webpage, where the user has to pick from a number of items, and has the option to thumbs up or thumbs down (vote on) each item.So far I have gotten this to work during each run of the application, as it is currently loading the data from an XML file - and the data is still static at the moment.I need to persist these votes on the server using a database (mySQL), such that when the page is reloaded, the votes aren't forgotten.Has anyone done this sort of thing before?The two mains methods that I have found on the 'net areeither direct communication between AS3 and the SQL using some sort of framework, orpassing the SQL query to a PHP file, which then executes the SQL query and returns the SQL to AS3.

Which of these methods is the better option?For the latter method (involving PHP), I have been able to find resources on how to acheive this when attempting to retrieve information from the database (i.e. a read operation), but not when attempting to send information to the database (i.e. a write operation, which is needed when the users vote). How is this done?Edit: Implemented solutionSomewhere in the PHP file:

if ($action == "vote")
{
$id = $_POST['id'];

[code]....

View 2 Replies

ActionScript 3.0 :: Capture SWF Screen And Save As JPG To Send By Email

Apr 7, 2009

I am trying to create a Flash movie that allows me to click a button and capture a specific moment in the movie, convert it to a JPG and send it by email.

View 7 Replies

ActionScript 3.0 :: User To Save As Swf Runtime?

Sep 14, 2009

Is it possible to make a feature that allows the user to save as swf?

lets say the user drag and drop something unto the stage.. the user got some sort of timeline to control the tween with.. the user make a second keynote. and moves the object earlier draged onto the stage, so now if user press "play", the object will move.. and now the 1million dollar question.. is it possible to save this tween/movement as a SWF? (or avi or whatever..) as long as it can be loaded again later? - using xml is not an option in this case.

View 6 Replies

ActionScript 3.0 :: Save User Location In A Course?

May 20, 2011

I am trying to save user location in a course. I am looking for the a simple way for a new Flash CS4 and Actionscript 3 user. The program will be copied to the users hard drive. I am creating a course that has 3 topics each with about 8 sections. The user can go to any of the topics in order and when they complete can do a final assessment. I am looking for a simple way to keep track if the user has finished any of the topics, then to keep track of where they are in a section, so when they return to the program they can pick up where they left off. Also, wondered if their is a next label command like the nextScene command?

View 4 Replies

ActionScript 2.0 :: Save The User Data?

Mar 21, 2012

I am trying to save user data and I keep on coming up with the same problem. The problem code is highlighted red in the ITEM.as file. The problem is that when I update the variable it updates the savefile also, when it should not! I do not have a clue what is wrong because I am putting the traces for the savefile in one right after the other so the code can't be executing elsewhere right?

SAVE.as

ActionScript Code:
class Save_mc extends MovieClip {
var nSaveAnim:Number = 0;
function onEnterFrame() {

[code]....

View 0 Replies

ActionScript 3.0 :: Send The Number Of Points A Player Is Awarding To Another Player To A MySQL?

Jul 11, 2010

I have a game that needs to send the number of points a player is awarding to another player to a MySQL database on the same server. This game is part of my psych MSc dissertation, and I've gotten a lot of help on this bit from my department techie who knows php and MySQL well. However, he has absolutely no experience with Flash or Actionscript. He's gotten the php bit working so that it does send data to the right table in the database when it's supposed to using dummy variables, but when we try to test it with the actual .swf thats supposed to be doing the sending, nothing happens. We're pretty sure this means theres something wrong with the actionscript, but we don't know where.

[Code]...

View 1 Replies

ActionScript 3.0 :: How To Save User Information And Score

Dec 15, 2009

I'm working on a project using AS3 and timeline coding. I can't figure out how to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.
 
Here are the main sections by label:
 
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions

[code]....

View 4 Replies

Flex :: Save User Login And Password?

Jul 27, 2010

What's the best way to save user credentials in flex? Local storage doesn't seem like good place for storing confidential data, because it saves information as a plain text.

View 5 Replies

ActionScript 3.0 :: Allowing A User To Save To Disk?

Jul 31, 2011

don't have any experience with it but I've designed a tool for people to use on my website.I need a way for them save a section of the flash interactive flash to their computer Hard disk.link here

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

ActionScript 3.0 :: Can't Get The Volume And Balance Sliders To Work Right

Sep 27, 2008

So i am working on a widget and I cant seem to get the volume and balance sliders to work right. Can someone take a look at my code and see if you know what going wrong. The web address of the widget is [URL] . The only slider that works is the first one for now. Till i figure out why this one wont work. and the action script is below.

View 6 Replies

ActionScript 3.0 :: Retrieve Bank Account Balance?

Jan 17, 2010

How I would go about pulling my account balance from my bank through actionscript. I assume this would be a HTTP REQUEST, but not sure. I don't want to do transactions or anything, just read the balance.

View 6 Replies

ActionScript 3.0 :: Record / Save A Button Press In Flash Send It To Moodle Via Scorm?

Feb 17, 2010

How do you record / save a button press in Flash as3 and send it to moodle via scorm? I have two buttons, 'choice1' & 'choice2', and would like the users' choice to be recorded to SCORM. I just need to send 'some text' to moodle when the user presses either button.

Have been pointed to 'cmi.interactions' but after spending the entire day trying to find a working example, I'm completely lost. There appear to be no coded examples anywhere.

View 4 Replies

Flash :: JW Player - Send User To A Certain Url When They Click On The Video?

May 14, 2011

When the user clicks on the video once its ended id like it to pop up a window with a new url in it - how can i do this in jw player?

View 1 Replies

Create Something Which Records Audio From User / Allows Them To Send It To Email

Oct 5, 2011

I know how to use AS3 to record sound from the user and enable them to save it to their computer. However, I would really like instead to allow them to either send it to an email address right after recording (without them having to save it to their computer first and find the file), OR to let them save it so that the site owner can access it (They would know that it was happening.).

View 1 Replies

ActionScript 2.0 :: Generate A Link That Will Send The User To A Page?

Aug 21, 2008

how or where i could learn about embeded links. In other word, i want to generate a link that will send the user to a page where my swf will be, therefore nobody can come and get the source of my file or even decomplile it.

View 6 Replies

ActionScript 3.0 :: How To Have Flash Draw Pad Save A Pdf From User Side

Feb 5, 2010

I have found many drawing pad solutions. Some good, some not as good. All of them, however, fail to show how to save the file as a pdf  (would be happy with bmp right about now) from the drawing pad to a server side folder via php. Can someone show how to do that using as3?

On the advanced side, I also need to figure out how to make it recognize logged in users of the preexisting CMS in order to save out to specific user folders. The CMS is Joomla 1.5 latest build, with JomSocial and JSPT multi profile. It would save out to folders created by the JMarketPro system.

View 1 Replies

Professional :: Mutliple Forms Save User Input?

Aug 23, 2011

I have a site that contains approx 20 pages of lengthy forms. The forms exist on single frames within the flash movie. This application is used as a demo only, so I do not have a need to submit the form data. The demo is used to go back and forth from form to form and fill in mock data. The problem is when the user goes from form to form the data they have entered is not saved. Is there a way I can set all frames to remember the data entered into the form without having to set every form control instance? There thousands of fields in these forms and I am trying to avoid individually naming them and scripting them to save their values.

View 5 Replies

Flash :: Save An Image To Disk Without User Interactive?

Jul 2, 2010

I see flash has a save call to do this job, but it requires user interactive.

How to save it automatically?

View 3 Replies







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