Duncan
Duncan

Reputation: 11

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.

Upvotes: 1

Views: 1157

Answers (1)

shanethehat
shanethehat

Reputation: 15570

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.

Upvotes: 1

Related Questions