Create A Lucky Draw App Using Flash
4.0 (1 rating)
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.
334 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Create A Lucky Draw App Using Flash to your Wishlist.

Add to Wishlist

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.
4.0 (1 rating)
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.
334 students enrolled
Created by Christopher Tan
Last updated 3/2017
English
Current price: $10 Original price: $20 Discount: 50% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 34 mins on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • to understand how to write a program in Flash to do a Lucky Draw
  • to be able to customise the Lucky Draw app
View Curriculum
Requirements
  • Adobe Flash software
  • Basic Actionscript knowledge
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.

Who is the target audience?
  • those who need a Lucky Draw program
  • those interested in ActionScript programming
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 11 Lectures Collapse All 11 Lectures 33:52
+
Introduction
1 Lecture 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.

Preview 02:11
+
Lucky Draw app in Flash
9 Lectures 30:16

Download the resources required for this course.

Download Resources
00:24

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.

Preview 02:53

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.

Preview 03:00

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.

Preview 04:35

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.

Playing sound
03:17

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.

Button visibility
02:36

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

Drawing Logic
04:32

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

Setting and Clearing intervals
04:53

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.

Publishing Formats
04:06
+
Conclusion
1 Lecture 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.

Conclusion
01:32
About the Instructor
Christopher Tan
3.7 Average rating
48 Reviews
4,559 Students
5 Courses
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.