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

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.

Answers


Need Your Help

Can't restart apache (98)Address already in use, even after I kill process

process apache kill

I'm unable to (re)start apache because port 80 is already in use:

KVO causes loop if observers to other objects are not removed

objective-c cocoa key-value-observing nstextfield

I have observers added to several NSTextFields to monitor changes in each text field. The key of each text field is configured in Interface Builder at Bindings -> Value -> Model Key Path. Whe...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.