|

How do I... ?

AnswerList of Questions


Duplicate Objects


To duplicate an Object in AutoPlay Media Studio:


1. Select the desired object (left click on it once).


2. Choose Edit > Duplicate from the menu. (You can also press Ctrl+D if you prefer using the keyboard.)


image

Note: This duplicates the object, including all property settings and all event scripts. All object references duplicated are absolute, not relative.


To duplicate an object using relative references, use "this" instead of the object's name in all scripts. As an example, we will create a button object that on mouseover changes it's text to "mouse", and on mouseout changes it's text to "cat":


1. Insert the following code into the On Enter event of your button:


Button.SetText(this, "Mouse");


image

image

2. Insert the following code into the On Leave event of your button:


Button.SetText(this, "Cat");


image

Note: When this object is duplicated, the new object's text will change, and leave the original's text intact.


image

|