- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
public static function createTransitionTween(transitionView:TransitionView):TweenCore
{
var innerTimeline:TimelineMax = new TimelineMax();
var verySmallNumber:Number = 0.0001;
var swfTween:TweenMax;
var showTween:TweenMax;
var hideTween:TweenMax;
var duration:Number = 1;
if (transitionView.swf.content)
{
var totalFrames:Number = (transitionView.swf.content as MovieClip).totalFrames;
if (transitionView.isStartTransition)
swfTween = TweenMax.fromTo(transitionView.swf.content , duration, {frame:26, alpha:1},{frame:50, alpha:1, ease:Linear.easeNone});
else
swfTween = TweenMax.fromTo(transitionView.swf.content , duration, {frame:1, alpha:1},{frame:25, alpha:1, ease:Linear.easeNone});
showTween = TweenMax.fromTo(transitionView.swf.content, verySmallNumber, {alpha:0}, {alpha:1});
hideTween = TweenMax.fromTo(transitionView.swf.content, verySmallNumber, {alpha:1}, {alpha:0});
innerTimeline.append(showTween, -1 * verySmallNumber);
innerTimeline.append(swfTween);
innerTimeline.append(hideTween);
}
return innerTimeline;
}
wvxvw 22.04.2014 20:14 # 0
kyzi007 22.04.2014 20:23 # 0
Fai 23.04.2014 21:49 # 0