Solved

Creating a DB feed fruit machine

Posted on 2004-04-05
4
190 Views
Last Modified: 2010-04-03
I want to create a flash movie that will simulate a fruit machine with 6 reels, the reels need to spin around when a button on the movie is pressed and then one by one (from left to right) the reels need to stop.

One the reels I need to have a value that will be drawn from a record set ( IE 12,000 so in this case reel one would have

REEL Value

1-----0
2-----1
3-----2
4-----0
5-----0
6-----0

I already have the SQL query for this so it is just a matter of adding it to Flash and having it populate the reels with the dynamic data

Then once all the reels have stopped I want another value to appear in the bottom part of the movie.

Many thanks

Willa
0
Comment
Question by:willa666
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Montoya
ID: 10759148
Im not sure I get your reel concept. Is this like a slot machine?

0
 
LVL 1

Author Comment

by:willa666
ID: 10759945
Thats correct it is a slot machine / fruit machine, one armed banit.

0
 
LVL 19

Accepted Solution

by:
Montoya earned 500 total points
ID: 10762565
well, you threw me off w/ the whole SQL database thing.. we've done a simulation like that, but playing around.
Here's how we did it..

We had pics of the fruits.

We created an array with the different fruits

fruits=["cherry.jpg","bar.jpg","banana.jpg"];

we chose a random number in our code...

then we set intervals of 5 seconds for the beggining spin
and then every two seconds there after we would reveal each fruit, which was a slice of the fruits array. (array.slice(randomnum));

One thing we did was simulate the spin of the reels with a little photshop and some blurred, runny images... (yeah, we kinda cheated).

I thought I had the code with me... but I dont. We can reconstruct, if necessary. However, I have a feeling you're doing something entirely different.
0
 
LVL 1

Author Comment

by:willa666
ID: 10791411
Well the concept is similer!

I want to be able to feeed in two value to the page from a a sql database. the two values are value one which will be a number between 0- 999999 and the second value which will be a number between 0-9999.

i want the first value to appear on the reels and then the second value to appear in the prise bin.

What you have done sounds lke it is a step in the right dirrection! do you still have you code? that would be a great help! :)

Have you had exposure to pulling data it to flash from DB's?

Many thanks

Willa
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now