how to make a start/stop button for a swf to play in dreamweaver
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: how to make a start/stop button for a swf to play in dreamweaver

  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    89

    how to make a start/stop button for a swf to play in dreamweaver

    I have a video that I created in Adobe Premiere and exported as a avi then compressed to a swf in Sorenson Sqeeze. My problem is that I'm trying to figure out a way to add some sort of start/stop control button to the video when I bring it into Dreamweaver. Since it's a swf (published file) I can't bring it into Flash to modify it. As it is right now, the movie clip (swf) plays as soon as you open the web page. So, my question is: Is there a way to control the clip with a start/stop button?

    Thanks,
    Mike
    Last edited by Mikester311; 07-03-2003 at 12:59 AM.

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    89
    ^bump^

  3. #3
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    you can import your swf file into flash, and make a movieclip out of it, then make a button that will make that moviecip stop() or play().

    post back if you need more details.

    -myk

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    89
    Yes, I need more details.. I tried to import the swf as a mc, but it comes in as blank frames. Also, I'm learning but I'm pretty new to actionscript, so can you help with the start/stop code?

    Thanks a million!
    Mike

  5. #5
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    to import, start a new flash movie..
    Open your library and create a new symbol. Then, chose File->Import. Select the swf you want to import.. It should show up in the new MC you made.. If it is several frames, you may need to add frames to the new MC to accomodate the size...

    Anyway after you have done this, then you can place an instance of this new MC containing the old swf onstage, giving it an instance name.. lets say myMovie for the sake of this example.

    Now, for your buttons, just use the approriate code for what you want..
    Code:
    on(release) {
      _root.myMovie.play();
    }
    //and for the stop button
    on(release) {
       _root.myMovei.stop();
    }
    one more thing, you'll need to add one blank frame to the beginning of the MC containing the swf file, and add a stop() action to the first frame.


    hope this helps

    -myk

  6. #6
    Member
    Join Date
    Apr 2003
    Posts
    89
    Great! Thanks! I'll give it a shot.

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Posts
    150

    You might try this one

    http://www.flashkit.com/movies/Inter...dex.php?chk=no

    There is a movie that adds movies. Haven't tried it yet.
    The possibilities are endless.
    <http://www.deenalarsen.net>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com