To start and stop a movie

Posted on 2004-11-29
Last Modified: 2010-04-07
I need to be able to start and stop a movie in flash. Whats the action script for doing that.
Question by:vdhant
    LVL 2

    Accepted Solution


    its really quite simple..

    on your stage create some buttons..  you might want to put them on a different layer.. and insert a keyframe at the last frame of your stage..

    after you have created your buttons (right click - convert to symbol - button)

    click on your play button go to the actions panel and add the following code

    on (release) {

    click on the stop button and go to actions and add the following code

    on (release) {

    this will allow after clicking and releasing your buttons to stop or play the movies respectively..


    LVL 2

    Author Comment

    thanks merlin
    great answer and thanks for the quick response.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now