New to AS3, long time programmer. Essentially I am creating a myriad of objects, all of which will have the same functionality, although the properties will vary between each object, including the artwork. I believe they will all be movieclips as they will be interactive and I believe they will be moving.
I am wondering what the best way to create these objects are. I am assuming that I create an object class with the functionality and properties, I’m just unsure how to instantiate multiple copies with different properties, if that makes sense.
Sorry for my poor wording, I can help elaborate if necessary, and thank you for your help in advance! 🙂
Create a class.
Add properties that may vary.
Add possibilities to modify the properties. You may use constructor arguments or explicit getter/setter or you could declare your properties to be public.
Create instances of the class and set them up using different values: