ActionScript 2.0 :: High Score Class With PHP Backend?

Feb 28, 2004

I have been getting mps about how I did my high score list in my footer ever since I made it. But because I didnt know any PHP back then the high score list in my footer is all Action Script except the writing to the txt file bit. It is still every buggy and doesnt work very well. So thats why I didnt what to give it to any one because I knew I would never hear the end of all the problems people would have with it. But seen as I have got better at PHP now I made a system where the PHP does all of the work. It works better and its dynamic. I made a flash class that formats the score to an array and can communicate with the PHP file so it would be easy to used.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Make A High Score Table For A Flash Game Where EVERYONE See's The Same High Scores?

Oct 11, 2003

how can i make a high score table for a flash game where EVERYONE see's the same high scores?

eg.

Bill gets 1000 in USA
Ben gets 1002 in UK

they can see each others scores on a high score table.

View 7 Replies

ActionScript 2.0 :: Flash8 With High Score Table?

Dec 28, 2009

I need some urgent help with my high score table. My scoreboard was based of a tutorial that I found using php and flash to create a scoreboard. When I use the scoreboard in flash (using ctrl + enter) the scoreboard runs fine... It uploads the new name and score and reads the scores from the board then loads them to flash. But the problem is as soon as I try to use the created "*.SWF" file, it acts as if nothing is meant to happen... I click on the button to upload and reload the scores and nothing happens at all.

I loaded the file onto the same FTP site i'm hosting the scores and the PHP file and the scoreboard once again worked fine. Upon trying to post it anywhere else, the scoreboard won't work.

I have the local playback security setting set to "Access network only".

[Code]...

View 1 Replies

ActionScript 3.0 :: Localized High Score System

Jan 21, 2011

I have a game which I'd like to take to an exhibition for people to test on the stand, but my high score system is on the server at the office and there is no internet connection at the exhibition hall. I'm wondering what the best method of having the high scores would be.. would I need to install PHP MySQL onto my laptop and run the high scores locally, or is there another method I could adopt that won't take too long to set up... XML for example..

View 1 Replies

ActionScript 3.0 :: High Score Table - Ascending Order

Feb 9, 2010

I am creating a high scores table and is working fine except it doesn't like ascending. Can I not just change it to ascending?
ActionScript Code:
function to sort the list
currently sorts with highest time at the top
I want to have the quickest time at the top
function adding(evt:MouseEvent):void {
highScores.push([ScoreInputName.text,ScoreInputScore.text]);
[Code] .....

View 2 Replies

ActionScript 2.0 :: Submitting High Score To Remote Server?

Nov 15, 2009

I am wanting to have a high score function at the end of my game. My code is generating a URL, but is then appending it with &onLoad=%5Btype%20Function%5D which is making it fail. If I past the code manually into a browser, removing &onLoad=%5Btype%20Function%5D from the end, it works perfectly.The URL that is being created is:

[URL]

My code is:

System.security.loadPolicyFile("C:path....crossd omain.xml");
var score:Number = 1001;
var hsname:String = "FlashTest";
function addHighScore(returnFrame:String, name:String, score:Number, code:Number) {

[code]....

View 2 Replies

ActionScript 3.0 :: Flash - Make An Online High-score?

Mar 4, 2011

I have a question concerning high-scores.So I'm running an internship at a museum right now and I have made a game that currently saves high-score data through a SharedObject. However, they would rather have it stored online so people can see their scores at home after a visit to the museum, instead of having their own personal local top-10.What is the best way to do this? I was thinking of using mySQL or something of the same sort, yet I have 0 knowledge as to how that's done

View 1 Replies

Actionscript 3 :: Flash Game - High Score With Graphics Not With Text

Jan 1, 2010

is it possible to use graphics (the numbers 0-9 in one png-file) instead of a Textfield to show the high score of a game to the player? With a TextField it is easy to "refresh" the score but what can I do, if I want to use my png-files for the score? Is there a simple way to do this? How are other flash game designer do it?

My current solution (not tested, just in my head) is, to create 10 bitmaps (numbers from 0-9) or 1 bitmap with all the numbers in it and then convert the current score into a string, split this string and for every digit show the matching bitmap. Update: or should i try to use filters on the textfield to create a "more beautiful" score?

View 2 Replies

ActionScript 3.0 :: High Score Table Setup - If Statement With Variable

Feb 9, 2010

I am trying to get a high score table set up and I have it all working except for an if statement which decides whether to put a zero in the time or not.
ActionScript Code:
variable declared at the top
var gap:String;

This is getting data that is stored - it works fine except for the underlined "gap" - The "gap" is meant to be calling the variable which has the below if statement
ScoreInputScore.text=String(SpotTheDifferenceGame._minute)+gap+String(SpotTheDifferenceGame._second);
if (SpotTheDifferenceGame._second<10) {
gap=(":0");
} else {
gap=(":");
}

I thought by have the variable called in in the function and having the if statement with gap= it would do the specified text in the dynamic text box. When I put a trace on "gap" it traces with the correct text depending on what the number is but in my dynamic text box it displays as number null number.
// displays like this when trace put on it
:0
// displays like this in dynamic text box
2null02

View 1 Replies

ActionScript 2.0 :: Make A High Score Table For A Flash Game?

Oct 11, 2003

how can i make a high score table for a flash game where EVERYONE see's the same high scores?

eg.

Bill gets 1000 in USA
Ben gets 1002 in UK

they can see each others scores on a high score table.

View 7 Replies

ActionScript 2.0 :: Creating A High Score Table In Flash Using External File Handling

Feb 8, 2012

Creating a high score table in flash, using external file handling, can be achieved using server-side scripts, such as PHP. However, as this is not allowed for my game (school project), I need a way to write a few variables directly to a text file and read it back again. Is this possible? I am using AS 2.0. Any other ways in which a high score table, which is portable and can be saved and updated

View 3 Replies

ActionScript 1/2 :: High Score Table Writing A Simple Text File With Flash And PHP

Dec 23, 2010

I am having a problem getting Flash to work with PHP as I need Flash to read and write to a text file on a server to store simple name/score data for a games hi score table. I can read from the text file into Flash easily enough but also need to write to the file when a new high score is reached, so I need to use PHP to do that. I can send the data from flash to the php file via POST but so far it is not working. The PHP file is confirmed as working as I added an echo to the file which displayed a message so I  could check that the server was running PHP - the files were also uploaded to a remote server so I  could test them properly. Flash code is as follows:

//php filewriter
var myLV = new LoadVars();
function sendData() {
//sets up variable 'hsdata' to send to php
myLV.hsdata = myText;
myLV.send("hiscores.php");
}
 
I believe this sends the variable 'myText' to the php file as a variable called 'hsdata' which I want the php file to write into a text file. The mytext variable is just a long string that has all the scores and names in the hiscore. OK, XML would be better way of doing this but for speed I just want to get basic functionality working, so storing a simple text sting is adequate for now. The PHP code that reads the Flash 'hsdata' variable and writes it to the text file 'scores.txt' follows:

[Code]...

View 7 Replies

Make A Quit Feature & Maintain High Score In A Flash Built Android App?

Jan 6, 2011

I created a game in Flash and outputted it into an APK file for use in my Android phone. I would like to make a quit function so that it quits the game application when you leave.

Right now, I have to quit using task manager in my mobile. Also how do you enable it to maintain a high score in the game so that next time the user plays the game again, the high score is still there? Right now, the highscore is lost when you quit the game application.

View 1 Replies

Actionscript 3.0 :: Produce High Score Table For Online Game Using Document In Same Location?

Jul 11, 2010

I've been looking on the net for some time now (about 4 weeks on and off) and i've come across various ways of producing high score tables for both online and offline games. My query is:

Is it possible to produce a high score table for an online game using a document in the same location as the swf without using a PHP, SQL or any of the like languages? Either using a text document, xml, another swf or something else like that?

View 1 Replies

ActionScript 2.0 :: High Score List - Flash Cannot Create A Simple Text File

Aug 17, 2004

I want to create a simple high score list of 10 high scores of a game. From reading the forums I seem to get the idea that flash cannot create a simple text file. I don't have php or asp but do have cgi capability. Does anyone know where I can find a simple cgi-script that will allow me to write the text the cgi receives to a simple text file: game.sco I want to be able to write a single long string to it so that I create a string of values and can load it back in using flash loadvariables. I can create the string in flash... but how do I write it to a text file using a cgi script? the text file would include this string...I already know how to read it and split it to parse it into arrays:

[Code]...

View 1 Replies

ActionScript 2.0 :: Create A High Score Table Offline That Doesn't Need Php Just Relies On Dynamic Textboxes?

Jul 29, 2010

I am trying to create a high score table offline that doesn't need php just relies on dynamic textboxes.I am basing it on a kind of random football results generator. I have been able to get the random scores and add points to a team depending on the score but now I would like to be able to display them in a 'league' table based on their points score.

View 7 Replies

ActionScript 2.0 :: Get Score Text Box To Gotoandplay Another Frame - Scene When It Hits A Certain Score?

Aug 10, 2004

Im designing my own game in flash, iv set up a score text box and it works fine. Except i just cant seem to get it to gotoandplay another frame,scene, when it hits a certain score??

View 4 Replies

ActionScript 2.0 :: Score - Movie Go To Frame 3 If The Score = 500?

Feb 17, 2004

i am building a shooting game and i was wondering if it is possible to have the movie go to frame 3 if the score = 500.I.E Score is displayed in a dynamic text box and everytime the enemy is hit the:

_root.score +=50
=============
on the first frame of the film i have the code

if (_root.score == 500) {
gotoAndPlay(3);
}

View 2 Replies

Actionscript 3 :: Multiple Dynamic Text Score Display - Modifying Each Text One After Another And Incrementing The Score By A Certain Number

Feb 23, 2011

I have a result screen that shows bonus points and such. I want each text field to increment one after another and also have it increment by a certain amount each frame. Result Screen pops up. First is the player score check the player score, is it more than the score we want to display if the player score is greater than the player display score by 100 increase the player display score by 100 if the player score is greater than the player display score by 10 increase the player display score by 10 else increase the player display score by 1 when finished move to the next score...and so on. I have thought of using timers to move from one score to the next, but not being in an Event.ENTER_FRAME it only does one if then moves to the next one.

Also the if statement for incrementing the score looks ridiculous and I'm thinking there has to be a better way to do it. I was thinking of making it a separate function but then I wouldn't know what to return, or how to return it so it looks like its increasing and not just showing the total number instantly. I'll try to expand on it a little more.

View 1 Replies

C# :: Flex To Communicate With C# Backend?

Jul 9, 2009

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets.I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive.Anything that supports easy setup and transparent marshaling/unmarshaling is OK.Is there something as BlazeDS for .net?

View 2 Replies

Actionscript 3.0 :: Connecting With A C++ Backend?

Jan 28, 2010

I am curious to know if there is a way of connecting a flash front-end to a C++ driven backend? I'm not currently working on a project that involves this, but I found out about an application used in the gaming industry, called Scaleform, that requires knowledge on doing such things in order to create menus in games.

View 2 Replies

C# :: How To Serialize Objects In Flex For Backend

Sep 26, 2009

We are developing an app with a Flex frontend and a C# backend, connected through web services. We are using the FLex Builder 3's Web Service Manager to autogenerate the webservice classes. The problem araise when Flex serialize our objects, for example, when we have a Number property with no value, this is serialized as NaN, and our backend doesn't know about NaN. Another example is when we serialize a cyclic reference, we get a stack over flow exception. I know in java, for example, you can configure the way xstream work with cyclic reference... So, the question is, can we change the way Flex serialize the objects so C# can work with this frontend? Is there any issue we should know about how flex serialize objects?

View 4 Replies

Use Servlet As My Backend Using A Flex Application?

May 8, 2011

I have developed a Flex application. I have also developed a Java servlet program for an Access database using Tomcat. How can I use that servlet backend for my Flex application using HTTPService ?

View 1 Replies

Javascript :: Use Flash Backend For New Audio()?

Mar 9, 2012

I've made a website, to test the html5 audio. Unfortunately some browser doesn't support it. How to use a flash backend? I haven't found anything useable. The flash backend examples on the web use the DOM element, not the new Audio(). I don't want to use JQuery for this little experiment.

My code:

<!DOCTYPE html>
<html>
<head>

[Code]....

View 3 Replies

ActionScript 3.0 :: Flash - Backend Swfaddress?

Mar 11, 2011

My problem here is actually not actionscriptbased but more of a backend problem.But I just can't figure this out & neither can the webhotel. When I run a flashsite on other webhotels everything is working when it comes the seo part. (Running the site with javascript deactivated - browsing the underlying html-site that is created with php, using the same principles as the But on my client's website (another webhotel) there are problems.

For example: ults in 404 error and a message that biography.swf does not exist. I always get redirected to some imaginary swf-files thus giving me 404 errors or to swf-files that happens to have the correct file names. I've checked the .htaccess file and they look exactly the same. In fact I have uploaded the complete site to another webhotel and everything works perfect. I can browse the underlying html-site without any problems.The support at the my client's webhotel doesn't seam to understand how this solution work. They think I'm doing some seo-tweeks that they can't give any support for. But something is clearly wrong here and it seems that something is different on their servers

View 1 Replies

Data Integration :: DataGrids - Connect To A Backend DB?

Jul 24, 2006

Can anyone answer the above question? (Is it possible to use a DataGrid as a small built-in DB in a Flash application thus avoiding the need to connect to a backend DB If so, does the DataGrid store the variables added to it even if the app. is switched off?

View 1 Replies

Technology Option For Implementing RIA With Rails As Backend?

Jan 19, 2010

I'm working on a application that requires a feature-rich media view, including images, videos, and smooth sequencing based on capture time. The backend is currently written in Rails.

What's currently the best, most mature option for implementing RIAs with Rails on the backend? I've looked at Flex, Laszlo, and ExtJS. ExtJS is interesting to me because I'm really not a fan of pure Flash UIs, but it seems highly targeted towards business apps, not entertainment applications like this.

View 7 Replies

Php :: Dynamic Schedule Graphic With Backend Interface?

Feb 2, 2011

Thinking about developing a "class schedule app" that has a backend user interface that a user can add/edit/delete dates and times, savs and the data shows in a cool graph on a webpage. I was thinking of using authiticated php page to update an xml file or database that could be read by a flash app to create a dynamic graphic. Think a 800 x 500 square with the 7 days set as rows ontop of each other and the times for each day listed horizontally.The times set in xml/database would be color coded boxes with rounded corners that lay over the times for those days.**I am not looking for anyone to tell me how to do this. I was hoping to get ideas or thoughts from other developers on my options as far as languages to dev in. I have done a few searches and found a lot of javascript calendars to select dates but I am less concerned about the backend looking good.

View 1 Replies

Flash :: Wire Different Backend Solutions Into A Generic API?

Feb 25, 2011

I have to produce a generic API that provides game tracking functions (track what was clicked, track if a certain event occurred, etc). This generic API needs to wire into one of two (or more) bespoke tracking solutions provided by third parties (e.g. itracku.com and itrackutoo.com) in the background.The bespoke tracking solutions sport similar functions (trackClick, trackEvent), but vary dramatically in the number of arguments they require (e.g. one requires 1 argument to be passed, the other 6).In order for the generic API to easily switch between hitting either bespoke solution, am I right in assuming that ALL arguments need to be scoped out beforehand in order to facilitate switching tracking solutions? The desire is to NOT have to recomplie .swfs in order to switch tracking solution (i.e. it's switched via an XML config). I was thinking of achieving this by having my generic API functions accept a single object as an argument, e.g.[code]

View 1 Replies

Flex :: Connect UI To A Unix Backend Server?

Sep 23, 2011

Im working on a project with the following basic needs:

Need to invoke a Flex Webapp in a new Tab from another Webapp in Java/Jsp.This Flex UI must be connected to a unix backend to show the backend operations on the UI.The unix backend server has telnet operations and SSO

View 1 Replies







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