Easily create a picture transition effect with the Transitions class

Source: Internet
Author: User
Create an easy to create a picture transition effect with the Transitions class
Click to view Flash:
http://space.flash8.net/bbs/attachment.php?aid=311487


Main scene on the first frame:
Mymovieclip.swapdepths (MYMOVIECLIP0);
var i:number = 0;
function Tween (obj) {
i++;
Mymovieclip0.gotoandstop (i-1);
Obj.gotoandstop (i);
Import mx.transitions.*;
Import mx.transitions.easing.*;
switch (i) {
Case 1:
Transitionmanager.start (Mymovieclip, {type:blinds, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Numstrips:10, dimension:0});
Break
Case 2:
Transitionmanager.start (Mymovieclip, {type:blinds, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Numstrips:10, dimension:1});
Break
Case 3:
Transitionmanager.start (Mymovieclip, {type:fade, Direction:Transition.IN, Duration:2, easing:None.easeNone});
Break
Case 4:
Transitionmanager.start (Mymovieclip, {type:iris, Direction:Transition.IN, Duration:2, Easing:Strong.easeOut, Startpoint:5, Shape:iris. CIRCLE});
Break
Case 5:
Transitionmanager.start (Mymovieclip, {typehoto, Direction:Transition.IN, Duration:1, easing:None.easeNone});
Break
Case 6:
Transitionmanager.start (Mymovieclip, {typeixeldissolve, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Xsections:20, ysections:20});
Break
Case 7:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:1});
Break
Case 8:
Transitionmanager.start (Mymovieclip, {type:fade, Direction:Transition.IN, Duration:2, easing:None.easeNone});
Break
Case 9:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:2});
Break
Case 10:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:3});
Break
Case 11:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:4});
Break
Case 12:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:5});
Break
Case 13:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:6});
Break
Case 14:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:7});
Break
Case 15:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:8});
Break
Case 16:
Transitionmanager.start (Mymovieclip, {type:wipe, Direction:Transition.IN, Duration:2, Easing:None.easeNone, Startpoint:9});
Break
}
Count.text = i;
if (i>=16) {
i = 0;
}
}
MyID = SetInterval (tween, mymovieclip);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.