Jump to content
Search Community

reporter

Members
  • Posts

    6
  • Joined

  • Last visited

reporter's Achievements

0

Reputation

  1. Thanks for the suggestions. I'll try them out. You have helped out alot.
  2. Hi, Thanks for all the help. The file works great! However, I need to keep the file under 40k. I shrank the image files and re-exported. It got down to about 63k. It appears the import greensock classes code automatically adds 20k to my file size. Are there other ways to make the file smaller but still use the greensock classes code?
  3. Hi, I used ge.tt to upload my flash file. Here's the link. http://ge.tt/6WvK1xa I tried your fixes but still have problems. My co-worker and I are new to this. He is trying to get the text to tween onto the stage and I'm trying to get it to fade in and out. Is there a big difference in multiple tweens actionscript for these actions other than I would be using a TweenMax.fromTo and he would be using a Tweenlite.from? I'm hoping to get the fades to work and just use the same multiple tween principle for his tweening of text onto the stage. Here's my actionscript if the link doesn't work. Thanks alot. //import the GreenSock classes import com.greensock.*; import com.greensock.easing.*; var myTimeline:TimelineLite = new TimelineLite(); var textFields = [tf1, tf2, tf3, tf4]; myTimeline.append(TweenLite.from(accordcoupe, 2, {x:"-700", y:"-158", width:69, height:44})); myTimeline.append(TweenLite.from(accord, 2, {x:"672", y:"-158", width:69, height:44})); /*myTimeline.insertMultiple([new TweenLite(tf1, 1, {delay:2, alpha:0}), new TweenLite(tf2, 1, {delay:4, alpha:0}), new TweenLite(tf3, 1, {delay:6, alpha:0})], 0, TweenAlign.START, 3);*/ myTimeline.appendMultiple([ TweenMax.fromTo(tf1, 1, {alpha:1}, {alpha:0}, 0.2), TweenMax.fromTo(tf2, 1, {alpha:1}, {alpha:0}, 0.2), TweenMax.fromTo(tf3, 1, {alpha:1}, {alpha:0}, 0.2), TweenMax.fromTo(tf4, 1, {alpha:1}, {alpha:0}, 0.2)] 0, TweenAlign.START, 3);
  4. My .fla file was too big to attach even when I zipped it. Here's the code I was trying. I got some of it from the dir you linked earlier. It still keeps blinking. The text is supposed to appear above the cars after they stop and fade in and out in sequence. //import the GreenSock classes import com.greensock.*; import com.greensock.easing.*; var myTimeline:TimelineLite = new TimelineLite(); var textFields = [tf1, tf2, tf3, tf4]; myTimeline.append(TweenLite.from(accordcoupe, 2, {x:"-700", y:"-158", width:69, height:44})); myTimeline.append(TweenLite.from(accord, 2, {delay:2, x:"672", y:"-158", width:69, height:44})); //var textFields = [tf1, tf2, tf3, tf4]; //myTimeline.staggerTo(textFields, 1, {y:"+=150", ease:Cubic.easeIn}, 0.2); //var myTimeline:TimelineLite = new TimelineLite({tweens:[new TweenLite(text1, 1, {type:Fade}); myTimeline.insertMultiple(new TweenLite(tf1, 1, {alpha:1}, {alpha:0}, 0.2)); new TweenLite(tf2, 1, {alpha:1}, {alpha:0}, 0.2); new TweenLite(tf3, 1, {alpha:1}, {alpha:0}, 0.2); new TweenLite(tf4, 1, {alpha:1}, {alpha:0}, 0.2); 0, TweenAlign.START, 3);
  5. Hi, Thanks for the help. It stopped the animation from flickering. I've been copying and pasting code that looks appropriate to try and get what I want. Is there a way to designate that the rotating tweens start after the cars have stopped? I'm not sure if there is a place to put a Frame# or something. Also the rotating tweens aren't fading from one to the next. I only get the first one to show. import com.greensock.*; import com.greensock.easing.*; //TweenLite.to(accord, 3, {alpha:0.5}); TweenLite.from(accordcoupe, 2, {x:"-700", y:"-158", width:69, height:44}); TweenLite.from(accord, 2, {delay:2, x:"672", y:"-158", width:69, height:44}); //var myTimeline:TimelineMax = new TimelineMax({tweens:[new TweenLite(text1, 1, {type:Fade}), TweenMax.to(text2, 1, {type:Fade})], align:TweenAlign.SEQUENCE, onComplete:myFunction}); /*var myTimeline:TimelineLite = new TimelineLite({tweens:[new TweenLite(text1, 1, {type:Fade}),*/ var myTimeline:TimelineLite = new TimelineLite(); myTimeline.insertMultiple([new TweenLite(text1, 1, {delay:2, alpha:0}), new TweenLite(text2, 1, {delay:4, alpha:0}), new TweenLite(text3, 1, {delay:6, alpha:0})], 0, TweenAlign.START, 3);
  6. Hi, I am pretty new to actionscript. I am trying to have multiple tweens in the actionscript but they are interfering with each other. I have 2 animated cars tweening onto the artboard. I then want them to remain and to have text fade in and out above them. I got the cars working but not the text. It gives me errors saying there are undefined properties - mytimeline, Fade, TweenLiteAlign. Anybody have any suggestions? Thanks import com.greensock.*; import com.greensock.easing.*; TweenLite.from(accordcoupe, 2, {x:"-700", y:"-158", width:69, height:44}); TweenLite.from(accord, 2, {delay:2, x:"672", y:"-158", width:69, height:44}); myTimeline.insertMultiple([new TweenLite(text1, 1, {type:Fade}), new TweenLite(text2, 1, {delay:2, type:Fade}), new TweenLite(text3, 1, {delay:4, type:Fade})], 0, TweenLiteAlign.START, 3);
×
×
  • Create New...