Ranking Game That Captures User / Their Ranks / Date Into A Database
Jan 28, 2009
I'm using Flash CS3, AS2, PHP, mysql database with phpbb user registration. What I'm trying to do is a make a contest game where you have 5 different ladies and the users get to rank them in order from 1 to 5. Since it is a contest, users will need to be logged in. We already have a database of users based on phpbb, and a registration page. I need them to be able to log in using that username/pass and then they can play the game.
The game consists of a drag and drop mechanism (which I have) so the user can drag "#1" to "girl-4", drag "#2" to "girl-5" etc. Once they drag and drop all the boxes into the order they want, the user then submits it. The data I need to capture in the database is the User, date/time, their rank order (seperated so we can do a query to figure out how many they got right out of the 5.) The final twist is that we are going to have 9 total 'games', one each week for 9 weeks, and we only want users to be able to play once per week.
For an example you can see a working version here. That one does a bunch of more complicated stuff that I don't want to do. The programmer that did it is no longer here and it has been hard trying to decipher his code. I have the whole drag and drop mechanism using the old code from the above example. This is a snippit of the code. drag1_mc is the number they drag (there are 5, so drag1_mc, drag2_mc etc.) and drop1_mc is the rank location. (also 5, drop1_mc, drop2_mc, etc)
[Code]...
View 6 Replies
Similar Posts:
Apr 24, 2011
I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as
[Code]...
View 2 Replies
Sep 20, 2011
[URL] I got partial success with the tutorial above, but couldn't figure out a few things.
1) How to save the date and time to the database? Based on web search result on how to find date or time in APS, I thought I could do
[Code]...
but the ASP generated errors on the 2 lines.
2) When executing the file (getURL("http://yourSite.com/processForm.asp",0,"post");
}), it always opens the processForm.asp file in a new window. Can it be executed in the same window or just being hidden?
The tutorial is old, and I wonder if there are new ways to do the things with CS4 or CS5?
View 1 Replies
Apr 13, 2009
We're on a role today so lets keep it going, please join me in congratulating 5TonsOfFlax to the Flash Kit moderator team as our newest AS3 forum moderator. Most of you already know 5TonsOfFlax and his stats so I'll keep it short. 5TonsOfFlax now joins cancerinform, senocular and the next new mod, neznein9 as the new Actionscript 3 moderator team. Everyone of these guys is proven time and again to be up to the challenge and I'm sure there's more to come.
View 3 Replies
Apr 3, 2009
im creating a card game. i have a seperate timeline for the menu bar. ive placed this code on the first cell of the timeline:
Code:
import mx.controls.Menu;
import mx.controls.MenuBar;[code].....
the problem i get is that when the user selects "new game" it should restart the game. when it does this the toolbar is not reset. instead a new menu item is added (without removing the old one. so evertime the user hits new game, a new "file" menu is added). how do i make sure there is only 1 "File" menu? and im using actionscript 2
View 1 Replies
Jul 24, 2011
Does anybody knows how to use the XML as a holder for the values that will be given by the user for example. Parent's name: _. then whatever the user's input i should move that and hold that by the xml. i just dont how. i read lot of books but i can't find any answer. This is for my senior project.URL...
View 2 Replies
Nov 12, 2010
Wondering if I can do a form where people would sign up for a date? I have MX 2004 Pro.
View 4 Replies
Jun 3, 2009
And one more, im still new to flash and im thinking which database is best to be used for flash. i got some ideas in SQL server and Microsoft Access.
View 1 Replies
Dec 21, 2009
I am looking for some advice on creating a flash sound game. The visuals are all done as is the animation. I am trying to create a piano, that you can play a tune, somehow (when pressing down a button) 'record' the sound and once you have finished, send the link to the sound you have created to a friend, where it can be played back when they visit the website and see what you did.
View 1 Replies
Jan 30, 2012
I am fairly new to actionscript 3, and coding in general, and I am trying to build a music application with a user account system, using which each different user can access their own music files.
I have found many tutorials online on how to create music players and playlists, user login systems, but nothing that combines these into one application.
View 1 Replies
Aug 3, 2007
I'm making a website for my Xbox Live clan im making it in flash and im a total N00b to anything to do with login and stuff. Can someone pretty please tell me step-by-step how to create a database that when you put your user / password in, it checks to database to check if they are a vaid user and 2) can some one tell me how to create something like an add/edit thing just for 1/2 users so i could edit stuff like about me, actually in my web broswer.
View 4 Replies
Apr 22, 2008
I am basically having a problem in submiting the users score and name to the database table. When the user reaches the final score screen they are shown two dynamic text boxes that display there total result and a input text box where the user can enter their name. I have done everything and it still don't work. I know I can receive the data but I don't get why it doesn't submit it to my table.
The input text box has a instance name of "playername"
Score total dynamic text box 1 "correct_total"
Score total dynamic text box 2 "wrong_total"
I have also attached an image of my database table [URL].
PHP files. insertValues.php
<?php
$host = "localhost";
$user = "root";
$pass = "";
$database = "activitysystem";
[Code] .....
View 3 Replies
Feb 2, 2011
IŽd like to know, how to build a ranking.
Could I build a ranking only with actionscript?
View 5 Replies
May 9, 2005
I saw this program 'asap' (i think it's called, will try and get more info about it) but it's flash that uses the Flash player settings screen to setup a way of capturing the users desktop or any application currently running.
How can this be done? I thought that the only limitation in flash is to not interact with the users machine (writing files etc) because this is a security risk.
View 1 Replies
Oct 3, 2010
How can I index mp3 files on user side and create a database of file name, artist name album name etc and upload them on a server?
View 1 Replies
Sep 16, 2011
The swf file kind of captures a certain area of a flash movie which is loaded in.. I guess it works a bit like a camera..Anyway, what I am trying to do is figure out what determines the size of JPEG produced. At the minute its pretty small.The Flash movie is used to make an avatar. When the user is finished they hit a button and it captures the design, then emails it.I have found a line of code which relates to the size of the jpeg which is emailed
var myBitmapData:BitmapData = new BitmapData(230, 200);
What I want to do is produce a much bigger image than 230, 200
I tried changing those numbers higher and it did not work,Also I want to be able to send the image to a seperate page where an API can be picked up.Here is the code
Actionscript Code: [code]......
View 4 Replies
Jun 30, 2009
I am working on ranking drag and drop. The problem appearing here is in some of the boxes am able to put 2 sources of movieclip which shouldn't happen. On one target only one source should be available at one time.If thers already any source available on the target the source which we dragged should go back to it's original position
View 12 Replies
Apr 9, 2012
My project is creating a questionnaire in Flash and then storing the user answers in an array or a database for later analysis. although i was excellent in coding when i was in college, recently i forgot many parts
View 1 Replies
Feb 12, 2010
If I have my date field/chooser set to show today (current day will be highlighted when selecting a date) can I disable the user from choosing dates that fall before the current day?
PHP Code: <mx:DateField id="choosedate" showToday="true"
This is from the adobe live docs. I'm trying to figure out if there's a way to change it to suit what I've stated above. Or maybe it's done a completely different way...
[Code]...
View 3 Replies
Oct 28, 2009
i found a couple of samples, but they seem to be fixed only to PHP.
View 1 Replies
Dec 2, 2009
Do you know any way to compare a date to a range of date using the Date class in as2.
For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).
View 5 Replies
Mar 15, 2007
I am enquring as I wish to add a 'behind the scenes' most popular ranking element to my site, thus not only by clicks but by time spent on a page. Thus ideally indicating which pages are of most interest. Does this sound reasonable?
View 1 Replies
Feb 27, 2009
I have a ranking system set up, and its functional. The movie clips "a"-"d" displays the rank. While the dynamic text box "one" is changing for future reference.
Code:
if(myStopWatch.getTime() < 70) {
A.gotoAndPlay(2);
one.text="A";
} else if(myStopWatch.getTime() < 1000) {
B.gotoAndPlay(2);
[Code] .....
However, I realized that if you got a rank of B, and you replayed the level, and your rank went down, you'd want your better rank to stay in place. So how can I keep the highest rank in the dynamic text box "one", so it doesn't change if you later get a lower rank?
View 5 Replies
May 24, 2010
If u have any tutorials, books or links related to this type of code, please forward me for this or my mail id - swamy.webdesigner at gmail.
View 1 Replies
May 24, 2010
now i am trying to make some games, I want to design a game with multi users.If u have any tutorials, books or links related to this type of code
View 1 Replies
Sep 6, 2010
I'm a student at Drexel University and I just completed a basic platformer for a actionscript class. My professor docked me some points for the game not working until the user actually clicks within the swf. I've heard that this problem is caused on mac osx, but I don't have any concrete evidence to get the points back. Here's a link to the game if you want to check it out.
[URL]
View 1 Replies
Jul 28, 2011
I created a drag and drop kind of game. Each item has the code below. How do I set the game to complete once the user has placed all the pieces where they belong?
[Code]...
View 2 Replies
Dec 29, 2009
I want to put two games in my website but they both start at the same time.How can I get them to start separately when the user clicks them?
View 1 Replies
Oct 24, 2011
Here's the battle plan:
User logs into website.
User clicks the Play button and a new window opens with the flash game in it.
If the user is logged into website, have the flash game load. Otherwise ask him for credentials.
Is this type of interconnectivity possible? Can I give a flash object (.swf) something to use?
View 1 Replies
Mar 28, 2004
im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor....i put this code on the user:
[AS]onClipEvent(enterFrame){
if(falling=true){
this._y=this._y+5}[code]....
theres is no errors but it doesnt stop when it hits the floor
View 4 Replies