Erase a lineTo line in AS3
I have this file http://www.rebuild.co.za/temp/lineDraw.fla Basically lines 开发者_高级运维gets drawn where ever I tween the animation.arrow MovieClip. What I'm wanting to do is be able to rewind the MovieClip and have the line erase its self step by step.
If any one knows of an easier way to do line animations please tell me.
I hope this makes sense.
Without looking at your flash file, you probably want each line to be drawn in a separate MovieClip which is then pushed into an array. When you reverse you can just pop the last MovieClip from the array and remove it from the stage.
精彩评论