The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: Fade UILoader to 25% ??

  1. #1
    14
    posts
    Registered User

    Fade UILoader to 25% ??

    Hey Guys,
    I'm trying to fade an instance of a UILoader from 100% to 25%. It jumps straight to 25% without the fade. what did I do wrong? any help would be so greatly appreciated.

    briandrumpic_mc.alpha = 1;
    this.addEventListener(Event.ENTER_FRAME, fadeOut);

    function fadeOut(event:Event):void {
    briandrumpic_mc.alpha = briandrumpic_mc.alpha -0.05;

    if (briandrumpic_mc.alpha >= .25) {
    briandrumpic_mc.alpha = .25;
    this.removeEventListener(Event.ENTER_FRAME, fadeOut);
    }

    }

  2. #2
    14
    posts
    Registered User
    Never mind. I figured it out. thanks for reading anyway.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012