A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tint fade instead of alpha

  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    51

    Tint fade instead of alpha

    Hello,

    I want to be able to fade to a colour, rather than alpha as I'm loading movies into a holder, when the alpha fade function is used it shows the surface beneath the holder and I don't want this to happen, so I tried to use a setRgb but it didn't work, does anyone know how to fade to a colour not to opacity.

    Here is my code:

    stop();

    timer = setInterval(this, "fadeOut", 1500);
    function fadeOut(){
    this.onEnterFrame = function(){
    if(bookmov._alpha >= 1){
    bookmov._alpha -= 5;

    }else{
    delete onEnterFrame;
    clearInterval(timer);

    gotoAndPlay(_root.mc_holder.loadMovie("swf/bookshelf.swf"));
    }
    }
    }

  2. #2
    Member
    Join Date
    Apr 2009
    Posts
    51
    Sorry just noticed that the script doesnt move on to the next movie after the fade function, but if its taken off it does.
    Have tried other solutions without success.

    timer = setInterval(this, "fadeOut", 1500); //where 6000 is 6 seconds
    function fadeOut(){
    this.onEnterFrame = function(){
    bookmov._alpha >= 1;
    bookmov._alpha -= 5;

    delay = setInterval(bookmov, "hold", 4000);
    function hold(){

    clearInterval(timer);
    clearInterval(bookmov);
    gotoAndPlay(
    _root.mc_holder.loadMovie("swf/bookshelf.swf"));

    }
    }
    }

  3. #3
    Member
    Join Date
    Apr 2009
    Posts
    51
    Guess it's too simple a solution for anyone to hand out.
    I'll keep digging.

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