Create A Lucky Draw App Using Flash

Use this Lucky Draw app for events to randomly draw winners. The program can be further customised as required.
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
333 students enrolled
$19
$20
5% off
Take This Course
  • Lectures 11
  • Length 34 mins
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 5/2014 English

Course Description

In this course, I will explain how a Lucky Draw program was created using Flash. This program can be used in events to conduct lucky draws and display the names of the winners on the screen. I have used this program successfully in my organisation on two occasions and have received feedback that this was a useful and nifty program for conducting Lucky Draws instead or picking pieces of paper from a bowl which is the usual practice.

Some features of the program are:

  • Reading in a name list from a text file
  • Drum roll sound effects
  • Clicking a button to draw each prize
  • Random selection of winners
  • Random names displayed on screen for eye candy

This program is easily customisable to suit your requirements. You will to know some basic ActionScript and have the Adobe Flash software to be able to modify this program.

What are the requirements?

  • Adobe Flash software
  • Basic Actionscript knowledge

What am I going to get from this course?

  • to understand how to write a program in Flash to do a Lucky Draw
  • to be able to customise the Lucky Draw app

What is the target audience?

  • those who need a Lucky Draw program
  • those interested in ActionScript programming

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
02:11

This lecture introduces the course. You can use the ready made Lucky Draw program built using Flash or customise it to suit your requirements.

Section 2: Lucky Draw app in Flash
Article

Download the resources required for this course.

02:53

The background image of the Flash Lucky Draw was created using Photoshop. It was placed on a layer in Flash entitled "bg". You can customise this image as you wish.

03:00

We create dynamic text boxes to display the names of the winners of the Lucky Draw. Make sure that you give an instance name to each of these text boxes.

Similarly, three buttons are created on the Stage with instance names given to each of them.

Also, note that the name list for this Lucky Draw program is extracted from an external text file.

04:35

The name list for this Lucky Draw program is extracted from an external text file and stored in an Array in Flash.

The array is then randomised and stored into another array entitled randomarray.

03:17

Sound files in the form of MP3 or WAV files can be imported into the Flash library.

Be sure that you adjust the properties of the sound files so that ActionScript will be able to access them.

02:36

Visibility of the buttons can be modified using the _visible property of each button.

Here we demonstrate how the visibility of the buttons can be controlled as required.

04:32

We look at how to random the array using ActionScript code. This is done by randomly splicing elements from one array and storing them into another array.

Refer to this website for more techniques on how to randomly shuffle an array using ActionScript.

http://code.tutsplus.com/tutorials/quick-tip-how-to-randomly-shuffle-an-array-in-as3--active-8776

04:53

We look at the concept of setting and clearing intervals in Flash. Note that the timings are in milliseconds.

04:06

We look at the various publishing formats available in Flash. The Win and Mac projector formats are especially useful in the context of this Lucky Draw program.

Section 3: Conclusion
01:32

Here, we conclude this course. Also I demonstrate a customised version of the program where 3 or 4 names can be done with each click on the button.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Christopher Tan, Church Pianist

I am a classically trained pianist who loves to play the old hymns. Hope you like my playing and explanations. I attend True Life Bible Presbyterian Church and also the Far Eastern Bible College in Singapore. I work as an IT Manager and enjoy creating media related to e-learning. I hope that you like my courses on Udemy. Thanks.

Ready to start learning?
Take This Course