Skip navigation
Currently Being Moderated

Some questions on JSFL

May 23, 2011 3:36 AM

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)

this all get the global X and Y.


Any ideas? Thanks!

  • Currently Being Moderated
    Mar 15, 2012 9:55 PM   in reply to smoke_smk

    1) set your movie clip pigout point on top,left corner

    2) Set the clip left = 0 and right = 0

    3) now when you inside the "editMode" mode your X an Y vale are same as the main stage X and Y

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points