Well that was a brief and basic look at how you can create your own class files and some of the basics of how they work. Now that you have the basics, you can play around with them and see what uses you can come up with for them. As this was a basic introduction, the following is a list of OOP/ActionScript principles that you may want to get more familiar with to get the most out of creating your own classes.
- Inheritance - reusing existing classes in new ones.
- Encapsulation - keeping things hidden, but usable.
- Data Typing - who can be what.
- Class vs. Instance Methods
- Public, Private, Protected access modifiers.
|» Level Intermediate|
Rating: 8.57 Votes: 30
|Kortex (aka Jeremy Wischusen) is a Flash/PHP developer for myyearbook.com and the lead software architect for the DigitallyU Digital Portfolio Software Suite.|
|Download the files used in this tutorial.|
|Download (46 kb)|
|More help? Search our boards for quick answers!|