Flash Highscore Component using Php and MySql

Probably one of the main reasons people play casual games in internet is the challenge they provides with their highscore tables.

In my case, getting my name close to the top players in a game gives me the will to make another attempt and play the game again.

Unfortunately, building an highscore table in flash is not so easy… this is due to a security problem.

The first thing we need to know is that Flash+PHP is totally insecure. What can we do? We have to encrypt data in order to make cheater’s life very hard. In order to do this, a solid knowledge about backend scripting, encryption, php and MySql is required.

This is where Flash Highscore Component (FHC from now on) by Components for Flash (CF from now on) comes to save our lives.

It help us with an easy to use highscore system that does not require any knowledge about backend scripting or encryption. Just send the players name and score to the component and it will take care of the rest.

Henrik from CF sent me the component to make this review. I have not tested it already, as I am writing the review as I am opening the zipped file.

Let’s see how does it work.

The documentation

I really liked FHC docs, provided in a detailed swf file with a smart use of colors to highlight the must reads and the extra information. It makes the package look more professional than the usual install.txt file.

According to the first page of the docs, I should be able to have an Highscore up and running in 20 minutes… we’ll see…

Installation

The flash-side installation took 3 seconds: the time to locate the installer on the package and double-click on it.

To install the web-side part, you need to have a hosting plan that provides Php and MySql. In Web 2.0 age, this is a very common thing.

I uploaded the php files included in the package and run the installation. It’s very simple: input your database data, confirm, and have the installation completed.

Flash Highscore Component

The only issue I noticed, the installer told me to delete the installHighScore.php file for security reasons.

Flash Highscore Component

In the version I have, this file does not exists, so I removed the install.php file. I think this is a typo that will be fixed once CF guys will read this review :)

And the installation is completed. Time spent: 5 minutes, 4 of them spent backupping my site, you know… safety first.

Connecting the Component to the Database

Once in Flash, you will have to drag the components to the stage. In order for this component to work, you will need the ScrollPane and UIScrollBar components to be dragged too. I think these components are included in almost every latest Flash versions

Setting up a highscore system is very easy, as you can see from this example I made in less than 5 minutes.

Simply enter your name and press the “Submit” button. A random score from 0 to 100,000 will be generated and if you are lucky enough, you will enter in the top 100 hall of fame.

There are more functions to let the player know if he entered the hall of fame or not, and I will use them in one of next tutorials I will made. This raw version took my about 2 minutes.

Browsing the MySql table, I found a column with the timestamp of the highscores. That’s very useful because you can create your own frontend showing when a score was submitted, how long it resisted, movers and shakers, and whatever thing you may imagine if you know a bit of mysql.

Final considerations

With its inexpensive cost of only $29.95, this component is a must buy. Moreover, one single license allows you to use the component for a unlimited amount of both commercial and private projects, so it’s positively a great component.

Both installation and connections are very easy to do even if you don’t know php and mysql… but if you know both languages you will enjoy this component even more.

The layout is customizable with the colors your prefer and you will be able to make your custom highscore table in much less than the 20 minutes as described on the manual.

The only thing I did not understand in those few minutes (but, hey, I am talking about minutes while doing a highscore table by myself would take days) is how to prevent the players to delete scores, since the admin interface component allows players to delete scores and without such component the table will not work.

But I am sure this question will have a reply shortly… I am amazed of this component and I am sure I will talk you about it again.

Take a look to www.componentsforflash.net and seriously consider buying this component.

Improve the blog rating this post
Tell me what do you think about this post. I'll write better and better entries.
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...

» Flash Templates provided by Template Monster are pre-made web design products developed using Flash technology.
They can be easily customized to meet the unique requirements of your project.

8 Responses to “Flash Highscore Component using Php and MySql”

  1. Nic on May 6th, 2007 6:32 pm

    But is there a free system that will allow you to do the same?

  2. mousey on May 6th, 2007 10:04 pm

    very mice as useual

  3. QuimBolas on May 7th, 2007 11:53 am

    Hey there, awesome blog. Keep up the good work.

    May I just recommend you to make some changes, in order to make your blog more appealing (for your visitors and possible advertiseres).

    Go with a 2-column layout, and do this modifications at the left sidebar:

    1.) Remove monthly archives. No one wastes time browsing through them.
    2.) Remove the “Meta” and “Stats” sub-menus. The former is useless, especially because you have a RSS button located above, and the latter has useless information.

    About the right sidebar:

    Remove “Lastest Comments”, people don’t have anything useful to say anyway.

    Make the header smaller (height-wise) and add more links to the navigation, such has Archives (displays all posts in one page) and the Contact page (make sure you use the WP-Contact form for that). Also write something on your About page.

    if you do this, your blog was look ALOT better, much more clean and people will click on your ad more often! Also, try to use 300×250 ads in the beginning of the article, since it will generate an higher CTR.

    Take care.

  4. QuimBolas on May 7th, 2007 11:54 am

    Forgot to mention something important, your main graphic header, should redirect us to the homepage. At the moment it doesn’t do anything.

  5. Emanuele Feronato on May 8th, 2007 10:14 am

    Thank you for all your suggestions, I am planning to make some changes during next days.

  6. Bertus on September 25th, 2007 3:56 pm

    Hello..

    I have a nice working flash game for my website and I want a highscore for the game.

    Do you know if the component first looks if the score is higher than score #100 and than shows the field where you can put your name and otherwise goes to an other keyframe?

    And do you allready know if score-delete function can be removed?

  7. archie on February 15th, 2008 10:03 pm

    Hi,

    I like it…looks good but I did not see a way to filter out curse words…etc…There should be an added part where…the administrator can add words to restrict…

    Sincerely,

    Archie

  8. Jay on April 29th, 2008 4:25 am

    Has anyone purchased this component recently? I have been trying to buy it all night and my order keeps getting rejected.

    Is this site (componentsforflash.net) still alive?

Leave a Reply