为什么我的影片剪辑实例为空?
我的场景中有 2 个电影剪辑,一个是查理·布朗跑步,另一个是露西举着足球。
影片剪辑实例被恰当地命名为:lucyLifting 和 charlieRunning。
当我到达第 75 帧时,我运行以下代码:
stop();
trace(lucyLifting);
trace(charlieRunning);
lucyLifing.stop();
charlieRunning.stop();
并得到以下输出:
[object MovieClip]
null
为什么它不能识别我的第二个影片剪辑实例?这非常令人沮丧......
提前谢谢您。
I have 2 movie clips in my scene, one is charlie brown running and another is lucy lifting a football.
The movie clip instances are aptly named: lucyLifting and charlieRunning.
When I get to frame 75, I run the following code:
stop();
trace(lucyLifting);
trace(charlieRunning);
lucyLifing.stop();
charlieRunning.stop();
and I get the following output:
[object MovieClip]
null
Why isn't it recognizing my second movie clip instance? This is very frustrating....
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的两个影片剪辑都应跨越整个时间线。他们有吗? charlieRunning 中有多个关键帧吗?确保每个关键帧都有一个实例名称。否则,您需要发布您的 FLA,以便我们为您提供帮助。
Both of your movieclips should span the entire timeline. Do they? Do you have multiple keyframes in charlieRunning? Make sure that it has an instance name at each keyframe. Otherwise, you'll need to post your FLA so we can help you.