Get clicked symbol propreties
hi there!
there way of acessing symbol properties (id on stage, timeline, nested elements,etc ), click bind placed on stage?
example:
in flash add eventlistener. function receive event type parameter, , use everything.
bt.addeventlistener(mouseevent.click, dosomething);
function dosomething (e:mouseevent)
{
//here "e" variable correspond bt clicked
e.currenttarget.visible=false;
}
how can on edge?
thx help.
joão
hi there, on button's click event, can log:
alert(e.target.id);
this give object's id, strangely prepends "stage". if button called "mybutton", return: "stage_mybutton". can work around removing "stage_" part of string, using javascript slice() method. can use resulting string target symbol normally, it's timeline, nested elements, etc.
More discussions in Edge Animate CC
adobe
Comments
Post a Comment