博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
flash 控制声音的播放和停止
阅读量:4169 次
发布时间:2019-05-26

本文共 260 字,大约阅读时间需要 1 分钟。

START在库中找到你要用的声音,单击右键找到链接单击左键打开,勾选为ActionScript导出和在第一帧导出,设置识标符为music,确定退出. 再在第一帧加入下面代码: mySound = new Sound(); mySound.attachSound("music"); mySound.start(0,100); 这里做下说名: mySound.start(0,100); 中第一个0是秒偏移量,就是从0秒开使播放的意思 第二个100是播放100遍的意思.STOPmySound.stop("music");

转载地址:http://wogxi.baihongyu.com/

你可能感兴趣的文章
python zip( )函数
查看>>
python 矩阵转置
查看>>
python 使用zip合并相邻的列表项
查看>>
python iter( )函数
查看>>
python callable()函数
查看>>
python 使用zip反转字典
查看>>
Python内置函数chr() unichr() ord()
查看>>
Python列表解析
查看>>
Python 如何生成矩阵
查看>>
Python 迭代器(iterator)
查看>>
Python enumerate类
查看>>
leetcode 151 Reverse Words in a String (python)
查看>>
leetcode 99 Recover Binary Search Tree (python)
查看>>
Python 生成器(generator)
查看>>
leetcode 98 Validate Binary Search Tree (python)
查看>>
python 三元条件判断的3种实现方法
查看>>
leetcode 97 Interleaving String(python)
查看>>
leetcode 92 Reverse Linked List II
查看>>
leetcode 78 Subsets
查看>>
leetcode 90 Subsets II
查看>>