#12001/10/12 18:12:14
我设计了一个flash播放行为,在最后的返回参数列表中有问题请帮我检查修改一下:
property phuakuai,pjindu,phuacao
property pflash,pflashcount
on beginsprite me
phuakuai=me.spritenum
pflashcount=sprite(pflash).member.framecount ---取得flash演员的长度
end
on exitframe me
myflash(me) ---调用自定义事件
end
on myflash me ---自定义事件
f=sprite(phuacao).width --滑动槽宽度,“phuakuai”是滑动槽精灵
j=pflashcount/(f+0.0000) --每一个滑动距离(象素)所代表的帧数
t=sprite(phuakuai).top ---滑动块顶
b=sprite(phuakuai).bottom ---滑动块底
r=sprite(phuacao).right ---滑动槽右边
l=sprite(phuacao).left ---滑动槽左边
mv=the mousev
mh=the mouseh
w=(mh-l)*j --播放头要到达的帧号
k=(sprite(pflash).frame)*(f/(pflashcount+0.0000))+l ---滑动块滑动距离
if (k>l+14) and (k sprite(phuakuai).loch=k ---滑动块坐标
sprite(pjindu).right=k ---进度显示长度显示
end if
if the mousedown then ---如果鼠标依然按下
if (mv>=t) and (mv<=b) and (w<=pflashcount) and (w>=1) then
sprite(pjindu).right=mh ---进度条右边移到到鼠标单击的水平坐标
sprite(phuakuai).loch=mh ---滑动块水平坐标移到到鼠标单击的水平坐标
sprite(pflash).gotoframe(w) --跳转到滑动块所在位置的相应帧号
sprite(pflash).play() ---继续播放flash演员
end if
end if
end
on getpropertydescriptionlist (me)
list = [:]
addprop list,#pflash,[#comment:"flash角色:",#format:#integer,\
#default:1,\
#range:[#min: 1,#max: 200]]
addprop list,#pjindu,[#comment:"进度显示角色:",#format: #integer, \
#default: 0, \
#range: [(me.SpriteNum)-1,(me.SpriteNum)-2,(me.SpriteNum)-3]]
addprop list,#phuacao,[#comment:"滑动槽角色:",#format: #integer, \
#default: 0, \
#range: [(me.SpriteNum)-1,(me.SpriteNum)-2,(me.SpriteNum)-3]]
return list
end
执行后警告:警告:script error:property not found
#spritenum
这是为何?请大侠们帮忙查一下!!!
编辑历史:[这消息被5D大叔编辑过(编辑时间2001-10-12 18:25:35)]