3 Replies Latest reply on Mar 2, 2007 3:27 PM by Newsgroup_User

    strange behavior

    Level 7
      I've just noticed the strangest thing. I have a slider and I want a color
      to fill in behind the slider as it's moved. So I created a 1 pixel wide
      bitmap and placed it just under the slider. Then when the slider moves it
      sends it's locH to this 1 pixel wide sprite. I set the sprite's right equal
      to the LocH of the slider. The 1 pixel wide sprite gets wider as I move the
      slider and it does what it should for about 50 pixels then it dissappears.
      I put this sprites loc in the watcher and as I move the slider the locH
      increases geometrically until it becomes negative. That's the point where
      this little 1 pixel wide sprite dissappears.

      So I went to the score, selected the sprite and in the sprite properties
      panel at the top of the score, changed the "R" value in the score window to
      76. The L value is 11 so the sprite should be stretched to 65 pixels. And
      it is. As soon as I make the R value 77, the sprite dissappears. When I
      look at the X value in the sprite tool bar it has become 33077.

      Any clues as to what's going on here?

      --
      Craig Wollman
      Lingo Specialist
      Word of Mouth Productions
      212-928-9581

      www.wordofmouthpros.com


        • 1. Re: strange behavior
          Level 7
          ...and yet, in a new test movie, I create a similar graphic (1 pixel wide
          and about 30 high) and I can change the R value to whatever I want and the
          sprite widens to match the correct values.

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "forum.macromedia.com" <lingoboy@wordofmo.com> wrote in message
          news:es8b94$a4h$1@forums.macromedia.com...
          > I've just noticed the strangest thing. I have a slider and I want a color
          > to fill in behind the slider as it's moved. So I created a 1 pixel wide
          > bitmap and placed it just under the slider. Then when the slider moves it
          > sends it's locH to this 1 pixel wide sprite. I set the sprite's right
          > equal to the LocH of the slider. The 1 pixel wide sprite gets wider as I
          > move the slider and it does what it should for about 50 pixels then it
          > dissappears. I put this sprites loc in the watcher and as I move the
          > slider the locH increases geometrically until it becomes negative. That's
          > the point where this little 1 pixel wide sprite dissappears.
          >
          > So I went to the score, selected the sprite and in the sprite properties
          > panel at the top of the score, changed the "R" value in the score window
          > to 76. The L value is 11 so the sprite should be stretched to 65 pixels.
          > And it is. As soon as I make the R value 77, the sprite dissappears.
          > When I look at the X value in the sprite tool bar it has become 33077.
          >
          > Any clues as to what's going on here?
          >
          > --
          > Craig Wollman
          > Lingo Specialist
          > Word of Mouth Productions
          > 212-928-9581
          >
          > www.wordofmouthpros.com
          >


          • 2. Re: strange behavior
            Level 7
            It seems that the issue has to do with the regPoint of the member. The
            farther away from the bitmap the regPoint is the more geometrically the x
            value of the sprite grows as, in my case, the R value grows.

            I'm sure there is an explanation for this but I've solved it by centering
            the regpoint and moving the sprite back into position.

            --
            Craig Wollman
            Lingo Specialist
            Word of Mouth Productions
            212-928-9581

            www.wordofmouthpros.com
            "forum.macromedia.com" <lingoboy@wordofmo.com> wrote in message
            news:es8b94$a4h$1@forums.macromedia.com...
            > I've just noticed the strangest thing. I have a slider and I want a color
            > to fill in behind the slider as it's moved. So I created a 1 pixel wide
            > bitmap and placed it just under the slider. Then when the slider moves it
            > sends it's locH to this 1 pixel wide sprite. I set the sprite's right
            > equal to the LocH of the slider. The 1 pixel wide sprite gets wider as I
            > move the slider and it does what it should for about 50 pixels then it
            > dissappears. I put this sprites loc in the watcher and as I move the
            > slider the locH increases geometrically until it becomes negative. That's
            > the point where this little 1 pixel wide sprite dissappears.
            >
            > So I went to the score, selected the sprite and in the sprite properties
            > panel at the top of the score, changed the "R" value in the score window
            > to 76. The L value is 11 so the sprite should be stretched to 65 pixels.
            > And it is. As soon as I make the R value 77, the sprite dissappears.
            > When I look at the X value in the sprite tool bar it has become 33077.
            >
            > Any clues as to what's going on here?
            >
            > --
            > Craig Wollman
            > Lingo Specialist
            > Word of Mouth Productions
            > 212-928-9581
            >
            > www.wordofmouthpros.com
            >


            • 3. Re: strange behavior
              Level 7
              "forum.macromedia.com" <lingoboy@wordofmo.com> posted in
              macromedia.director.lingo:

              > It seems that the issue has to do with the regPoint of the member. The
              > farther away from the bitmap the regPoint is the more geometrically the x
              > value of the sprite grows as, in my case, the R value grows.
              >
              > I'm sure there is an explanation for this but I've solved it by centering
              > the regpoint and moving the sprite back into position.

              How strange. I could swear I do (or used to do) a very similar thing - no
              slider, but a vertically stretching bitmap sprite with the member's regPoint
              set at the bottom.

              I could easily be mis-remembering, but I seem to recall that when I upgraded
              to Dir 6 or 7, I had to set 'the stretch of sprite' property to true to get
              it working. The auto-puppet feature didn't seem to work with stretching
              bitmaps. I may have had to actually set puppetSprite to true as well.

              Dunno if it applies in your situation - or any situation with today's
              versions of Director, but tossing it out there anyway.


              --
              Mark A. Boyd
              Keep-On-Learnin' :)