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
25% 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


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


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

Who 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.


Section 1: Introduction

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

Download the resources required for this course.


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.


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.


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.


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.


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.


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.


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


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

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