Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Code hints can save you large amounts of time when writing code and simultaneously help you learn ActionScript faster. Code hints appear when you type certain special characters in Flash. Right now, I don't want you to type the code that I'm typing; I just want you to watch my screen to see how it works. You'll learn about how to type all this code later on in the title. So I'm going to set the word 'var' and then a space and then 'gameLoader' with a capital L, and then I'm going to type what are the special characters that brings up code hinting. That's a colon. So I type that, and I get this menu.
I can navigate with my keyboard or with my mouse. There are a ton of things to choose from, but if I start to type in what I want, which is Loader with an L, I'll type that colon again, Loader, then Flash will eventually highlight that code in the Code Hinting window. Now, I can simply press Return on my keyboard and Flash will write Loader for me. Also, notice that Flash added this import line of code.
For now, don't worry about what that means; just know that Flash is helping you out by writing a lot of code for you. So I can type some more stuff, so Loader = new Loader, and I'll type a parenthesis, and then I see code hinting again. Another way to access code hinting is to type a dot. So I can type 'gameLoader.Load' and then press Enter on my keyboard, and here you will see load, and then it says request:URLRequest, Context: LoaderContext.
Now, this might you look like a bunch of garbage to you right now, but this is actually very useful information when you're learning ActionsScript. Flash is telling you what type of data to put inside of the parentheses. So as you go throughout this title, I want you to pay attention to code hinting and use it to your advantage to help you learn ActionScript more quickly, and to write code faster.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 101694 Viewers
61 Video lessons · 88445 Viewers
71 Video lessons · 72283 Viewers
56 Video lessons · 104006 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.