Hi
I have a question regarding how I would go about to add properties for a beizerThrough tween dynamic? What I'm doing is to have the user click on the screen, the store mouseY+mouseX and have a movieclip run through the cordinates.
But I don't get how I convert my stored points into the bezier format. I'm trying to use parseBeziers() but I can't seem to understand how I should send in multiple values for more points then one. Like how it actually works. I've tried:
var bezierObj:Object = BezierPlugin.parseBeziers({"x":new Array(0, 100, 200, 300),"y":new Array(0, 140, 240, 340)},true);
TweenMax.to(player, 10, {bezierThrough:[{"x":bezierObj.x,"y":bezierObj.y}]});
and:
var bezierObj:Object = BezierPlugin.parseBeziers({"x":new Array(0),"y":new Array(340)},true)
i've also tried sending in my stored array:
var bezierObj:Object = BezierPlugin.parseBeziers({"x":$array_x,"y":$array_y}, true);
Would you be able to help me with this?
Thank you so much