Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建 2 个影片剪辑:clipA 是一个包装影片剪辑。clipB 是一个容器影片剪辑。它们之间大约有 15 个像素的间距。然后将 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);
不过,我不太确定您要解决这个问题,这似乎是一个基本的问题。