Copy link to clipboard
Copied
Hi,
In as2 i can take the value of the item.caption. I want to know how to achieve the same. Reason is i am assigning dynamic value to contextmenuitem.
as2
var movefront = new ContextMenuItem("Move Front", handleMenuCommand);
handleMenuCommand(obj, item):Void
{
trace(item.caption)
}
as3
how to get item.caption in as3
s it can be acheiveed by e.target.caption
Copy link to clipboard
Copied
s it can be acheiveed by e.target.caption