作业帮 > 综合 > 作业

帮忙看一下这段语句的含义,想改可以吗?

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/08/13 19:58:40
帮忙看一下这段语句的含义,想改可以吗?
on (dragOver,keyPress "") {
// Locate the screen that is the target of the behavior
var screen = null;
var target = this;
while ((screen == null) && (target = undefined) && (target = null)) {
if (target instanceof mx.screens.Screen) {
screen = target;
} else {
target = target._parent;
}
}
// If there's a Slide to apply the behavior to,then do so
if (screen instanceof mx.screens.Slide) {
screen.rootSlide.gotoFirstSlide();
}
}
on (release) {
// Locate the screen that is the target of the behavior
var screen = null;
var target = this;
while((screen == null) && (target = undefined) && (target = null))
{
if(target instanceof mx.screens.Screen)
{
screen = target;
}
else
{
target = target._parent;
}
}
// If there's a Slide to apply the behavior to,then do so
if(screen instanceof mx.screens.Slide)
{
screen.rootSlide.currentSlide.gotoPreviousSlide();
}
}
这段语句基本是实现在Flash 8中的幻灯片跳转到前一幻灯片的效果,但现在跳转的结果是跳转到了前一幻灯片的最后一帧,我现在需要跳转到前一幻灯片的第一帧,怎么修改才行?急用!注:是幻灯片模板中的按钮.
帮忙看一下这段语句的含义,想改可以吗?
这个程序啊你找高手