Classes in AS 2
Classes in AS 2
Out of context: Reply #2
- Started
- Last post
- 3 Responses
- caseyc0
You can make pretty much anything available to an AS2 class you just need to reference it first so it will play nicely with the compiler (since that is the only place where AS2 applies). So if you have an mc with a class attached to it and you want to use an mc inside of it you just need to declare it in the class file like
class MyClass extends MovieClip
{
var some_mc:MovieClip;
function MyClass()
{
some_mc._alpha = 50;
}
}