source: Collectif_Otra/global.reflet-web.net/lib/reflet_swf_dependances/fl/transitions/Fade.as @ 2824

Last change on this file since 2824 was 2824, checked in by kent1, 10 years ago

Les librairies qui sont dans Flash CS4

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1// Copyright © 2007. Adobe Systems Incorporated. All Rights Reserved.
2package fl.transitions
3{
4import flash.display.*;
5
6/**
7 * The Fade class fades the movie clip object in or out. This effect requires no additional parameters.
8 * <p>For example, the following code uses the Fade transition for the movie clip
9 * instance <code>img1_mc</code>:</p>
10 * <listing>
11 * import fl.transitions.~~;
12 * import fl.transitions.easing.~~;
13 * 
14 * TransitionManager.start(img1_mc, {type:Fade, direction:Transition.IN, duration:9, easing:Strong.easeOut});
15 * </listing>
16 * @playerversion Flash 9
17 * @langversion 3.0
18 * @keyword Fade, Transitions
19 * @see fl.transitions.TransitionManager
20 */     
21public class Fade extends Transition 
22{
23
24    /**
25     * @private
26     */   
27        override public function get type():Class
28        {
29                return Fade;
30        }
31
32    /**
33     * @private
34     */   
35        protected var _alphaFinal:Number;
36
37    /**
38     * @private
39     */     
40        function Fade(content:MovieClip, transParams:Object, manager:TransitionManager) 
41        {
42                super(content, transParams, manager);
43                this._alphaFinal = this.manager.contentAppearance.alpha;               
44        }
45       
46    /**
47     * @private
48     */   
49        override protected function _render(p:Number):void 
50        { 
51                this._content.alpha = this._alphaFinal * p;
52        }
53
54}
55}
Note: See TracBrowser for help on using the repository browser.