1 Reply Latest reply: Mar 15, 2012 9:55 PM by vikastanksale RSS

    Some questions on JSFL

    smoke_smk Community Member

      Kind time of days!
      1) If I am in a symbol as to me to look hierarchy/level of the document and to learn that I not on the main timeline and in editMode. I found only fl.getDocumentDOM().getTimeline().name.
      2) Being inside MovieClip the cursor of a mouse has global co-ordinates X and Y while all objects local. How to learn local co-ordinates of the mouse?

       

       

      function mouseDown(pt)
      {
      fl.trace(pt.y);
      fl.trace(fl.tools.penLoc.y);
      fl.trace(fl.tools.penDownLoc.y);
      }

      this all get the global X and Y.

       

      Any ideas? Thanks!