Jump to content
Search Community

Repeat Rotate photos

blackstyle test
Moderator Tag

Recommended Posts

import com.greensock.*;

import com.greensock.easing.*;

 

 

 

var section_clips = [mc01];

 

for (var j:Number = 0; j < section_clips.length; j++)

{

section_clips[j].alpha = 0;

}

 

 

 

var portfolio_clips = [];

for (var i:Number = 1; i <=12; i++)

{

portfolio_clips.push(mc01["m"+i]);

portfolio_clips.push(mc01["m0"+i]);

}

 

 

 

var tl:TimelineMax = new TimelineMax({});

tl.timeScale = 1;

 

tl.append(TweenMax.to(mc01, 0, {alpha:1, immediateRender:false}));

 

tl.appendMultiple(TweenMax.allFrom(portfolio_clips,

.5, {rotationY:"180", alpha:0}, .3));

 

 

 

 

=================================================================

 

Please understand does clumsy English

 

I am greensock novice. This, to me the difficulty

 

In the above code, ["m0"+i] I -180 road rotates and would like to be.

 

And mc02 add

 

is to make the rotation above mc01.

 

And the mc01 and mc02, I would like to repeat and infinity.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...