主题:  山人,怎么制作闪吧这样的FLASH播放控制条?

瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#12003/12/3 2:18:27
请指教,有没有代码,是HTML还是ASP写的?



浮尘

职务:普通成员
等级:3
金币:7.0
发贴:1258
注册:2001/11/19 12:41:09
#22003/12/3 16:07:27
我只知道,用javascript可以:
Flash动画的总帧数可以用totalFrames属性来取得
Flash动画当前是否在播放可以用isPlaying()方法来检测
Flash动画可以用play()方法来播放 stop()方法来暂停 gotoFrame(n)方法来跳转

如何取得flash动画的当前帧数?



沉默是金

职务:普通成员
等级:6
金币:11.2
发贴:4357
注册:2004/2/18 11:17:25
#32003/12/3 16:18:47
currentframe


难人一个……

瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#42003/12/3 21:44:45
滑动条怎么做呢。



我佛山人

职务:版主
等级:4
金币:16.0
发贴:2269
注册:2002/8/7 15:09:27
#52003/12/4 1:45:45
setInterval 不断计算 currentFrame/totalFrames 以它的值来设置某一对象的宽度或相对位置



瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#62003/12/4 15:57:47
能提供闪吧播放器。滑动条的代码?
我的邮箱是suncai@126.com
谢谢不胜感激。



浮尘

职务:普通成员
等级:3
金币:7.0
发贴:1258
注册:2001/11/19 12:41:09
#72003/12/5 9:44:16
原来是用currentframe()方法来取得当前帧,在这里,属性与方法真让人晕。



浮尘

职务:普通成员
等级:3
金币:7.0
发贴:1258
注册:2001/11/19 12:41:09
#82003/12/5 9:56:52
再问一下山人:关于flash动画的播放状态,有事件驱动的方法吗?就象媒体播放器一样,当播放状态改变时,可以激活相应的事件一样?



瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#92003/12/5 13:15:33
我是学美术对编程还真有难度。那里有现成的代码?



瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#102003/12/6 16:28:18
我把代码都搬来了,怎么还没有用。
<html>
<head>

<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<META
content="China,Internet,software,3D,media,game,games,tools,fonts,font,中国,软件,免费,文章,教学,flash,动画,动漫,游戏,MTV,卡通"
name=KEYWORDS>
<title>flash 展示页</title>
<link rel=stylesheet href='style/style.css' type=text/css>
<script SRC="style"></script>
<SCRIPT>
function killErrors(){
return true
}
window.onerror = killErrors
</SCRIPT>
<script langiage='javascript' src='style/open_win.js'></script>
<script langiage='javascript' src='style/mouse_on_title.js'></script>
</SCRIPT>
<!-- begin-->
<SCRIPT language=javascript>
<!--
var old='';
function menu(name)
{
submenu=eval("submenu_"+name+".style";
if(old!=submenu)
{
if(old!='')
{
old.display='none';
}
submenu.display='block';
old=submenu;

}
else
{
submenu.display='none';
old='';
}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
var obj=MM_findObj(objStr);
if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}
//-->
</SCRIPT>



<link href="style/f8.css" rel="stylesheet" type="text/css">
<body background="http://www.flash8.net/images/index/bg_test.gif" leftmargin="0" topmargin="0">
<style>
#menu td{text-align:center;font-size:12px;padding-top:2px}
#menu a:link,a:visited{color:#000000;font-size:12px;text-decoration:none}
#menu a:hover{color:#6633FF;text-decoration:none}
#oTip{position:absolute;display:none;;background-color:#6633FF;top:79px;height:3px;font-size:0px}
</style>
<script>
function init() {
if(event.srcElement.tagName=="A" {
oTip.style.left=event.srcElement.parentElement.offsetLeft+(screen.width-800)/2
oTip.style.width=event.srcElement.parentElement.offsetWidth
oTip.style.display="inline"
}
}
function hide() {
oTip.style.display='none'
}
function loadit(){
menu.onmouseout=hide
menu.onmouseover=init
menu.onselectstart=new Function("return false"
}
</script>
<table border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr> <td bgcolor="#FFFFFF" align="center"> <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" name="flash8" width="550" height="400" id="flash8">
<param name=movie value=http://www.flash8.net/upload/2003/12/2/2003122152920602.swf> <param name=quality value=high>
<embed src="http://www.flash8.net/upload/2003/12/2/2003122152920602.swf" width="550" height="400" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" name="flash8" swliveconnect="true">
</embed>
</object> </td></tr> </table><br>
<table width="778" align="center" height="40" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" oncontextmenu="return false" onselectstart="return false" id="tb">
<tr> <td width="239"></td><td width="300" background="http://www.flash8.net/bg.gif" height="10" onmousedown="if(event.button==1)oJump(event.clientX)"><img src="http://www.flash8.net/posbar.gif" onmousedown=oDn() onmousemove=oMe() onmouseup=oMp() id=bar style="position:absolute; top:expression(tb.offsetTop);left:expression(tb.offsetLeft+239); left: 726px; top: 414px;"></td>
<td width="239"></td></tr>
<tr> <td align="center" id="FP" colspan="3"><img onclick="flash8('Rewind')" src="http://www.flash8.net/images/button/d2.gif" hoverSrc="http://www.flash8.net/images/button/h2.gif">
<img onclick="oQuick(oFlag=-1)" src="http://www.flash8.net/images/button/d1.gif" hoverSrc="http://www.flash8.net/images/button/h1.gif">
<img onclick="flash8('Play')" src="http://www.flash8.net/images/button/d3.gif" hoverSrc="http://www.flash8.net/images/button/h3.gif" onload="MM_controlShockwave('flash8','','Play')">
<img onclick="oQuick(oFlag=1)" src="http://www.flash8.net/images/button/d6.gif" hoverSrc="http://www.flash8.net/images/button/h6.gif">
<img onclick="pFlag?flash8('StopPlay'):flash8('Play');pFlag^=1" src="http://www.flash8.net/images/button/d4.gif" hoverSrc="http://www.flash8.net/images/button/h4.gif">
<img onclick="flash8('StopPlay')" src="http://www.flash8.net/images/button/d5.gif" hoverSrc="http://www.flash8.net/images/button/h5.gif">
<img src="http://www.flash8.net/images/button/d7.gif" hoverSrc="http://www.flash8.net/images/button/h7.gif" alt="Flash8播放器(web)1.5版本注意事项<br>1.部分flash动画采用单帧MC,本播放器不能控制播放.<br>2.对于非流式音乐制作的flash,快进等操作会影响观看<br>3.请等影片下载完控制效果最佳,<br>4.本浏览器由闪吧工作室,我佛山人开发首创.">
</td>
</tr> </table>



瘦石

职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2002/8/28 10:27:29
#112003/12/6 16:33:05
我佛山人你既然知道,为什么不告诉我们呢?
真没办法只能怪自己没本事了。