闪光,无法到达影片剪辑

发布于 2024-07-15 01:56:08 字数 389 浏览 4 评论 0原文

我正在制作 Flash 分步指南。 我有一个问题。

有3层, 1 是脚本 2是隐形按钮 3是封面屏幕(mc)

,内封面屏幕。 在它自己的时间线上,它有一个动画。

,我想做的是; 当我滚动到隐形按钮时,我希望封面屏幕时间线播放并停止在某个帧,当滚动出来时,我希望它再次播放并开始。

我在隐形按钮上使用了这个。

上(翻转){ cover.gotoAndPlay("淡入"); } 上(推出){ cover.gotoAndPlay("淡出"); } fadein 和 fadeout 是 cover_mc 内的帧名称,

但 id 不起作用:S

知道为什么吗?

I am working on a flash step-by-step guide. and i have a problem.

There are 3 layers,
1 is scripts
2 is invisible button
3 is a cover screen(mc)

, inside cover screen. on its own timeline , it has an animation.

, what im trying to do is ; when i roll over the invisible button , i want the cover screen timeline to play and stop at a certain frame, when rolled out, i want it to play again and get to the beginning.

I used this on my invisible button.

on (rollOver){
cover.gotoAndPlay("fadein");
}
on (rollOut) {
cover.gotoAndPlay("fadeout");
}
fadein and fadeout are the frame names inside cover_mc

but id doeswnt work:S

any idea's why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独闯女儿国 2024-07-22 01:56:08

首先,尝试使用跟踪:)

on (rollOver){
    trace(cover);
    cover.gotoAndPlay("fadein");
} 

如果没有任何跟踪,那么您的翻转操作可能有问题。
它必须跟踪 [Object MovieClip](或类似的东西,我不太确定......自从我进行了一些 AS2 开发以来它已经存在了)

如果它跟踪 coorect,那么您的帧标签可能有问题。
也可能是你的 rollOver 函数不知道封面实例,请尝试 _root.cover.gotoAndPlay("fadein");

First of all, try to use trace :)

on (rollOver){
    trace(cover);
    cover.gotoAndPlay("fadein");
} 

if nothing traces than there's probably something wrong with your rollOver action.
It must trace [Object MovieClip] (or something like that, i'm not quite sure.. its ages since i did some AS2 development)

if it traces coorect, then you probably have a problem with your frame label.
it also could be that the cover instance is not know from your rollOver function, try _root.cover.gotoAndPlay("fadein");

冷夜 2024-07-22 01:56:08

如果我理解正确,代码位于按钮上,您希望父时间轴对滚动操作做出反应。

所以请尝试以下操作:

on (rollOver) {
   _parent.gotoAndPlay('fadein');
}

关键是 _parent,它显然会寻址按钮的父级。

If I understand correctly, the code is on the button and you want the parent timeline to react on roll actions.

so try the following:

on (rollOver) {
   _parent.gotoAndPlay('fadein');
}

The key thing is the _parent, which obviously will address the parent of the button.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文