Flash and Actionscript 3 Tutorials. Scores, HUDs, and User Interface. So what’s the point of having a flash game if there isn’t some way to keep score?
Whether it be as simple as an incrementing number or as complex as graphics flying all over the place and icons flashing… your game (if it’s a typical game) has to track score. Ever since I’ve worked with games (particularly FPS games) we’ve called this our HUD. HUD stands for Heads Up Display and originated in combat air crafts. In our case, the HUD will keep track of our score in our game but it could be used to keep up with ammo, health, lives, awards, names…. anything. So let’s get started making a heads up display to display our scores This is the FINAL ARTICLE in the series AS3 Flash Games for Beginners.
You’ll need the source code from the last tutorial so grab it:Previous Tutorial Final Source Code Alright so make a new MovieClip and name it scoreHud. So you want some guidance on how to design the hud? Image of the Game Score HUD in Flash. So since we haven’t talked about text yet in the series. Flash Game University. Build Your Own ActionScript YouTube Player. During this tut we'll take a look at using the YouTube API to build a custom YouTube player with ActionScript 3.0.
Final Result Preview Let's take a look at the final result we will be working towards: Step 1: File Setup Here's how this is going to work: We'll create a YouTube player wrapper that will receive the video's IDWe'll create a document class to instantiate the player and set its controlsWe'll build the player's UI with the design tools in Flash IDE and reference them in the document class For this we'll need the following files: Step 2: Stage Setup Open up Main.fla and edit the stage to make it 500x440 with 30 frames per second. Step 3: Layers Setup We only need two layers for this tutorial: the player holder, which will be populated by our YouTube player and the controls layer, which will have all the buttons used to control the player. I've added a bunch of other frames just for graphical appearance, you don't really need those. Step 4: Controls Step 5: Player Holder. How to build a Flash AS3 Videoplayer - The Tech Labs. Today we explain you how to create a videoplayer with some basic features like this one.
These are: – Play/Pause – Stop – Preloading – Scrubbing – Volume handling There will be another tutorial, which will extend this player. So be sure to check it out. Requirements Adobe Flash CS3 Try / Buy Source Files Download Constants As always, we begin with setting the constants. Const BUFFER_TIME:Number = 8;