actionscript 3 - How to perform copy paste operation of a line drawn by mouse on Group container? -
i working on project need perform copy , paste operation.i draw line of mouse on group container.now want paste it.please provide me solution...........
first, need define data structure chart(for example, define line properties start(point), end(point), width , color)
next, need create ui render line inside canvas (group container). ui responsible providing interactions such resize, change color etc. well. can render lot of line instances according properties (start, end, width , color)
now, copy , paste easy.
just duplicate selected line instance , tell ui render duplicated instance.
Comments
Post a Comment