Showing a Win screen


show more Showing a Win screen provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training show less
please wait ...

Showing a Win screen

Once a game is finished, we will show a screen indicating the game has been won. This screen is inside of a movie clip that I called 'win.' So if you look at the Properties panel you see it's just win, all lowercase, and there's really nothing special to it. There is a button in there, but the interactivity is all going to be on the whole movie clip, and not just on that button. So I am not going to go inside the movie clip for now. So if you don't have the exercise files, you can just put anything you want inside of a movie clip.

But it should take up the full width and height of the stage. So let's go over to Map.as. In here, we will create some new properties under the dragdrops property. Create one called numOfMatches, capital O, capital M. This is going to represent how many matches the person got when they are playing the game. And so we will use that to count against the number of items inside of the dragdrops Array.

So if they have a number of matches that ...

Showing a Win screen
Video duration: 7m 3s 7h 8m Beginner Updated May 23, 2012

Viewers:

Showing a Win screen provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training

please wait ...