短暂的怀疑 [英] flash doubt

查看:66
本文介绍了短暂的怀疑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在简介页面添加声音,请解释

How can i add voice in intro page please explain

推荐答案

您好,朋友,您可以使用其他方法在Flash中添加声音,
1)基于时间线
2)使用ActionScript

1)基于时间线:-
如果您有MP3/Wave格式的声音,只需将其导入到您的Flash库中即可.
在键盘上按ctrl + L可以看到闪存库.在那里您可以看到声音.插入新的时间插入键框只需将声音拖放到舞台上即可.

2)动作脚本(这是actionscript2.0):-

var my_sound:Sound = new Sound();
my_sound.onLoad = function(success:Boolean){
如果(成功){
my_sound.start();
status_txt.text =声音已加载";
} else {
status_txt.text =声音失败";
}
};
my_sound.loadSound("song1.mp3",true);
Hi friend there are different method to add sound in flash,
1)Time line based
2)Using ActionScript

1)Time line Based:-
If u have MP3/Wave format sound just import it in to your flash library.
ctrl+L in key board u can see the flash library.there u wil see the sound.put new time insert key frame just drag the sound drop on stage.

2)Action Script(This is actionscript2.0):-

var my_sound:Sound = new Sound();
my_sound.onLoad = function(success:Boolean) {
if (success) {
my_sound.start();
status_txt.text ="Sound loaded";
} else {
status_txt.text ="Sound failed";
}
};
my_sound.loadSound("song1.mp3", true);


这篇关于短暂的怀疑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆