Home  |  Free Templates (NEW)  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Link Exchange  |  Contact Us
Tutorials
Photoshop Tutorials
Flash Tutorials
3D Graphics Tutorials
Partners
Free Website Templates
Flash Templates Today
Web Sites
Free Shape
Photoshop Tutorials
Flash Tutorials
Illustrator Tutorials
HTML Tutorials
Flash Templates
Free Web Templates
Free Flash Templates
Web Templates Forum
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Free Website Templates: 123456789101112131415
Preview & Download Preview & Download Preview & Download

Welcome To NewFreeTemplates.com Flash Tutorials Area - Add Play, Stop, Fast Forward and Rewind buttons to external video

Control how external movies play with stop and play buttons

Download source project t1065.zip (2 kb)

  1. Launch Flash Designer and set frame size at 300 x 300 (Frame > Frame Size)
  2. Change frame to stop (Frame > Frame Delay and check Stop)
  3. Choose "Insert" > "External SWF file"
  4. Type the path to your video file or use the test file "http://www.flashdesignerzone.com/testvideo.swf"
  5. Choose Item > Placement Properties, change Item Name to "mymovie" and check ActionScript Target, click OK
  6. Choose Frame > Insert from Gallery and choose Play, repeat the same and insert Stop button.
  7. Select Play button and choose Item > Actions > OnClick
  8. Check ActionScript and type the code:

    mymovie.play();

  9. Select Stop button and choose Item > Actions > OnClick
  10. Check ActionScript and type the code:

    mymovie.stop();

  11. Hit F9 for preview

Adding Fast Forward and Rewind buttons

Download source project t1065a.zip (2 kb)

  1. Choose Frame > Insert from Gallery and choose Forward, repeat the same and insert Rewind button.
  2. Select Forward button and choose Item > Actions > OnClick
  3. Check ActionScript and type the code:

    movieforward=1;

  4. Select Forward button and choose Item > Actions > OnUp
  5. Check ActionScript and type the code:

    movieforward=0;

  6. Select Rewind button and choose Item > Actions > OnClick
  7. Check ActionScript and type the code:

    movieforward=-1;

  8. Select Forward button and choose Item > Actions > OnUp
  9. Check ActionScript and type the code:

    movieforward=0;

  10. Choose Frame > ActionScript and type the code to handle rewind or fast forward flags:

    function moviecontrol() {
    if(movieforward==-1) mymovie.gotoAndPlay(mymovie._currentframe-5);
    if(movieforward==1) mymovie.gotoAndPlay(mymovie._currentframe+5);
    }
    
    movieforward=0;
    setInterval(moviecontrol,10);
    
  11. Hit F9 for preview
Advertisements
 
Home  |  Free Templates  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Contact Us
All Rights Reserved 2007-2008 by NewFreeTemplates.com