Jump to content
Search Community

AndyC

Members
  • Posts

    8
  • Joined

  • Last visited

AndyC's Achievements

0

Reputation

  1. Downloaded, problem solved. Sorry for sounding a bit anxious, but deadlines were looming!
  2. OK, have just found and read your comments on this thread: http://forums.greensock.com/topic/3974-flash-101-in-hidden-browser-tabs/ Good to see that you've recognised and addressed the issue. The end of your last post on the thread looks mangled though. Could you please let me know exactly where to go to download the update that resolves the 'short tweens' issue? (I'm not a Club GS member - is it a free download?)
  3. Just a quick post to say that I'm experiencing the same problem, in a movie using dynamic tweens controlled by TweenMax and TimelineMax. Open a new tab, return to the tab with the movie using the tweens, and the tweened clips are all over the place. Because this is work for a client I don't have a URL I can send right now; but it is potentially a huge problem, because the movie will be useless if people can't browse through tabs without it going haywire. Would a solution be to kill all tweens if tab focus is lost? What's the easiest way to do this?
  4. OK, so I've got this code var myVar:Number = 0; TweenMax.to(this, 5, {myVar:10, onUpdate:myFunction, ease:Cubic.easeOut}); which tweens the value of myVar from 0 to 10 over five seconds, and calls myFunction at every frame on which the tween is active. Is there a peroperty of TweenMax that lets me access the difference between myVar in each frame? Because thanks to the easing, the difference will not be the same each frame. At the moment I've solved this by creating another variable 'myVarPrev', calculating 'myVar-myVarPrev' in myFunction and setting 'myVarPrev = myVar' at the end of myFunction. But can it be done more cleanly?
  5. ...which is my clumsy way of asking, is it possible to create a dropShadow filter, for instance, that can be used in multiple tweens? Something like: var myDropShadow:DropShadowFilter = new DropShadowFilter(0x000000, 5, 3, 3, 2); then: TweenMax.to(mc1, 5, {myDropShadow}); TweenMax.to(mc2, 5, {myDropShadow}); Or, do I simply have to call the same variables for the parameters in the various tweens?
  6. Ah! 'currentProgress', I like the sound of that. Thanks
  7. Let's say I have a movie clip, with an x coordinate equal to the width of the stage, which I want to move to the far left of the stage; the function would be: TweenMax.to(clip, 10, {_x:0}); How would I code the tween if the clip was in the centre of the stage, assuming I want it to move at the same speed? A revised function would be: TweenMax.to(clip, 5, {_x:0}); But do I have to calculate duration of the tween myself? Is there a TweenMax property that allows me to modify TweenMax.to(clip, 10, {_x:0}) so that the clip moves at the same speed regardless of its starting position? And what if I want to loop the tween so that when the clip reaches its destination (x=0) it is sent to the far left of the stage each iteration, regardless of where it started? Can TweenMax handle this in a single method? I am quite possibly overlooking a very simple solution to this, but I'd be grateful to anyone who can point it out! [EDIT]
×
×
  • Create New...