主题:  调试

掘金者

职务:普通成员
等级:1
金币:0.0
发贴:49
#12002/7/29 10:32:00
我今天试了一下:
on mouseup me
(the stage).rect=(the desktoprectlist)[1]
( the stage).drawrect=(the desktoprectlist)[1]
end
做的过程的时候,没有任何出错信息。但是当我发布成exe,点击按钮运行的时候,却提示脚本有错。
恢复窗口原始尺寸的时候,出现:script error:variable used before assigned a value
(the stage).drawrect=rect(0,0,x,?y)
我想这两段码应该是加在按钮上的。
global x ,y
y=the stagebottom- the stagetop
x=the stagerighe- the stageleft
end 这段代码应该是放在整个影片的脚本中。不知道是哪里有错误。



D计划-混沌

职务:管理员
等级:6
金币:15.2
发贴:3528
#22002/7/31 12:31:03
因该有
on preparemovie
global x ,y
y=the stagebottom- the stagetop
x=the stagerighe- the stageleft
end
也要看具体的情况