Jump to content
GreenSock

caseyk

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by caseyk

  1. Working as part of a project team at Sapient LA, I recently completed two projects for http://www.SonyStyle.com (the hero space at the top of each page) http://www.sonystyle.com/reader http://www.sonystyle.com/bloggie I found the TweenMaxVars class to be really useful on both pieces because it can accept parameters at it's instantiation. This allowed me to write generalized functions ie: BezierTween3D() that would accept common properties like an array of x, y, z's and an array of rotationX, rotationY, rotationZ as well as a parameters object. That way I could centralize the complex portion of code that would have been repeated every time (and avoid duplication like BezierTweenObject1, BezierTweenObject2) and further customize each tween by passing specific onComplete, onCompleteParams, etc that would be appended to the position & rotation params. Sweet! --Casey
  2. Ok, that makes perfect sense. I was confused because the documentation reads: Simply pass an object in with whatever properties you'd liketo set just before the tween begins. For example, if mc.x is currently 100, and you'd like to tween it from 0 to 500, do TweenMax.to(mc, 2, {x:500, startAt:{x:0}}); But I think this is just a carryover from the regular startAt property (not the TweenMaxVars property). Thanks!
  3. A possible exists in TweenMaxVars line 62: public var startAt:TweenLiteVars; The documentation specifies that this property accepts Object types and the example uses short object notation. However, since the property requires type TweenLiteVars, this usage is not possible: 1118: Implicit coercion of a value with static type Object to a possibly unrelated type com.greensock.data:TweenLiteVars. If it's the case that this property must use TweenXVars, and the docs are just out of sync, then nevermind! Thanks for a great Tweening platform! --C
  4. I found that the BezierPlugin + OverwriteManager issue was my own, doh! You reply too quickly! I'll try your suggestion for BezierPlugin + ShortRotationPlugin Thanks!
  5. I'm trying to set my bezier parameter to an object that looks like this: object.shortRotation = {rotationX: myX, rotationY: myY, rotationZ: myZ}; And the result is: ReferenceError: Error #1069: Property shortRotation not found on away3dlite.containers.ObjectContainer3D and there is no default value. at com.greensock.plugins::BezierPlugin/init()[com/greensock/plugins/BezierPlugin.as:100] at com.greensock.plugins::BezierPlugin/onInitTween()[com/greensock/plugins/BezierPlugin.as:81] Is there another way to use these two plugins together? Thanks in advance, Casey
  6. TweenLiteVars and TweenMaxVars (inherited) contain a Boolean typecasting error that causes all instances of TweenLiteVars and TweenMaxVars to use a default value of "false" for the "overwrite" property, although the documentation indicates that this should default to an int value of 2/AUTO when the OverwriteManager is in use. This bug exists in the latest build, 11/25/2009 The workaround is to use a simple Object instead of TweenLiteVars or TweenMaxVars
×