A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: 100% of Stage

  1. #1
    twisted eye
    Join Date
    Dec 2001
    Location
    london, england
    Posts
    134

    100% of Stage

    Hi all

    I was hoping someone can help me a with a calculation.

    I have three mc which take up a percentage of stage width. In total all the mc's cover the total full-sized screen.

    e.g 1 mc takes up 40% of the stage and the other 2 mc's take up the other 60%

    the 1 mc will get wider on certain occasions and i want the other two to size equally to allow this to hapen. So if 1 mc increases to 80% the other to will scale to 10 % each.

    any ideas are appreciated.

    j
    everything takes time, of which i have none.

  2. #2
    Bacon-wrapped closures Nialsh's Avatar
    Join Date
    Dec 2003
    Location
    Houston!
    Posts
    338
    Hi
    I'll use the clips' names as variables for the percent of screen they take up.

    100=mc1+mc2+mc3

    because mc2=mc3 all the time you can substitute out mc3

    100=mc1+mc2+mc2
    100=mc1+2*mc2

    Then you can solve for mc2 to find the equation you need

    mc2=50-.5*mc1

    And mc2=mc3 so

    mc3=50-.5*mc1

    And there are your two equations!

    Neal

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