Hi All,
I'm in the process of creating a timeline (seek bar) for my media player on my website.
The Timeline itself is being created with Flash.
I have created two other objects to act as Markers on my timeline
BeginMark
EndMark
They are both defined as Movie Clip objects
Now, at run time I would like to be able to add as many Begin and End Markers as possible. The number could theoretically be infinite.
By default, I have placed one of each marker on my timeline by taking the objects from the Library window. I have created some ActionScript code for each object to behave a certain way.
My question is:
How can I dynamically add other "instances" of these Marker objects at runtime, and make them have unique names and still keep all of the same properties and ActionScript code and events that I've created for my initial 2 objects.
Can I just copy and paste them? What is the procedure to follow in ActionScript? Any direction would be much appreciated. Thanks
mike
I'm in the process of creating a timeline (seek bar) for my media player on my website.
The Timeline itself is being created with Flash.
I have created two other objects to act as Markers on my timeline
BeginMark
EndMark
They are both defined as Movie Clip objects
Now, at run time I would like to be able to add as many Begin and End Markers as possible. The number could theoretically be infinite.
By default, I have placed one of each marker on my timeline by taking the objects from the Library window. I have created some ActionScript code for each object to behave a certain way.
My question is:
How can I dynamically add other "instances" of these Marker objects at runtime, and make them have unique names and still keep all of the same properties and ActionScript code and events that I've created for my initial 2 objects.
Can I just copy and paste them? What is the procedure to follow in ActionScript? Any direction would be much appreciated. Thanks
mike