开发者

Dragging on Different Levels

开发者 https://www.devze.com 2022-12-28 09:36 出处:网络
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.

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

精彩评论

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

关注公众号