Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Mar 2011
    Posts
    81

    Thumbs up [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?
    Last edited by MasterBLB; 05-31-2011 at 02:40 PM.

  2. #2

    Default

    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
    MSgt. Shooter Person
    Join Date
    Jul 2010
    Posts
    209

    Default

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

  4. #4
    MSgt. Shooter Person
    Join Date
    Mar 2011
    Posts
    81

    Default

    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);
    }


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.