Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Default Movieclip playback trouble

    Hello,

    I have a scene which has a short piece of animation, synced with an audio clip. I want to have a button that when clicked, plays the audio and the animation, then loops back to the start, stops, then waits for the view to click the button again to viewer the animation/audio.

    I have a face, which has a mouth that is animated. I made this into a movie clip, so that I could then animate the head in the main timeline (head tilts, etc).

    I almost got things working correctly, but ran into two problems:

    1) The exported file would stop(); on frame 1 correctly, but the movieclip (face) would play it's animation without being told to.

    I then went into the movieclip and put a stop(); in frame 1.

    2) The exported file stops correctly on frame 1, but when I click play, the animation on the movieclip does not play, but the audio does (correctly)

    Question: How do I set up a scene to stop on frame 1, then play correctly from a button, which plays audio and a movieclip within the scene, all of which are triggered to play from one button click?

    Thank you for any help!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    The code " stop(); " in the MovieClip is preventing it from playing

    let we say that the instance name for the MovieClip be "myHead" and button has an instance name "myPlay" so the code would be

    myPlay.onPress = function(){
    _root.play(); // This will make the main timeline to play.
    _root.myHead.play(); This will make the movieclip to play.
    // The other code can come here.
    }

    At present, when click the button only timeline is told to play while the movieclip is still on frame 1, while the main timeline is playing.

    Hope this helps you.
    }

  4. #3

    Default

    This is great!

    Makes perfect sense. Thank you!

  5. #4

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial