Hi,
Thank you very much for taking the time to look at my archive. When I created the flex project to post here, I inadvertantly included the com directory from the docs directory of Greensock. Originally, in the AS project I used the correct com file (otherwise mxmlc would not have compiled).
Your project works fine and I appreciate the effort. Going back to my original AS project, I compared your .as file and mine. Here is the conclusion:
If we use your code:
var tl:TimelineMax = new TimelineMax({repeat:100, delay:2});
tl.append(TweenMax.to(b, 1, {x:242, y:206}));
tl.append(TweenMax.to(b, 2, {x:119, y:75}));
things work fine.
If i use
TweenMax.to(b, 2, {x:242, y:206});
TweenMax.to(b, 2, {x:119, y:75});
the two calls seem to be be "optimized" into a single translation. The goals was to have the image start at a point, go along the side of one triangle and come down the other side. TweenMax.to is optimizing them into a motion along the base of the triangle!
I am good to go (i am merely learning) thanks to your quick tutorial/education. However, out of curiosity, why are the two call to TweenMax.to being "optimized" - in this case overriding the intent of the animator?
Thanks again for your time