Jump to content
Search Community

Noobie re appendmultiple PLEASE HELP!

khw2010 test
Moderator Tag

Recommended Posts

Trying to work out an issue with the following code:

 

var tl:TimelineLite = new TimelineLite();

tl.append( TweenMax.from(mcTxt8, 3, {autoAlpha:0}) );

tl.append( TweenMax.to(mcTxt8, 2, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt9, 3, {autoAlpha:0}) );

tl.append( TweenMax.to(mcTxt9, 2, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt10, 3, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt12, 3, {autoAlpha:0}) );

tl.appendMultiple( [TweenMax.to(mcTxt10, 3,{autoAlpha:0}),

TweenMax.to(mcTxt12, 3,{autoAlpha:0})]);

tl.append( TweenMax.from(mcTxt11, 3, {autoAlpha:0}) );

 

---

mcTxt10 should appear, then mcTxt12, then both should fade out together, at which point mcTxt11 should appear. When I test the movie, mcTxt10 and 12 appear before any other mc's and do not fade. What is the prb here?

 

Thanks in advance.

Link to comment
Share on other sites

I don't see an obvious problem with your code, but maybe you just forgot to embed the fonts for those objects or something. Flash won't allow text to render alpha values other than 0 and 1 unless the fonts are properly embedded. If that's not the problem, there must be something else going on in your code that's causing the issue. Feel free to post a simple FLA for review.

Link to comment
Share on other sites

Thanks for the response. my prob is two-fold. Unfortunately my flash file is over the required limit, b I'll try to explain as best i can,

 

You will see that there are two lines of code that I added before i finalized the movie (which were not included in my previous post). This being mcTxt13.

 

1. The animation as it stands now works up until mcTxt10 & mcTxt12 appear. Once they fade, the entire line appears again (mcTxt13). Then the last line mcTxt11.

 

2. When creating the animation, I thought simply deleting the lines of code referencing this 2nd occurrence (mcTxt13) would resolve this issue. However, upon doing that, the line appears thruout the entire movie.

 

What gives? I'll try to mess around w. the fonts and properly embed them as you suggest. I suspect it might be b/c I am importing text directly from Illustrator?

 

Thanks in advance for your speedy reply!

 

Please bear in mind this was created on a MAC, Flash CS5 (if that matters). Code follows:

 

var tl:TimelineLite = new TimelineLite();

tl.append( TweenMax.from(mcTxt8, 3, {autoAlpha:0}) );

tl.append( TweenMax.to(mcTxt8, 2, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt9, 3, {autoAlpha:0}) );

tl.append( TweenMax.to(mcTxt9, 2, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt10, 3, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt12, 3, {autoAlpha:0}) );

tl.appendMultiple( [TweenMax.to(mcTxt10, 3,{autoAlpha:0}),

TweenMax.to(mcTxt12, 3,{autoAlpha:0})]);

tl.append( TweenMax.from(mcTxt13, 3, {autoAlpha:0}) );

tl.append( TweenMax.to(mcTxt13, 3, {autoAlpha:0}) );

tl.append( TweenMax.from(mcTxt11, 3, {autoAlpha:0}) );

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