纳金网

标题: Fade To (Animation Behavior) [打印本页]

作者: Asen    时间: 2011-10-15 10:43
标题: Fade To (Animation Behavior)






               Fade To (Animation Behavior)
              









           Summary
         

           Animates the opacity of the object to a set level over time.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 2.1.3 of the 'Fade To' behavior, current as of 2005-Apr-20)
           

            Description
           


             The
            
              Pulse?
            
             option causes the opacity to immediately animate back to the original level once it has reached the end value.
            
            The
            
             Revert?
            
            option causes the opacity to animate back to the original level once the ‘opposite’ event occurs. For example, if the
            
             Start Change (Forward)
            
            action is invoked as the result of an ‘onMouseDown’ event on someObject, the
            
             Start Change (Reverse)
            
            action will automatically be set to***n ‘onMouseUp’ for the same object. The following event pairs are recognized:
            
             onMouseOver  <->  onMouseOut
  onGroupedMouseOver  <->  onGroupedMouseOut
         onMouseDown  <->  onMouseUp
            onAttach  <->  onDetach
   onMiddleMouseDown  <->  onMiddleMouseUp
           onKeyDown  <->  onKeyUp
        onMouseClick  <->  onMouseClick
     onMouseDblClick  <->  onMouseDblClick
            

             Events which are their own opposite (e.g. onMouseClick) will reverse the next time the event occurs. Events which have no opposite (e.g. onLoadError) will ignore the
            
              Revert?
            
             option.
            

             If
            
              Pulse?
            
             is checked, the
            
              Revert?
            
             option is ignored.
            


            Basic Properties
           



              Opacity
            

              The opacity level to end at.
            

              Transition Time (sec)
            

              Amount of time in seconds that it will take to reach the end opacity.
            



            Advanced Properties
           



              Change When
            

              When should the parent start changing opacity?
            

              Trigger Key
            

              If 'Change When' is 'Key Down', the name of the key to watch for.
            

              Revert?
            

              Revert changes when opposite event occurs?
            

              Pulse?
            

              Return to original value when done? (Only if 'Revert?' is off.)
            



            Actions
           



              Start Change (Forward)
            

              Begin/resume changing the opacity to the end value.
            

              Start Change (Reverse)
            

              Begin/resume reverting the opacity back to the original.
            

              Stop Fading
            

              Stop (pause) the opacity change.
            

              Toggle Playback
            

              If the animation is***nning, stop it; otherwise, start it (in the direction last headed).
            



            Events
           



              Start
            

              Fires when the 'Start Change (Forward)' action is invoked.
            

              Reverse
            

              Fires when the 'Start Change (Reverse)' action is invoked.
            

              Stop
            

              Fires when the 'Stop Fading' action is invoked, or when the change finishes.
            

              Pulse
            

              Fires when the opacity reverses 'direction' (if 'Pulse?' is chosen).
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: 奇    时间: 2012-3-29 23:19
不错不错,收藏了

作者: 奇    时间: 2012-5-6 23:18
我也来支持下

作者: C.R.CAN    时间: 2012-12-8 11:43
我就看看,我不说话

作者: tc    时间: 2013-2-8 23:19
提醒猪猪,千万不能让你看见





欢迎光临 纳金网 (http://wwww.narkii.com/club/) Powered by Discuz! X2.5