创建嵌套影片剪辑

发布于 2024-07-21 05:57:37 字数 133 浏览 4 评论 0原文

我需要创建 2 个影片剪辑:clipA 是一个包装影片剪辑。 ClipB 是一个容器影片剪辑。 它们之间大约有 15 个像素的间距。 然后将 ClipB 传递给另一个函数,该函数向其中添加其他元素(按钮、图形等)。 完成这件事的最佳方法是什么?

I need to create 2 movie clips: clipA is be a wrapper movieclip. clipB is a container movieclip. There is about 15 pixels spacing between them. clipB is then passed to another function which add other elements to it ( buttons,graphics etc).
Whats the best way to get this done ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不打扰别人 2024-07-28 05:57:37
var clipA:MovieClip = new MovieClip();
var clipB:MovieClip = new MovieClip();

clipB.x = clipA.x + clipA.width + 15;

this.addChild(clipA);
this.addChild(clipB);

otherFunction(clipB);

我不太确定你要怎么回答这个问题,这似乎是一个基本问题。

var clipA:MovieClip = new MovieClip();
var clipB:MovieClip = new MovieClip();

clipB.x = clipA.x + clipA.width + 15;

this.addChild(clipA);
this.addChild(clipB);

otherFunction(clipB);

I'm not quite sure where you're going with this though, it seems like such a basic question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文