A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tween Parent in regards to child's locations

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Tween Parent in regards to child's locations

    I am working to tween a map of US States to center over and zoom on a specific state once clicked on.

    I know that I'd want the new x,y of the US States to be something in regards to the difference between its registration location and that of the child clicked upon.

    The tricky part I am finding is that the coordinate space of the children is specific to that of the container (parent).

    Can anyone suggest how to calculate how I'll get the parent x,y numbers needed for my tween?

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    you can check out localToGlobal and globalToLocal:

    http://help.adobe.com/en_US/AS3LCR/F...localToGlobal()

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    thanks... i think this is just what i am looking for

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center