using alpha, by actionscript. anyone??
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: using alpha, by actionscript. anyone??

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Location
    Melbourne
    Posts
    441
    Hey Guys,

    I have a slider menu MC, which moves left to right, created by actionscript.

    I need the slider to fade to alpha = 0, when it slides to the left.

    I have no idea how to make this effect happen by actionscript.

    Any help will be most satisfying.

    Cheers

    Shaun.


  2. #2
    Pillow Daddy m_andrews808's Avatar
    Join Date
    May 2001
    Location
    London England
    Posts
    924
    You can set the alpha value of any movie clip like this:

    _root.MyMC._alpha = 50;

    values between 0 and 100

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Location
    Melbourne
    Posts
    441
    m_andrews808

    big big thanks.

    works sweet.

    Cheers.

  4. #4
    Senior Member
    Join Date
    Mar 2001
    Location
    Melbourne
    Posts
    441
    hey also would it be possible to make it go from

    alpha = 100

    to

    aplha = 0

    so it slowly fades out.

    is this possible???

    Shaun.

  5. #5
    Pillow Daddy m_andrews808's Avatar
    Join Date
    May 2001
    Location
    London England
    Posts
    924
    Yeah. Put this in your clip:

    Code:
    onClipEvent(enterFrame) {
          if(_alpha > 0) {
                _alpha -= 2.5;
          }
    }
    Should do the trick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com