❶ 急,急,急求一个AS3.0音乐播放器源代码!!!!
你是一个典型的RIA的应用开发了,你不妨上网上搜索一下吧,没有哪个人会费这么大力气为你写这个的。
❷ as3.0 音乐播放器功能如何实现。
你到电驴上去,搜索as3.0教程。里面有这个案例,
❸ 求flash音乐播放器代码
镶嵌在网页中的各种播放器代码 zt
1.avi格式
<object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="ShowDisplay" value="0">
<param name="ShowControls" value="1">
<param name="AutoStart" value="1">
<param name="AutoRewind" value="0">
<param name="PlayCount" value="0">
<param name="Appearance value="0 value=""">
<param name="BorderStyle value="0 value=""">
<param name="MovieWindowHeight" value="240">
<param name="MovieWindowWidth" value="320">
<param name="FileName" value="文件路径">
<embed width="400" height="200" border="0" showdisplay="0" showcontrols="1" autostart="1" autorewind="0" playcount="0" moviewindowheight="240" moviewindowwidth="320" filename="文件路径" src="Mbar.avi">
</embed>
</object>
2.mpg格式
<object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width="239" height="250">
<param name="Appearance" value="0">
<param name="AutoStart" value="-1">
<param name="AllowChangeDisplayMode" value="-1">
<param name="AllowHideDisplay" value="0">
<param name="AllowHideControls" value="-1">
<param name="AutoRewind" value="-1">
<param name="Balance" value="0">
<param name="CurrentPosition" value="0">
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableSelectionControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value="../../../mpeg/halali.mpg" valuetype="ref">
<param name="FullScreenMode" value="0">
<param name="MovieWindowSize" value="0">
<param name="PlayCount" value="1">
<param name="Rate" value="1">
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="ShowControls" value="-1">
<param name="ShowDisplay" value="-1">
<param name="ShowPositionControls" value="0">
<param name="ShowTracker" value="-1">
<param name="Volume" value="-480">
</object>
3.smi格式
<OBJECT id=RVOCX classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240
height=180>
<param name="_ExtentX" value="6350">
<param name="_ExtentY" value="4763">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="rm.rm">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="console1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000"><embed src="real.smi" type="audio/x-pn-realaudio-plugin" console="Console1" controls="ImageWindow" height="180" width="240" autostart="true"></OBJECT>
4.rm格式
<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=288 WIDTH=352>
<param name="_ExtentX" value="9313">
<param name="_ExtentY" value="7620">
<param name="AUTOSTART" value="0">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="SRC" value="rtsp://203.207.131.35/vod/dawan-a.rm";;;;>
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="Clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000"><embed SRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" HEIGHT="288" WIDTH="352" AUTOSTART="false">
</OBJECT>
华哥 2005-7-5 14:37
5.wmv格式
<object id="NSPlay" width=200 height=180 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" hspace="5">
<!-- ASX File Name -->
<param name="AutoRewind" value=1>
<param name="FileName" value="xxxxxx.wmv">
<!-- Display Controls -->
<param name="ShowControls" value="1">
<!-- Display Position Controls -->
<param name="ShowPositionControls" value="0">
<!-- Display Audio Controls -->
<param name="ShowAudioControls" value="1">
<!-- Display Tracker Controls -->
<param name="ShowTracker" value="0">
<!-- Show Display -->
<param name="ShowDisplay" value="0">
<!-- Display Status Bar -->
<param name="ShowStatusBar" value="0">
<!-- Diplay Go To Bar -->
<param name="ShowGotoBar" value="0">
<!-- Display Controls -->
<param name="ShowCaptioning" value="0">
<!-- Player Autostart -->
<param name="AutoStart" value=1>
<!-- Animation at Start -->
<param name="Volume" value="-2500">
<param name="AnimationAtStart" value="0">
<!-- Transparent at Start -->
<param name="TransparentAtStart" value="0">
<!-- Do not allow a change in display size -->
<param name="AllowChangeDisplaySize" value="0">
<!-- Do not allow scanning -->
<param name="AllowScan" value="0">
<!-- Do not show contect menu on right mouse click -->
<param name="EnableContextMenu" value="0">
<!-- Do not allow playback toggling on mouse click -->
<param name="ClickToPlay" value="0">
</object>
❹ flash做音乐播放器源代码
去flash8.net网站上找吧
❺ AS3.0制作视频播放器源码,教学视频链接也可以。3Q
这是我几年前写的一个专门用于播放视频的类代码,希望对你有用:
package com.qq12345.zhangbing{
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.display.MovieClip;
import flash.events.AsyncErrorEvent;
import flash.events.NetStatusEvent;
public class 加载视频 extends MovieClip {
private var flvVideo:Video;
private var flvURL:String;
private var flvNetCon:NetConnection;
private var flvNetStr:NetStream;
public function 加载视频(url:String) {
var flvObject:Object=new Object();
flvURL=url;
flvNetCon=new NetConnection();
flvNetCon.connect(null);
flvNetStr=new NetStream(flvNetCon);
flvNetStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,视频加载失败);
flvNetStr.addEventListener(NetStatusEvent.NET_STATUS,当前视频流状态);
flvNetStr.client=flvObject;
flvNetStr.play(flvURL);
flvVideo=new Video();
flvVideo.attachNetStream(flvNetStr);
flvNetStr.pause();
addChild(flvVideo);
}
private function 视频加载失败(evt:AsyncErrorEvent):void {
//trace(evt.text);
}
private function 当前视频流状态(evt:NetStatusEvent):void {
if (evt.info.code=="NetStream.Record.Stop") {
trace("播放结束");
返回();
播放视频();
}
}
public function 暂停视频():void {
flvNetStr.pause();
}
public function 播放视频():void {
flvNetStr.resume();
}
public function 删除视频():void {
flvNetStr.close();
}
public function 播放流():void {
flvNetStr.togglePause();
}
public function 返回():void {
flvNetStr.play(flvURL);
}
}
}
❻ Flash AS3 XML音乐播放器代码问题(无法播放音乐)(可追加悬赏)
以上报错应该是路径问题,
1 如果你的XML数据能正确读取,内
2 如果你的Path对应也正确,
那么请按以下容方式解决你的问题(你的XML里有汉字吧)
将你的
1 System.useCodePage = true; 去掉
2 将你的XML文件暂时修改为txt文本(直接修改扩展名(后缀名))
3 改为TXT文本后选择另存为,然后在下面选择格式 存为UTF-8编码保存
4 将TXT文本改为XML
❼ 求flash AS3音乐播放器代码
附件是我以前写的一个播放器,不过没有选择文件的选项,是默认加载内一个xml文件里的文件,
解压后容,playList/playlist.xml是音乐列表,xml格式如下
<root>
<songname="歌曲名1"artist="歌手名"path="歌曲路径"lrc="lrc歌词路径"></song>
<songname="歌曲名2"artist="歌手名"path="歌曲路径"lrc="lrc歌词路径"></song>
</root>
其中name/artist/path是必须的,lrc可以省略(省略时,会自动搜索歌曲同目录下同文件名的lrc文件,如果搜索到就会加载,如果没有找到,就会一片空白)
❽ 简单flash音乐播放器代码
你可以做两个按钮,一个播放(play_now),一个停止(stop_now),位置重叠。
bg_sound = new Sound();
bg_sound.loadSound("http://video.bbs.club.sohu.com/upload/forum_video/65/65234.mp3");
stop_now._visible = 0;
begin = 0;
play._status = false;
play_now.onPress = function() {
if (!play_status) {
bg_sound.start(begin,1);
play_status = true;
play_now._visible = 0;
stop_now._visible = 1;
}
};
stop_now.onPress = function() {
begin = 0;
bg_sound.stop();
play_status = false;
play_now._visible = 1;
stop_now._visible = 0;
};
bg_sound.onSoundComplete = function() {
play_status = false;
bg_sound.start(begin,1);
};
这样,你要的效果就实现了。
❾ 求as3制作的swf播放器源码一份
FLASH播放器源码,我这里有的。怎么给你呀?