Solved

Creating a DB feed fruit machine

Posted on 2004-04-05
4
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 how to record live broadcast.

688 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