Jump to content
Search Community

More Timeline Problems

beno test
Moderator Tag

Recommended Posts

Hi;

Here's my code:

 

var timeline:TimelineLite = new TimelineLite();

timeline.append(new TweenLite(star_container, .4, {alpha: 1}));

timeline.append(new TweenLite(star_container, .2, {rotation: 90, scaleX: 1.5, scaleY: 1.5}));

timeline.append(new TweenLite(star_container, .2, {rotation: 180, scaleX: .5, scaleY: .5}));

timeline.append(new TweenLite(star_container, .2, {rotation: 270, scaleX: 1, scaleY: 1}));

timeline.append(new TweenLite(star_container, .4, {alpha: 0}));

// timeline.repeat = 2;

// timeline.repeatDelay = 0.5;

// timeline.pause();

// timeline.reverse();

 

Now, here are the problems I'm having *after* rebooting my Mac even:

 

1) If I uncomment the repeat and repeatDelay lines Flash complains "1119 Access of possibly undefined property..."

2) If I uncomment the last two lines there are no errors but nothing prints to screen.

 

This is with a brand new download of your s/w. Please advise.

TIA,

beno

Link to comment
Share on other sites

1) You're using a TimelineLite which doesn't have "repeat" or "repeatDelay" properties. Only TimelineMax has those. Switch to TimelineMax and you'll be fine.

 

2) You called reverse() on your timeline before any time elapsed, so its currentTime is at 0 already. Reversing makes it go backwards towards 0. So of course you wouldn't see anything happen. If you want to skip ahead and go backwards from the end of the timeline, you could do:

 

timeline.currentTime = timeline.duration; //force it to the end
timeline.reverse();

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...