Join Joseph Labrecque for an in-depth discussion in this video Variables, part of Getting Started with ActionScript.
In this lesson, we'll look at a common object within any programming language, …the variable. Variables and constants in Action script …are very similar to those found in many other languages. …A variable is basically a little piece of data that we are able to give a name to …so that we can both assign values to that data, and retrieve values from that data. …And serve as the basic building blocks to any program.…
So here we can see I have a class file already open, and what we're going to do …is declare a variable. And to do that normally this is done …directly within the class itself. And the way we do it is we can declare …that variable to be private or public or protected depending upon our needs. …Here we'll declare private. We'll use the keyword var and that's …going to declare the variable for us. And at this point we give the variable an …identifier, or a name. Let's just call this number.…
And in Action script we have to set this to a specific data type. …And variables can be set to really any data type that you want. …
- What is ActionScript and why should I learn it?
- ActionScript 2.0 vs. ActionScript 3.0
- Implementing external source code
- Working in Flash Professional and Flash Builder
- Understanding language fundamentals
- Working with ActionScript objects
Skill Level Beginner
ActionScript 3.0: Working with XMLwith Todd Perkins2h 27m Intermediate
ActionScript 3.0 Projects: Game Developmentwith Todd Perkins5h 38m Intermediate
ActionScript 3.0 in Flex Builder 2.0 Essential Trainingwith Joey Lott12h 46m Intermediate
1. Getting Started with ActionScript 3.0
AS3 language fundamentals7m 44s
2. Working in Flash Professional
3. Working in Flash Builder
4. AS3 Language Fundamentals
5. Working with AS3 Objects
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.