2 Replies Latest reply on Jun 26, 2009 11:57 AM by AttaBoy2

    Video question

    Amazing Rando

      I have a flash video that I have posted to a site and would like to select a screenshot to be the default image before the user hits play. Can someone tell me how to do this or point me in the direction of a tutorial?



        • 1. Re: Video question
          AttaBoy2 Level 4

          I usually use AfterEffects for that but if you don't have video editing software you can take screenshots with Actionscript


          view output of code here: http://www.cybermountainwebservices.com/Screenshot/

          every time you click on Snapshot a new screenshot is taken I've make then dragable so just drag and drop.  Now all I need to know is how to export the images.



          heres the code:


                  this.holder.mcSnapshot.addEventListener(MouseEvent.CLICK, gotoSnapshot);
                  function gotoSnapshot(e:MouseEvent){
                  var canvas:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0xffffffff);
                  var bmp:Bitmap = new Bitmap(canvas);
                  var imgHolder:Sprite = new Sprite();
                  imgHolder.width = stage.stageWidth/4;
                  imgHolder.height = stage.stageHeight/4;
                  imgHolder.addEventListener(MouseEvent.MOUSE_DOWN, drag);
                  imgHolder.addEventListener(MouseEvent.MOUSE_UP, drop);
                  imgHolder.buttonMode = true;
                  function drag(e:MouseEvent):void {
                      function drop(e:MouseEvent):void {