What is the best method for a custom component
Hi there, I want to create a custom image viewer component that can be reused across a set of movies. Basically I want to create a diamond shape that randomly loads an external jpg into it from a folder using the Random() generator and then I apply a smaller diamond shape mask to it, so it looks as though my diamond shape image viewer has a border to it.
Is the best method to create a custom component? I will want to use more than one copy of the image viewer on the stage at one time... would this work, or would any code within it conflict with the other copy on the stage.
I then also need to use this image viewer on different movies, so need to export it either via the library or using the component viewer. Eventually I will reuse the image viewer about 20 times, so would rather create one lot of code than 20 lots of it.
Do you know if this is the best method, and if so how would I start to go about creating a custom component? Or if not, how would you do it?
Many thanks in advance for your help.