A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] [F8] localToGlobal problem

Hybrid View

  1. #1
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707

    [RESOLVED] [F8] localToGlobal problem

    multiple mcs scaled to 10% in an mc (mcHolder). I need to tell flash that when i click on one of these mc's , that scaled mc will grow to 100% and center to the screen. The problem is not the scaling, but the centering...i am certain that i have to use a localToGlobal call to get this right, but i am not exactly sure how to incoroprate that...anyone up for the challenge of giving me some leads?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    I'm not sure if this is a localToGlobal problem.

    What you want to do is scale the movie clips, no matter in which timeline they are in.
    I believe you want to scale the movie clips from their center. If their registration point it's their center, it would work immediately. Can't you do this?
    If not, you can correct it with some math: each time the movie clip grows (to the right and down, for example), you reposition it (to the left and up) by half of what it has increased in size.

  3. #3
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    meant to follow up ...nunomira...thanks...infact, altering the math was the answer, but it has to happen in the onEnterFrame part of my function...that was where i was going wrong...thanks!

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