1 Reply Latest reply on Dec 14, 2007 11:13 AM by Newsgroup_User

    Resizing a movie in a window and it's sprites

    ArmanIc
      I'm working on a kind-of slide show project. The 'show' runs in a resizable window. The projector (created with Director v10) has a lot of sprites (>60). Most of them should not be resized and should stay at a fixed position (e.g. at the right margin), other sprites should be resized (e.g. the 'slide'). It is more or less as the Director authoring environment window where windows are docked.

      My question is if someone has a concept on how to deal with this. I appreciate any help.
        • 1. Re: Resizing a movie in a window and it's sprites
          Level 7

          "ArmanIc" <webforumsuser@macromedia.com> wrote in message
          news:fjuiml$mj1$1@forums.macromedia.com...
          > I'm working on a kind-of slide show project. The 'show' runs in a
          > resizable
          > window. The projector (created with Director v10) has a lot of
          > sprites (>60).
          > Most of them should not be resized and should stay at a fixed
          > position (e.g. at
          > the right margin), other sprites should be resized (e.g. the
          > 'slide'). It is
          > more or less as the Director authoring environment window where
          > windows are
          > docked.
          >
          > My question is if someone has a concept on how to deal with this. I
          > appreciate
          > any help.

          Hi,
          I have a set of behaviours for that.
          They make a sprite keep its distance to the edge of the stage, and you
          can choose which edge (Left, Right, Top, Bottom). And then there is
          one other that sets a sprites position relative to the centre.

          I wrote them years ago for Dir 8, and are still in Lingo not
          Javascript.

          I could post them here, but they are not difficult to write, and
          besides, what is the fun? ;)

          Basically it goes like this:
          - store the starting position of the sprite or the offset to its
          reference (left edge, right edge...etc) on startmovie or beginSprite
          - detect the resizing of the window and send all sprites a message
          (sendAllSprites()).
          - in the sprites' handler, calculate the new position of the sprite
          and put it there.

          If you want to have them anyway, send me an email info looping nl.

          Good luck,
          Richard.