Jump to content
Search Community

Choochoo

Members
  • Posts

    26
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Choochoo's Achievements

0

Reputation

  1. psuedo: var t1:timelinemax = new timelinemax(); t1.append(something1); t1.append(something2); t1.append(something3); var t2:timeline max = new timelinemax(); t2.append(other1); t2.append(other2); t2.append(other3); t2.reverse = true; t1.append(t2); t1.play(); ////// the order should be something1 something2 something3 other3 other2 other1 anyway to do this?
  2. Whew solved it... it works just fine, I was using a BorderContainer in Flash builder 4 and when i would do this rollOver.append(TweenMax.to(border,.1,{borderWeight:7})); it would not work, so I had to give it its own custom made stroke component and then animate that. i.e. rollOver.append(TweenMax.to(thestroke,.1,{weight:7})); SOLVED thanks!
  3. I am using the new flash builder 4, and have a stroke on one of my containers, was wondering if I could animate its stroke weight somehow.
  4. I am converting an entire slideshow into TweenMax, I love it, its way easier than what was in before Problem: When loading dynamic pictures (large pictures) it lags the animation on every load. It loads the picture, attachs it to a MC, then throws it to the animation, there is say, 70 pictures, and I tell it to start on the 3rd picture, so everytime a new picture is loaded, it lags the animation slightly. Is there a better way of doing this or tricks of optimization? Thanks! function add_to_mc(mc:movieclip) { time = 14;//total duration of one picture fadetime = 2;//how long fades takes maintl.addLabel(i.toString(), maintl.duration); if (maintl.duration == 0) { maintl.append(TweenLite.to(mc, time, {onStart:checkCarousel,ease:Linear.easeNone, _x:nEndLeft, _y:nEndTop, _width:nEndWidth, _height:nEndHeight } )); } else { maintl.append(TweenMax.to(mc, 0.1, { _visible:true } ), -fadetime); maintl.append(TweenLite.to(mc, time, {onStart:checkCarousel,ease:Linear.easeNone,_x:nEndLeft, _y:nEndTop, _width:nEndWidth, _height:nEndHeight } ), -fadetime); } maintl.append(TweenMax.to(mc, fadetime, {ease:Linear.easeNone,autoAlpha:0 } ),-fadetime); } } edit: I was maybe thinking of creating the entire Timeline with fake movieclips with predermined sizes, then just inserting the pictures into them, so nothing new is created while playing the timeline
  5. I figured it out, it was user error, thanks!
  6. try taking off the () on RemoveLeft see what happens
  7. is this the same for as2? because I have identical code to that, and it doesn't hit the onComplete function unless I have the () on it.
  8. try putting append instead of insert if that doesn't work, add the onComplete function to the TweenMax.to instead of the timeline, see what you get.
  9. Anybody know of fast code that will remove all tweens in a label example: Timeline.addLabel("first",0); Timeline.append(some_tween); Timeline.addLabel("second",Timeline.TotalDuration); Timeline.append(some_tween2); Best way to remove the some_tween2, as well as the "second" label name, so it just goes back to Timeline.addLabel("first",0); Timeline.append(some_tween); in the timeline
  10. I do my_timeline.tweenTo("label_name",{onComplete:TweenTo_finished}); though when label_name is hit, it has a callback function. it does the callback function, but never gets to TweenTo_finished function.
  11. So I figured out what was going on in my flash file. for my main timeline it was timeline.addCallback(shrinkMe,"images"); timeline.tweenTo(0,{onComplete:the_function}); if tweening back, and hitting a callback, it won't go to "the_function" it'll just do the callback, is there a way around this?
  12. I recreated a small sample file and it worked perfectly, for some reason its just not working for me, its not a greensock issue Thanks.
  13. code: main_timeline.tweenTo(main_timeline.getLabelTime(main_timeline.currentLabel),{onComplete:menu_addon,onCompleteParams:[category,option]}); I am basically Going forward 111111111>22222222222> back tracking 111111111> clearing... recreating, and going forward again 111111111111>333333333> onComplete randomly gets triggered after it reverses the 222222222222> any work arounds? or ideas?
  14. Yeah i am sorta having a problem with the same thing... not sure if I have it setup correctly tl.insert(TweenMax.to(myText,.4,{glowFilter:{color:0x0000FF, alpha:1,strength:9, blurX:100, blurY:50}}),0); tl.insert(TweenMax.to(myText,.12,{glowFilter:{color:0xFFFFFF, alpha:1,strength:2, blurX:1.5, blurY:1.5,overwrite:false}}),0); the second one kills the first one
  15. like a onStart? var b:button = ---------; var capturedX:Int; TweenLite.to(b,2,{onStart:captureX}); function captureX():void { capturedX = b.x; } if thats wrong, then I'm lost on the question
×
×
  • Create New...