Do I need to specify a base class in the symbol properties?
If I've already specified in the symbol's package which class the symbol's class extends, do I still need to spe开发者_运维问答cify the base class in the symbol properties dialog?
You shouldn't need to, no. Flash will take the base class from the class that you specify in the properties dialog.
I prefer to specify the base class - especially if you think you might use the same class for different symbols in the library.
EG if you just define the symbol's class in the "Class" property, you will run into issues later if you try to assign a different symbol that class as well.
It makes your code more re-useable if you use the base class and then add the symbol to the stage using getDefinitionByName.
精彩评论