1 Reply Latest reply on Feb 8, 2008 6:50 PM by clbeech

    Slider to control alpha

    Kc1106 Level 1
      I would like to create a slider to control the alpha of a color box. I can't seem to find anything anywhere on how to do this. I would like to use ActionScript 2.0. If anyone knows how I can code my slide bar to do this, please let me know.
        • 1. Re: Slider to control alpha
          clbeech Level 3
          sure, some of it will depend on how you want to set up your slider, positions, and so on. but basically you'll want to construct it using the startDrag and stopDrag methods, track the current position of the slider's position and adjust the alpha value by a percentage based on the position. but to update the alpha during the 'slide' use an onEnterFrame event within the on handler.

          Here's an example, enjoy :) FILE