LineSegment update

Software: Away3D 4.x

aeki, Member
Posted: 24 November 2012 05:02 PM   Total Posts: 73

Hi there,

I need to update a LineSegment. Does anyone would guess why the following code doesn’t work

mySegmentSet.getSegment(0)).start.xnewXValue

.

I would like to add a tweening effect. Why does this codeline doesn’t work, even if my trace

caurina.transitions.Tweener.addTween(mySegmentSet.getSegment(0).start{"x":newXValue"time":1"onComplete":this._onComplete});

private function 
_onComplete():void{
 trace
(mySegmentSet.getSegment(0).start);
 
// The start vector has been updated with the newXValue....
   

Avatar
80prozent, Sr. Member
Posted: 25 November 2012 07:38 PM   Total Posts: 430   [ # 1 ]

Hi

try the “updateSegment”-function on your LineSegment.

like this:

mySegmentSet.GetSegment(0).updateSegment(yourNewParameters); 

Hope that Helps

 Signature 

sorry…i hope my actionscript is better than my english…

   

aeki, Member
Posted: 25 November 2012 07:41 PM   Total Posts: 73   [ # 2 ]

thanks !

I am so dumb!!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X