主题:  求助 急!急!!急!!!

miss7778

职务:普通成员
等级:1
金币:0.0
发贴:1
#12003/1/9 16:47:49
我要将一个超大的文本放在director里,并且要以拉滚动条的方式
如何让它能快一些?

director里的文本太慢了!!



D计划-混沌

职务:管理员
等级:6
金币:15.2
发贴:3528
#22003/1/10 1:38:08
把防锯齿去掉试试,属性面板里找



紫斑风铃

职务:普通成员
等级:1
金币:0.0
发贴:118
#32003/1/10 8:12:33
O~~



我本無情

职务:普通成员
等级:2
金币:4.0
发贴:590
#42003/1/10 10:04:37
你可以试一试。
on beginsprite me
mySprite=sprite(me.spritenum)
pnewRect1=mySprite.member.rect
pWidth=pnewRect1.width
-- blankimage=image(mySprite.pnewRect.width,mySprite.pnewRect.height,8)
-- mySprite.member.image=blankimage
ptick=the milliseconds
end

on prepareframe me
if the rollover=me.spritenum then exit

if the milliseconds-ptick
if pnewRect1.left>=pSourceMember.width/2 then
pnewRect1=mySprite.member.rect
temp=pWidth-pnewRect1.width
end if

pnewRect1=pnewRect1.offset(pOffset,0)
--mySprite.member.image=blankimage
mySprite.member.image.copypixels(pSourceMember.image,mysprite.member.rect,pnewRect1)
ptick=the milliseconds
end

on getPropertyDescriptionList me
if not the currentSpriteNum then exit
return \
[ \
#pSourceMember: \
[ \
#comment: "Source member for offset", \
#format: #member, \
#default: "" \
],\
#pInterval: \
[ \
#comment: "Interval time (milliseconds)", \
#format: #integer, \
#default: 100 \
],\
#pOffset: \
[ \
#comment: "offset per interval", \
#format: #integer, \
#default: 1 \
]\
]
end getPropertyDescriptionList