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

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support