AS2 Vertical Scroll

Out of context: Reply #5

  • Started
  • Last post
  • 7 Responses
  • ceiling_cat0

    Ok, i'm setting this up in the most minimilistic way I can think of with my most minimilistic understanding of AS2.

    I have the main movie say 400 x 2000 pixels tall called maindude_mc
    Then I have the scroll bar say 10 x 200 pixels tall called scroll_mc

    I have this code using the onClipEvent on a blank movie clip.

    Yes, hello 2006!

    onClipEvent(enterFrame) {
    _root.maindude_mc._y = (_root.scroll_mc._y) * (-4);
    }

    Yes, this code is so bad but simple. It's worked for me in the past without using a resize browser.

    How do I work with this? I'm thinking

    maindude_mc _y is some variable "m"
    scroll_mc _y is another variable "o"

    Then state "m" = "o" ?

View thread