Button to play a movie within a movie in ActionScript 3 Presentation

▼魔方 西西 提交于 2019-12-11 16:16:42

问题


I am making a Flash Presentation, so each animation is within a movie clip (movie_mc). This movie clip has a key frame holding each animation (4 keyframes/animated slides). The first movie instance/slide is called "slide1871". I labeled the first frame within this movie "slide1871". My buttons are on the main timeline.

I CANNOT get the code to work to link to play the first frame of movie slide1871 (within movie_mc). It either doesn't work at all, or it plays the 4 keyframes of the 4 slides I have within movie_mc.

This plays the 4 keyframes:

    btn1871.addEventListener(MouseEvent.CLICK, btn1);

    function btn1(event:MouseEvent):void
    {
        movie_mc.gotoAndPlay("slide1871");
    }

I've tried a bunch of other stuff that the button doesn't even work. Please help, hopefully this makes sense.

来源:https://stackoverflow.com/questions/16531900/button-to-play-a-movie-within-a-movie-in-actionscript-3-presentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!