使用数组、循环和推送函数
我想做的是让 4 个影片剪辑(leaf1、leaf2、leaf3、leaf4)在将其拖到另一个影片剪辑(NatureTarget)上并按下播放按钮时播放附加到它们的声音,以便声音按照它们被拖动的顺序播放。我知道我需要使用数组、推送函数和循环......但我迷路了。任何帮助将非常感激。谢谢。
what I'm trying to do is to get 4 movieclipps (leaf1, leaf2, leaf3, leaf4) to play the sound that is attached to them when is dragged onto another movieclip (NatureTarget) and the play button is pressed so that the sounds are played in the order they are dragged on. I know I need to use an array and the push function and a loop...but I am lost. Any help would be very much appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做了一个粗略的例子,希望能让您了解如何解决您的问题。如果您发布一些代码将会有所帮助,因为我可以针对它定制这个答案。无论如何,只需将代码复制并粘贴到文档根目录即可查看它的工作原理。
I made a crude example, hopefully giving you an idea of how to go about solving your problem. It would have helped if you posted some of your code as I could have tailored this answer to it. Anyway just copy and paste the code into you document root to see it work.