How can i record a name a score in a flash game and write down in a soreboard?

Hi. I wrote down the summary of my project so that you can
understand and answer me more easily:
I have to build an application (a little flash game) in which
I record the number of clicks. I want the player to choose a nick
at the beginning and when he finishes one or all the four choices
of target, i want the application to write his nick and final score
in a database for displaying in a scoreboard (hall of fame). All
the new entries should be sorted according to the score. If the
same nick appears again, it's final score will be modified in the
scoreboard only if is higher then the previous.
I was thinking of creating a variable for the name that is
chosen at the beginning and a variable for the score that is
recorded. When the player finishes the game i want the application
to write his data in the database, and then to display the
scoreboard (let's say top 10 players in the database from the
highest to the lowest score).
I never did this before so i am asking what database shoud i
use? I need a programmer to create one for me? Or can flash
generate the database?
Is the variable the good way or should I aproach the problem
by other means? And if a programmer creates a database in MySql is
that good or he should convert it to XML, or Flash generates the
XML?
Thank you.
Mark this message as the answer.

The bottom line is you cannot write to a file (database or
XML files) directly from flash.
I have done a number of projects where I needed to have
access to an XML source or a database. In these cases I had to
create server side script. I have done them in .NET, PHP ASP.
The only option you have is to use the Flash's Shared Object.
This does not store the data indefinatly and has a limited size
(100K). Let me know if you need further info.
With regards to using a variables depends on how you are
writing your game. If you are creating classes in ActionScript then
all the data can be stored within the class members. For example
you could have a Player Class and store all the player related
information in that class until the game is over. On the other hand
you can just use varibles to keep things simple.

Similar Messages

  • How can I prevent my iPod nano from turning on by itself and running down the battery?

    I will arrive at my desk in the morning, stop the podcast I'm listening to, notice by the "play" button appearing on the screen and that absence of audio in my ears that the podcast has actually stopped, hold the big oval button down until the screen goes dark, and set my iPod down on the desk. Every now and again (maybe twice a week) I'll catch the iPod playing. It's usually off playing music (i.e. it's somehow navigated away from the podcast I've been listenting to and ended up in a music shuffle somewhere), and it will continue playing until the battery runs down or until I happen to notice it and turn it off. Doesn't only happen at work, happens anywhere...home, car. Result is that once or twice a week I go to use the iPod and the battery has completely run down.
    How can I prevent my iPod nano from turning on by itself?

    Unplug the headphones.

  • When on the internet, how can I zoom out with out cuting off part of games and stuff?

    When I go to Mozilla Firefox, I can't see everything on the screen because it is zoomed in to much. When I go to view and zoom out, it zooms out but when I go to armorgames, part of the games I play are cut off so I can't see everything on the game. Plus, it just zooms back in when I leave Firefox and get back on. It wasn't always like that though. I want to know if I can set the default view to normal so I can see everything on the screen without having to scroll left and right, or having part of games cut off.

    Hi lilmikrymike15, <br>
    If you use View > Zoom > Reset, does the zoom level reset to the expected size?
    To set your default zoom level you usually need an add-on. Have you tried installing one named Default FullZoom Level or another named NoSquint? <br>
    Tools > Add-ons > Extensions category
    <br>
    You can also try disabling Firefox's use of hardware accelerated graphics. In order for this to take effect you usually need to restart Firefox. <br>
    Go to Firefox > Preferences > Advanced > General and uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, is the clarity improved?
    <br>
    Hope i have helped!

  • How can you record the screen of any device with no computer and no jailbreak?

    I would like to record the screen to record my gameplay and other stuff. Please help.

    Josh, this was my first gripe when I moved to IronPort toward the end of 2008; I forget the version of Asyncos we were on then. Remember that the design philosophy (as I'm given to understand it) is that you shouldn't have to nursemaid it as much as some other gateways, though achieving that is more a question of developing robust mail policies than simply plugging in the device and running the setup wizard.
    I found the Asyncos GUI a bit of a pain to work with for header analysis, but I've adapted over time. It's only an annoyance now when you need to see an attachment file name that scrolls across three or four screen widths, and by comparison SharePoint gives me more grief in that department (we're on a paleolithic version here).
    For some things we send a copy of quarantined items out to a dedicated mailbox only accessible by staff monitoring our gateways; for more details see my posting in your thread "Can't View Video Files Attached To Emails".

  • How can I choose another name for Game Center? (not a nick)

    How can I choose another name for Game Center ? (not a nick)

    Hi XxCarrisxX,
    I apologize, I'm a bit unclear on exactly what you are asking. If you are talking about changing to or using a different Apple ID in Game Center, you may find the following article helpful:
    Sign in to your Game Center account using your Apple ID. If you don't have an Apple ID or another Apple account, tap or click Create New Account to create an account to use with Game Center.
    You can change the account you are signed into by:
    iOS: Tap Settings > Game Center.
    OS X: Click the Me tab in the Game Center app and click on your Account.
    Apple Support: Using Game Center
    http://support.apple.com/kb/ht4314
    However, make sure you are aware of the following:
    Note: Please note each Apple ID has its own associated scores, achievements, and friends.
    Apple IDs are also tied to your other Apple services, and therefore should not be created lightly.
    Regards,
    - Brenden

  • How can we give two name for a single material ??

    Hi friends
    how can we give two name for a single material ??
    e.g.. if single material is sold to different customer by different names
    then how can we do that ??

    Yes
    you can achieve it thro CMIR in T code VD51
    Go to T code VD51 choose that customer and material combination and click on to its details blue lens on application tool bar
    In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
    Now create a sales order and see
    Your requirement will be fulfilled
    If a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
    If a material is pen description is ball pen in material master and for customer B  you have defined it as Pen 1 and description as  VerySuper ball pen in VD51
    Now in sales order the description will appear as Super ball pen for Customer A
    Now in sales order the description will appear as Very Super ball pen for Customer B
    Hence the material pen whose description is ball pen in MMR will appear as super ball pen for customer A and very super ball pen for customer B
    Hope you have checked the field info record in VOV8
    I have tried this tested this and getting it
    Regards
    Raja
    Edited by: ramanathan raja on Dec 8, 2008 5:54 PM

  • How Can I record the user's logging time?

    How Can I record the user's login time?I create a table containing some column such as record_id,username,start_time,end_time,period.How can I create a process on logging in to record the start_time and a process on logging out to record the end_time?
    Thanks for any help.

    you can refer to the name of the currently logged in user using :APP_USER. to capture the login info, i'd add an htmldb process to my app that fired "After Authentication" and simply inserted :APP_USER and sysdate into my logging table. for the logout case, you could change the "Logout URL" of your current authentication scheme to one that does whatever it's currently doing plus the logging. so i Logout URL of...
    wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=&APP_ID.:101:&APP_SESSION.
    ...and i changed it to something like...
    my_schema_name.my_logout?p_user=&APP_USER.&p_app=&APP_ID.&p_session=&APP_SESSION.
    ...where my_logout was...
    create or replace procedure my_logout(
    p_user in varchar2,
    p_app in varchar2,
    p_session in varchar2) as
    begin
    insert into my_logging_table values (sysdate, 'logged out as '||p_user);
    wwv_flow_custom_auth_std.logout (
    p_this_flow => p_app ,
    p_next_flow_page_sess => p_app||':101');
    end;
    ...and things worked fine.
    hope this helps,
    raj

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • How can I record an audio sound and convert it to a ringtone?

    How can I record an audio sound and convert it to a ringtone?

    Record your voice using iPhone (for ringtone only 35 secs or under are valid), sync iPhone with iTunes.
    In iTunes the recorded voice is listed under Music as some_numbers.m4a.
    Right click on the item and choose Create AAC version.
    Drag the converted voice onto the desktop.
    Delete the voice copy in iTunes. (important step)
    On desktop, rename the some_number.m4a to something_more_intelligent.m4r
    Drag it back to iTunes and you will find it under Tones.
    Now select it (for sync) and connect your iPhone, do a sync.
    If everything works out, it will be in Settings > Sounds > Ringtone.
    Now choose a contact you want to assign this ringtone, tap Edit and add the ringtone.
    Hope this helps.

  • How can I record an audio file directly from a digital recording device directly to the iMac?

    How can I record audio directly to my iMac from a digital recoding device?

    What digital recording device?

  • I had to restore my iPhone 4s and now my recent calls show only phone numbers instead of the contact's name.  How can I restore the names to my recent calls list?

    I had to restore my iPhone 4s and now my recent calls show only phone numbers instead of the contact's name.  How can I restore the names to my recent calls list?

    Are the contact details in your contacts app, the phone app uses the contact app to put names against telephone numbers.

  • How can I set a name for a unknown place without moving it?

    I imported some photos with GPS information into iPhoto. I can see these photos on the map with one pin per photo, but every pin is tagged with "unknown place". All the photographs were taken on the same island, so I want to add the name of this Island to all pins.
    When I enter the name of the place, iPhoto doesn't know it (it seems like the built-in database is very small), so I have to go to the Google view. There I find the Island and can create a new place, but when I confirm it all photos will move to one pin which was defined in google - the original location is lost (and there is no undo function!!!).
    Questions:
    1. How can I assign a name to a pin without moving the pin?
    2. How can I restore the original place stored in the exif-information of the file?
    Thanks a lot,
    Jürgen

    Thanks for your answer, after playing around another while I understand that using GPS-data or Places are two things which cannot be used together in a reasonable way.
    Either I use the GPS pins, then they are at the right place, but then I just have the pins on the map without any names or grouping information.
    Or I create places - I can create one place per photo, but then I would have to manage around 10.000 places in a simple list view. So if I go on a city trip and take 100 photographs with GPS, then I either have to create 100 places, just to see the name of the city above the pin, or i have to group them to one single pin in the middle of the city. I think both doesn't make sense.
    Let's hope there are some improvements in upcoming versions.
    BTW: To go back to the original GPS-location is very easy. Just remove the assigned place by clicking on the 'x', then the GPS-location is used again immediately.
    Jürgen

  • How can I hide file names in a photostream?

    How can I hide file names in a shared photo stream on icloud.  I don't want people to see how many pictures I take at an event.  Can this be done to pictures already posted?

    The Shared Photo Stream uses the filename of the original image file as the title that is shown in the stream.  If you want to hide the original filename, export the image to a folder in the Finder, rename it, then reimport it to share it.  You can rename the files directly when exporting.
    Or, if you do not mind to change the names of the originals in Aperture use the command "Metadata > Batch change" and change the title of the image, with the option "Apply to Original file" enabled and "Add metadata from" set to "None".
    To rename the photos already shared, delete them from the Shared Album and share them again.

  • How can I change the name of a Materialized View?

    How can I change the name of a Materialized View?

    Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • How can I record an Audio Instrument (saxophone) and listen to a reference track at the same time?

    How can I record an Audio Instrument, and listen to a reference track at the same time?

    Are you using an external audio controller or the line-in and headphone jacks on the side of your computer? You shouldn't have an issue using headphones when you're recording through the line-in but you may want to make sure you have monitoring on and it's going to the right place.
    If you're using an external audio controller, try making an aggregate device combining the controller and the "built-in output" into the same device. Go to Applications/Utilities/Audio MIDI Setup, click the "+" sign at the bottom left to make a new device and check the "use" boxes to the left of the physical devices you want to use as part of that aggregate device. That is how I use the computer's speakers or headphones to monitor my input as opposed to only being able to use the output on my audio controller.
    Now that I see some of the questions on the side of this page I realize that the 13" MBPs seem to have only one combined input/output jack... That is an incredibly stupid feature. What on Earth could possibly justify that design decision? I suppose if that's the problem you're having you'll have to buy some sort of splitter (if they even make them) or get an external audio controller like an Apogee Duet or something along those lines. I would be furious if they combined those two jacks on all of the MBPs.

Maybe you are looking for

  • How to download data displayed in a BSP page into Excel sheet

    Hi, I'm displaying an internal table data into tableview of a BSP page. I want to provide a feature to download the tableview contents to Excel sheet from Internet Explorer.  How do I do it?  Can someone guide me. Kedhar.

  • Unknown Error message keeps popping up in random places

    Hi, I'm having some trouble. I've been getting this weird error every once in a while when I try to do seeminly random things. System extension cannot be used The system extension "/System/Library/Extensions/x3nke.kext" was installed improperly and c

  • Installing Solaris 8 as a second OS

    I have Solaris 8 and want to install it on my pc I am already running windows 98se, I believe you have to partition the hard drive to run the 2 os. If any one could tell me how to partition my hard dirve and any tips for installation from there that

  • Macbook pro and photosmart 7960 connection greyed out.

    Macbook pro 10.7.5 Lion. trying to connect a HP photosmart 7960. via USB, the printer used to work on my macbook pro ,  every box is now greyed out , Add, print & scan. I hagve tried everything to no avail. When connected to my sons macbook it regste

  • Previous Adobe Professional 8,0

    Hej! Jag ser att man kan uppgradera till Adobe Professional. 2007 köpte jag Adobe Professional 8,0, svensk version (beställningsnummer AD000220940SE). Jag skulle gärna vilja kunna använda den i även här i molnversionen, kan inte heller installera den