flash script how?

Out of context: Reply #9

  • Started
  • Last post
  • 17 Responses
  • Mick0

    There are quite a few scripts on Flashkit that do this.

    There's a centrepoint in the middle of the stage that is used as a reference point. A listener is created to determin the distance of your mouse from this point. The further your mouse, the larger the X increment the background moves. The different backgrounds move different amounts depending on their perspective (ie. the foreground most object moves about 5 pixels at a time, the middle one 1 pixel and the background on 0.2pixels or something). The doors just have a button that has an action to stop the listener or stop moving the objects.

View thread