Results 1 to 4 of 4

Thread: [SOLVED]Menu buttons fading effect

  1. #1
    MasterBLB
    Guest

    [SOLVED]Menu buttons fading effect

    Hi

    I'd like to create a fading effect between key frames of a menu created in scaleform.I managed to do so by inserting many keyframes,set manually alpha channel in each one and then use play() function rather than gotoAndPlay("frameID") as Matt Doyle shows in his tutorials.But this works only if I follow the timeline flow,I can't "play reverse" :/
    Does anyone have an idea how to solve that?

  2. #2
    Matt Doyle
    Guest
    You can't play reverse. You'll have to create an animation going from the menu to the previous menu. And once it gets to that frame, have it jump back to the first frame of the first menu.

  3. #3
    rjmyth
    Guest
    or maybe use ._alpha to change it?? a value from 0 (invis) to 100 (vis)

  4. #4
    MasterBLB
    Guest
    Yep,it's done by changing the alpha,but the problem was elsewhere.Anyway,I found a solution-if someone would need it,that is it:
    Code:
    function OpenMainMenuScreen()
    {
    	//gotoAndPlay("mainMenu");
    	
    	fRate = 24; // define frame rate you use for this movie
    	iTime = 1000/fRate; // maintain same frame rate when playing backward
    
    	intBack=setInterval(goBackward,iTime);
    }
    
    function goBackward()
    {
    	cf=_root._currentframe;
    	if (cf>1) _root.prevFrame();
    	else clearInterval(intBack);
    }

Tags for this Thread

Posting Permissions

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