![]() ![]() | |
Flash Player 7.
menuItem_cmi.copy();
A ContextMenuItem object.
Method; creates and returns a copy of the specified ContextMenuItem object. The copy includes all properties of the original object.
This example creates a new ContextMenuItem object named original_cmi with the caption text Pause and a callback handler set to the function onPause. The example then creates a copy of the ContextMenuItem object and assigns it to the variable copy_cmi.
original_cmi = new ContextMenuItem("Pause", onPause);
function onPause(obj, menu) {
_root.stop();
}
original_cmi.visible = false;
copy_cmi = orig_cmi.copy();
![]() ![]() | |