From the course: Learning ActionScript
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Creating a class file - ActionScript Tutorial
From the course: Learning ActionScript
Creating a class file
When working in Adobe Flash Builder, we basically have two choices in how our ActionScript code is organized. We can write code as part of a Flex project or create a project using only pure ActionScript. In this lesson we'll have a look at both options. So, here we have Flash Builder, and we can see that we have opened a basic ActionScript project that's targeting Adobe Air. When you create a project in Flash Builder, it will automatically create the document class for you. So you can see here, this AS3_sample.as is our default document class. If we wanted to create a new ActionScript class, what we have to do is just right-click on AS3 sample, or the project name. And then go to New, and then we're going to choose a New ActionScript class. And from here we can choose things like the package name. So if I was going to use reverse domain syntax for this, I'd say com.Joseph Lebreck.samples. And that'll be the package name, and then the name of the class. We'll just call it, New class…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.