I'm sure this is pretty basic, but I've been having a hard time finding an answer for this anywhere.
In Flash, if you wanted to create a looping MovieClip, you'd tween an object and create a symbol. For example, a rotating wheel.
Now if I wanted to make that wheel move on the stage while rotating, say from left to right in a straight line, I would tween the MovieClip which already has its own looping timeline.
So if I apply a TweenLite/Max to a MovieClip object to make it yoyo or repeat a property transformation, what's the syntax to tween it with another TweenLite/Max method? I've fiddled with the overwrite properties and tried to manipulate it with TimelineLite/Max, but nothing works.
Here's what I've tried last time. I'm just trying make a figure (bonhomme) rock back and forth and move in a straight line across the stage at the same time.
var walkTween:TweenMax = TweenMax.to(bonhomme1, 0.5, {repeat:-1, yoyo:true, rotation:20, ease:Linear.easeNone});
TweenMax.to(walkTween, 5, {x:"200"});
I receive this error:
ReferenceError: Error #1069: Property x not found on com.greensock.TweenMax and there is no default value.
at com.greensock::TweenLite/init()
at com.greensock::TweenMax/init()
at com.greensock::TweenMax/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
I'll bet there's a straightforward answer, but no matter where I search, I come up empty.
I appreciate any help.