开发者

Dragging on Different Levels

I have a flash project开发者_JAVA百科 with three non overlapping panels (visual spaces) each of which contains different movie-clips. Each movie-clip in a particular panel is the child of that panel.

Now, I want to drag one of the movie-clips from one panel to another (remove it as a child from the first panel and add it to the other) without a jitter and proper drag.

What is the appropriate way to handle the drag architecturally. Should the drag be handled in all panels parent. In the panels, or the items themselves?

Thanks.


I would handle the drag in the common parent of the panels, just because likely you wouldn't want each panel to have references to the other panels, because that isn't good encapsulation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜