Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Papervision3D Essentials

You're reading from  Papervision3D Essentials

Product type Book
Published in Sep 2009
Publisher Packt
ISBN-13 9781847195722
Pages 428 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Papervision3D Essentials
Credits
About the Authors
About the Reviewers
1. Preface
1. Setting Up 2. Building Your First Application 3. Primitives 4. Materials 5. Cameras 6. Moving Things Around 7. Shading 8. External Models 9. Z-Sorting 10. Particles 11. Filters and Effects 12. 3D Vector Drawing and Text 13. Optimizing Performance

Working with the Document Class/Main Application File


The Document Class in the Flash IDE, or Main Application File in Flex Builder and Flash Builder, is a special class that contains a constructor, which will be called by the SWF file once it's loaded. You could say that the constructor inside your document class will be the entry point of your application. The document class requires that it is an extended Sprite or MovieClip, or any other class type that inherits from either of these objects.

Note

For the sake of simplicity, this book refers to the document class and not to the main application file. Although their names differ, their usage is exactly the same.

Also note that a synonym for main application file is Application Class.

Flex Builder and Flash Builder have the same workflow to get the document class up and running. However, the Flash IDE takes another approach. Let's start by explaining how it is done in the Flash IDE.

Setting up the document class for Flash

In Flash, you can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}