Jump to content
Search Community

jbrand

Members
  • Posts

    3
  • Joined

  • Last visited

jbrand's Achievements

0

Reputation

  1. This was the code given from the example of on the /timelinemax directory on greensock.com import com.greensock.*; var timeline:TimelineMax = new TimelineMax({repeat:2, yoyo:true, repeatDelay:1.5}); timeline.append( TweenLite.from(blackBar, 0.8, {x:550}) ); timeline.insertMultiple( TweenMax.allFrom([logo, timelineWord, maxWord, byGreenSock], 0.5, {autoAlpha:0}, 0.25), 0.6); timeline.insertMultiple( TweenMax.allFrom(lettersArray, 1, {y:"-30", alpha:0, ease:Elastic.easeOut}, 0.04), 1.4); I'm curious how those letters tween by simply using lettersArray? I tried to recreate something similar but it doesn't work. I made 3 movie clips, letters "Y", "U", and "M" with the same instance names. I'm trying to learn how to use an array and sure I'm not doing it correctly. Any help would be appreciated. Is there any full example of an array used with TweenMax? var lettersArray = new Array("Y", "U", "M"); trace(lettersArray); import com.greensock.*; var timeline:TimelineMax = new TimelineMax({repeat:2, yoyo:true, repeatDelay:1.5}); timeline.insertMultiple( TweenMax.allFrom([lettersArray], 1, {_y:"-30", _alpha:0, ease:Elastic.easeOut}, 0.04), 1.4);
  2. Hi, I was working on learning AS3 by adding some simple movements to a movie clip on the stage. I used TweenMax a lot with AS2 and thought I would try to apply it to my exercise in AS3. I'm working in an actionscript file that gets added as a class to my .fla. As soon as I added the TweenMax imports, I got an error like this: 1083: Syntax error: package is unexpected. Everything worked until I added the imports. Does TweenMax not work within an actionscript file? Thanks, J
×
×
  • Create New...