ActionScript 2.0 :: Fantasy Soccer Script Problem
May 16, 2008
I run a soccer fantasy league in which managers choose their team from a flash pitch linked to a list of players in a mysql database. They drag players from the list onto 11 places on the pitch and submit their team to the database. The players are listed in database columns which include their id number, their club (eg MUN for Man United, CHE for Chelsea) and their name.
There are three actionscripts attached to the three frames on the swf, one for loading the players from the database, another for moving them about and a third, I think, for submitting. The action script is 2.0.
I want the flash script to only allow managers to drag and drop a limit of two players from each club onto the pitch and into their team. If they try to drag a third player from the same club onto the pitch I want and error window to pop up stopping them from doing it.
I know a bit about flash design but little about actionscript. Would this be easy to do in the flash script?
Hope someone out there can give me a steer.
cheers
Mickey
View 5 Replies
Nov 20, 2009
On Linux (Debian Lenny) the installation instructions for the *installer*.tar.gz download file say:Unpack file.Navigate into directory or folder created.Run install program.But no directory created; no install program - what the hell is going on??What you get is a single *.so file. What do you do with it?I got it to work in the past, but perhaps by a different method.
View 1 Replies
Apr 20, 2007
im creating an RPG game, and im trying to mimic the combat log used in Final Fantasy XI and XII. (go to http://herenbdy.iblogger.org/game.swf , press the attack and magic buttons and youll see what i mean)
My Combat log is a movieclip with a dynamic text field. Currently my code for the attack and magic and help buttons is this:
[Code]...
My buttons are movie clips with Dynamic text fields for their names. If you press the attack / Genesen / Help buttons, youll see that the lines of text in the combat log are put in right after each other, i used a || before each message to make it eaiser to read. Id would like to know how I would go about making the combat log messages appear on different lines as apposed to the same line?
I tried to make the text field into an HTML text field and do:
Code:
combatlog.combatlogtext.text = combatlog.combatlogtext.text+" <br> Press the H key to toggle the combat log off and on.";But that doesnt work, can anyone help? Please tell me if i phrased my situation awkwardly.
View 6 Replies
Jan 18, 2010
I don't often come onto forums, only when its really a big problem, and atm i need to create a 3d soccer ball that can rotate, but the black areas on the soccer ball i need to make click-able, kinda like having a soccer ball nav Can someone please point me in the right direction, i managed to build a transparent sphere made up of bitmap images that are click-able but i don't know how to skin the sphere with a soccer ball texture
View 0 Replies
Jul 19, 2003
I want to make a soccer score game. A game that shows classic soccers results realtime with the score at the point they where scored.
An example:
World Cup 1986 Mexico
West Germany - Argentina
The final score 2 - 3
The players who scored and the exact time:
---West germany---
Rummenigge (74 min)
Voller (82 min)
------------------
---Argentina------
Brown (23 min)
Valdano (56 min)
Burruchaga (85 min)
------------------
The total of matches with data like above is 45.
The total time of a soccergame is 90 minutes.
And further more I want a start player selection kind-of-thing like this:
USER INPUT
select game [] (ex. VM 86 mexico, VM 94 USA etc.)
select number of players: [] (ex. 4)
select number of games pr player [] (ex. 5)
Select total time of playing [] (ex. 60 minutes)
Write the name of the players
1. Load external data (the pool of matches)
2. Get user input
3. Select random matches for the players
4. Calculate the time (90min/60min etc.)
5. Tell clock countdown the time and start the countdown from 90min to 0min
6. When a scoretime is equal to clockcountdown time then display game score and the soccerplayer who scored and the name of the player who got the match.
View 2 Replies