如何在弹起状态下显示 SimpleButton 的覆盖状态
我有一个带有 As3 中的按钮对象的菜单。我想显示用户所在的页面,为此我必须在 Flash 加载时显示按钮的上方状态(即 mc)。我正在将页面参数发送到闪存。我只需要在特定按钮内播放影片剪辑。
寻找类似的东西:
btn1.m1.gotoAndPlay(1); or btn1.m1.play();
I have a menu with button objects in As3. I want to display the page where user is and for this I must show buttons' over state (which is mc) when flash loads. I'm sending the page parameter to flash. I just need to play the movie clip inside the specific button.
Looking for something like:
btn1.m1.gotoAndPlay(1); or btn1.m1.play();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
编辑:
...哦,抱歉,我以为您在谈论通用按钮,但您正在使用 SimpleButton 类:
http://livedocs.adobe.com/flash/9.0/ ActionScriptLangRefV3/flash/display/SimpleButton.html
默认情况下,该类应该播放您放入其中的任何 movieClip,但访问它的子级则是另一回事,请看一下:
http://www.xtyler.com/code/254
try:
EDIT:
...oh, sorry I thought you where talking about a generic button but you are using SimpleButton class:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html
the class by default should play any movieClips you put in there, but accessing it's childs it's a different story, take a look into this:
http://www.xtyler.com/code/254
好吧 Adobe 的文档帮助解决了这个问题。我花了一天时间才弄清楚,但最终我找到了合适的代码。它可能不是最好的,但它确实有效:
Okay Adobe's documentation helped to solve the problem. It toked one day to figure it out but finally I found the appropriate code. It's not maybe the best but it does the trick.: