简体   繁体   English

Flash符号按钮gotoAndPlay

[英]Flash Symbol Button gotoAndPlay

I'm super new to this and don't really know what I'm doing. 我对此很陌生,真的不知道自己在做什么。 I have a symbol button that, when rolled over I want to go to a frame and play this is what I have and it doesn't do anything. 我有一个符号按钮,当滑过它时,我想转到框架并播放,这是我所拥有的,它什么也没做。

import flash.events.MouseEvent;
btnBasic.addEventListener(MouseEvent.MOUSE_OVER, txtDisplay);

function txtDisplay(evt:MouseEvent):void
{
gotoAndPlay(69);
}

Thank you in advance. 先感谢您。

Sounds like a scope problem. 听起来像是示波器问题。 If you want to go to and play from frame 69 of your btnBasic button you can change the code in the listener to "btnBasic.gotoAndPlay(69)". 如果要转到btnBasic按钮的第69帧并从中播放,可以将侦听器中的代码更改为“ btnBasic.gotoAndPlay(69)”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM