How to loop to a certain frame with an embedded video flv

Hi everyone,
I've searched the internet high and low but can't seem to find an answer to my problem. I have an flv video file that I've imported into Flash CS5 project as an embedded movie, because graphic and movie clip both produced still images. I want to embed the final product onto my website, and have the video autostart in the beginning, play all the way through, and then go back to frame 40 or so and loop continuosly from there. I've tried selecting the final frame and applying the instancename.gotoandplay (40); code but it isn't working. I read that this only works on keyframes, so I tried making the final frame a keyframe but because it is an flv file for some reason it isn't allowing me to do that. I'm a newbie, any help is appreciated.
Dom

A second option is to use a NetStream video play. This is a much more powerful and versatile way to control video.
Looping back to any point in the video is very easy.
All it takes to get started with NetSteam is to go to the Library panel top bar, in the far right is a tiny menu icon....click and open it, choose new video, actionscript controlled. A video (icon) will appear in the Library.
Drag the video unto the stage, position and set dimensions as needed. Give it an instance name of "video_screen".
All you need now is a little actionscript:
stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video_screen.attachVideo(ns);
/* Name of your video, with correct path, goes here */
ns.play("video1.flv");
the example path assumes that the video file is named "video1.flv" and is in the same folder as the Web page... edit both as needed.
Test at this point to insure it's working.
Now to loop add this to the actionscript:
ns.onStatus = function(info) {
  if(info.code == "NetStream.Play.Stop") {
  trace("Video complete")
    ns.seek(60);
  ns.play(); 
This example will trace "Video complete" at the end of the video and then "seek" back to 60 seconds into the video and "play" again from that point.
While it doesn't seek to a frame, you can figure out what time corresponds and use that.
If you are interested in trying this method, I'd suggest you set up a new, blank Flash doc and test on there. then exact size and placement is no issue. Just get the video playing and looping. Then implement in the real project.
Best wishes,
Adninjastrator

Similar Messages

  • Asc 2.0 crash with large embedded video file

    Hello,
    asc 2.0 crash with large embedded video files
    package{ 
      import flash.display.Sprite;
      public class Main extends Sprite{
        [Embed(source="video/myVideo.mp4", mimeType="application/octet-stream")]
        public var video:Class;
        public function Main(){
    on Windows with a small video, it compile fine, with a large video (525 Mo) the compiler crash
    internal error : java.lang.NullPointerException
            at com.adobe.flash.swf.SWF.addFrame(SWF.java:91)
            at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation
    .createFrames(SWFTarget.java:876)
            at com.adobe.flash.compiler.internal.targets.AppSWFTarget$AppFramesInfor
    mation.createFrames(AppSWFTarget.java:386)
            at com.adobe.flash.compiler.internal.targets.SWFTarget.build(SWFTarget.j
    ava:243)
            at com.adobe.flash.compiler.clients.MXMLC.buildSWFModel(MXMLC.java:674)
            at com.adobe.flash.compiler.clients.MXMLC.buildArtifact(MXMLC.java:660)
            at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:541)
            at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:230)
            at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:184)
            at com.adobe.flash.compiler.clients.MXMLC.staticMainNoExit(MXMLC.java:15
    6)
            at com.adobe.flash.compiler.clients.MXMLC.main(MXMLC.java:143)
    Thanks

    java.lang.NullPointerException
    i met this error every time if i compile a "BIG " project.(with 1G+  image resources).   And also ,if you  import 500+ images into Flash CS ...you  know ,its prefix is  "Adobe".
    i guess , it's  because somebody not like "BIG " thing.
    So..on  32bit windows  platform ..i  upgrade my JVM to  1.7 ,and..modified  -XSS value . it will help us ..but not 100% resolved.
    Finally ,i upgrade to  64bit platform ..this problem seems  gone.
    I think ,it's  because of the bad RAM Manager  of  JVM. on 32bit windows machine .it's only can manager 1024M ram .(such a stupid VM).   And  on 64bit platform ..JVM seems  to be d normal.

  • How do I freeze a certain frame?

    I want to freeze my movie at a frame so that I can put a caption at the bottom, how do I do it?

    Hey Matthew,
    I guess, what I was confused about is, the terminology "freeze".
    I thought "forsure" wanted to have his movie/clip freeze temporarily at a certain frame/still frame so he could overlay a title (or whatever) on that frame/still frame and then have the movie/clip continue to play from that point on.
    Now from what I'm gathering he just wants that paticular frame's duration lenghtened (by creating a Still frame) so he can overlay his title (or whatever) and place it where he wants.
    Sorry for reading more into the original question/post than was stated.
    Everyone has an Ooops moment now and then.
    eMac   Mac OS X (10.2.x)  

  • How do I select the Poster Frame when exporting to video?

    PP CS6
    I cannot find how to select the frame that I want to appear as the Poster Frame in the exported video.
    I can select it I can change one by right clicking an imported video OK but not the sequence!
    I've been through every menu I can find & even Lynda.com training!
    I'm sure that there must be a way but I'm blowed if I can find it!!

    There are two common meanings for the phrase "poster frame":
    A standalone image on disk (JPG etc) which is displayed by a player before the video is loaded - commonly used by video player apps on websites (YouTube etc), InDesign and PDF files, etc. so the video asset doesn't have to be opened in order for the viewer to see what they're about to watch - although the image is normally captured from the video it doesn't have to be.
    An image resource embedded into the XMP/ID3 data of a video or audio file which can sometimes be shown in the player, but is normally set because it  appears as the thumbnail image when viewing the files in Finder or Windows Explorer. It's not part of the content stream, it's in the file header. In MP3 files it's used to store album artwork.
    You can create standalone JPEG images from PP using the camera icon below the monitor and can semi-automate the export of a still image alongside your video using presets in Adobe Media Encoder, but there's no option in PP (or via Adobe Media Encoder) to specify the embedded poster image in a rendered media file. Several third-party apps can do it, either during render (Compressor / Squeeze) or after the fact (Quicktime Pro), but support for these embedded resources depends on the wrapper for the video file.
    The ability to set a 'poster frame' in the clip bins in PP is solely there to help you organize your project assets visually - for example if the imported footage starts from black, or if you want to choose a frame where the slate is visible - but your choice has no effect on the sequences at export and isn't written back into the original footage.

  • How do you darken a certain area with CS5?

    Is there a way to darken a certain area, such as hair, on a picture using Photoshop CS5?
    Thank you

    Or just select the hair and make the adjustments directly.  Some refer to this as "destructive" editing, but I prefer to consider it "constructive".
    You can see a pretty neat tutorial described in this thread, by the way:  http://forums.adobe.com/thread/653534
    -Noel

  • Re: How to display single I / P Frames with Dripfeed

    Thanx Steve and Jean Luc!
    I did use single MPEG-2 files to feed to the Player, but I couldn't save single P-Frames as they always need an I-Frame in a GOP (I used TMPEGenc to build I-Frames). If you know a Tool to do that, I would be
    grateful if tell me.
    I tryed to avoid filtering the Videofile for the picture_start_code as it seems scary to me (good job Jean Luc!). I don't know if I'll have the time to get it managed.
    Regards
    Olaf

    Welcome to the forum!
    As you don't mentioin your database version, I would say: http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/functions087.htm
    if you don't have that version, search the forum for STRAGG and you'll find plenty of examples.

  • How to visually (!) remove "sequence" frame with only one activity inside?

    Due to previous manipulations it could happen, that there are sequences (=visual sequences frame)
    which contain only one activity.
    These sequence frames are needless.
    Ok, I could remove them directly in source code.
    But is there a way to remove them visually WITHOUT removing then inner activity as well?
    Peter

    If I would have to do that, I will drag the activity outside the sequence and delete the sequence.

  • How do I Add a Picture Frame Around a Flash Video?

    I tried searching for this but "frame" has too many meanings. I have flv videos inserted in several web pages, but they look dull without some sort of fancy border or frame around them. Maybe a picture frame. Maybe the image of a flat screen TV surrounding the image. But how do I add the image "behind" the video so that the video sits perfectly inside the image, regardless of the monitor viewing the image.

    Do a google search for the IE PNG Fix javascript.  Some work better than others.  The one you had didn't work at all for PNG backgrounds in pre-IE7.
    Copy and Paste the following document into a new blank page and see how it looks in all the major browsers.  I changed your document type to XHTML transitional and replaced deprecated <div align> tags with inline CSS styles.  I also ran your Flash code through http://validifyer.com to make it XHTML compliant. 
    HTML Validator - http://validator.w3.org
    CSS Validator - http://jigsaw.w3.org/css-validator/
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Let It Rock</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <style type="text/css">
    body {
         background-image: url(images/bg_blank-01.gif);
         background-repeat: no-repeat;
         background-color: #363737;
    #flash {   
         width: 500px; /**video size 428 x 240**/
         height: 377px; /** +30px **/
         background: url(images/tv-ws-02b.png) no-repeat top;
         text-align: center;
         padding-top: 37px; /**adjust as needed**/
         margin: 0 auto; /**this is horizontally centered div**/
    </style>
    <script type="text/javascript">
    function MM_CheckFlashVersion(reqVerStr,msg){
      with(navigator){
        var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
        var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
        if (!isIE || !isWin){ 
          var flashVer = -1;
          if (plugins && plugins.length > 0){
            var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
            desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
            if (desc == "") flashVer = -1;
            else{
              var descArr = desc.split(" ");
              var tempArrMajor = descArr[2].split(".");
              var verMajor = tempArrMajor[0];
              var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
              var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
              flashVer =  parseFloat(verMajor + "." + verMinor);
          // WebTV has Flash Player 4 or lower -- too low for video
          else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
          var verArr = reqVerStr.split(",");
          var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
          if (flashVer < reqVer){
            if (confirm(msg))
              window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onload="MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');">
    <p> </p>
    <p style="text-align:center"><img src="logo-video.gif" alt="logo" width="608" height="129" /></p>
    <div id="flash">
    <!--[if !IE]> -->
      <object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="428" height="240">
    <!-- <![endif]-->
    <!--[if IE]>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=8,0,0,0" width="428" height="240">
        <param name="movie" value="FLVPlayer_Progressive.swf" />
    <!--><!-- http://Validifier.com -->
      </object>
    <!-- <![endif]-->
    </div>
    <p style="text-align: center"><a href="music-videos.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','back-button2.gif',1)"><img src="back-button1.gif" alt="back" name="Image3" width="93" height="57" border="0" id="Image3" /></a></p>
    <p style="text-align: center">
      <!--[if !IE]> -->
      <object type="application/x-shockwave-flash" data="footer.swf" width="720" height="159">
    <!-- <![endif]-->
    <!--[if IE]>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="720" height="159">
        <param name="movie" value="footer.swf" />
    <!--><!-- http://Validifier.com -->
      </object>
    <!-- <![endif]-->
    </p>
    </body>
    </html>
    Packing up and closing the office door now.  Good luck!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How can I sync 2 different iPhones with different music, videos, ringtones?

    My problem has already existed for quite a while, but I didn´t find a solution myself. Problem: My wife and I each have an iPhone 3G. I do the sync for both using iTunes. I start the PC with my account for syncing my iPhone and for my wife I start the PC with my wife´s account. But nevertheless the iTunes mediathek shows the same music etc. So both of us get one´s own and the partner´s music on the iphone. But we want to have different ones. Does anybody know a solution for that problem, so that each of us can have his/her own music, videos, ringtones etc.?????
    Thank you very much for your help!
    Regards
    Klaus

    Let me see if I understand you correctly. You are using two different users on your PC and syncing each phone on a single account? If that is the case, each one of the iTunes can have a different library for it. If you do that, then you can sync whatever music you want to each, or if for some reason you have the same library on each of the users, you can do as the other poster suggests and that is create different playlists for each user and only sync that playlist to each phone. Playlists are how I did the sync for my original phone, however since I got my 3G last year, I just sync my entire library. It isn't that big.

  • How to perfectly match a cutaway insert with the main video

    I have an hour-long clip of a performance, taken with the camera on a fixed tripod. I used a second camera to take closeups and shots from other angles. Now I would like to insert occasional cutaways from the second camera into the long clip from the first, while preserving (over, say, 10 seconds) perfect sync of the lips of the people speaking in the cutaway clip with the audio from the first clip. Seems like I will need to be able to precision slide the cutaway back and forth until it matches. Anyone have a good tip on how to do this?

    AppleMan1958 wrote:
    Have you tried the Precision Editor?
    Funny you should mention that...
    That is the ONE thing about IM09 I am having trouble grasping. I can't seem to get the hang of it. The short instructional video on Apple.com makes it look so easy, but I have never once gotten it to do what I want it to yet.
    I'll be trying it out again tonight with Pogue's "iMovie 09: The Missing Manual" in hand. But... if you have any "easy enough for a dummy to understand" advice for me...
    Deborah

  • How do I print off a frame from a utube video

    Hi. What's the easiest way to make a print of a utube video frame?

    Take a Screenshot of the desired area using Command-Shift-4
    see > https://support.apple.com/en-us/HT201361
    Open the .png file on your desktop with Preview and then Print the image in the Preview window.

  • How to set up ichat to work with gmail audio/video?

    Just messaging works fine, anyway to set it up gmail video to fully work via ichat? I'm using Lion. Thank you!

    Hi,
    It depends on your Buddy and what app they are using.
    iChat to iChat using Google names works in Video.
    Most Jabber apps use a Process called Jingle to connect Audio/Video chats
    Google has a a version of this that is used within the PC Web Brwoser Plug-in and the Intel Only Mac one and their Standalone App called GoogleTalk for PCs.
    This version of Jingle is also not that compatible with other Jabber apps.
    iChat uses a process called SIP (Session Initiation Protocol) to connect.
    This works with AIM and Trillian on a PC for the AIM Service as well as other iChat users.
    So...
    Your Google Buddies will have to be a Mac Buddy using iChat.
    For others you will have to resort to using your Browser and the Chat in Gmail Web Page or iGoogle.
    10:15 PM      Sunday; September 25, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Emailing a .swf file of a banner ad with an embeded video.

    Hey all,
    New to flash and building banner ads.  My problem is that I have made a banner ad that works when I preview it but when I try sending it to someone else via email all that shows up are 5 white circles in the middle that rotate flashing.  I thought it might have been something with the video so I tried sending the ad without the video and it still did the same thing.  Any suggestions?
    Thanks,
    Wes

    Basically I am sending a banner ad to a company for their website...When I send it (just attaching the .swf file to an email, not embedding within the email or anything special) the only thing they see is five white rings on a black stage.
    The only thing I need within the actionscript would be the banner ID for the receiver's website so they can link my ad to my website. For not I am leaving that out so there is nothing within actionscript.
    Thanks.

  • Delimited output of report that contains frames with Print Direction = 'Across'

    Hello all.
    On the header section of my report, I have a frame with Print Direction = 'Across'.
    On screen the output is :
    Value1 Value2 Value3 Value 4
    I want to export this report to excel, by using DELIMITED option. However the output I'm getting is :
    Value1
    Value2
    Value3
    Value4
    e.g., reports is not generating several columns (one for each field), but separate lines.
    Anyone knows how to accomplish delimited output of frames with Print Direction='Across' ?
    Thanks in Advance,
    Octavio

    If you're not generating both bitmap and delimited data from the same report, try using character mode output rather than "delimited". You can create the report to generate the appropriately delimited values to a text file. This will also give you greater control over aspects such as headings.
    Delimited output simply uses the structure of the layout. It doesn't take into account the across/down repeat directions except in the case of matrix.

  • How to loop through a collection of records which is return value of func.

    Hi all.
    Have this situation:
    - Stored function (member of pkg procedure) that returns a collection of records.
    Package Spec:
    =========
    type tipo_pvt is table of s08_plan_venta_totalizado_r % rowtype;
    rc_pvt tipo_pvt;
    (s08_plan_venta_totalizado_r is a view).
    Package Body:
    =========
    select col1
    ,col2
    ,etc
    bulk collect into rc_pvt
    from s08_lista_precio_producto_r lpp
    ,s03_producto_r prd
    where condition;
    return rc_pvt;
    Once collection is loaded and returned (i know it loads records). I just want to loop through every record on a pl/sql procedure on the client (forms6i procedure), but it gives me the error: ORA-06531 Reference to uninitialized collection:
    On the forms6i client procedure i have something like:
    procedure p_carga_plan_venta_inv (p_id_plan_venta in number) is
    v_contador integer;
    v_mensaje varchar2(10);
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt; (sk08_gestiona_plan_venta is package name)
    begin
         rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
         rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
                                            ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    -- previous statement dos not fail BUT THIS:
    message('rc_pvt.count= '||rc_pvt.count);pause;
    DOES FAIL
    end;
    So my question is : since i have already returned the collection, how come is not initialized....?
    Do i have to extend it first? In this case i have to return the number of records in the collection.....
    Look what happen when done from sqlplus:
    declare
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    begin
    rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    rc_pvt :=
    sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    ,null
    ,'m'
    ,'BS.F'
    ,to_date('28/02/2001','dd/mm/yyyy'));
    end;
    SQL> /
    Registros en la coleccion =6
    Procedimiento PL/SQL finalizado con éxito.
    SQL>
    I put a dbms_output.put_line on stored function .....
    Please help ....!
    Apparently it fails when calling the stored function:
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    I don't undestand since this function return the appropiate type. It seems the collection is empty, although having test that on sqlplus works ...
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    function f_genera_plan_venta_inv (p_id_lista_precio in number
    ,p_id_sucursal in number
    ,p_tipo_nivel_inv in varchar2
    ,p_co_unidad_monetaria in varchar2
    ,p_fe_fin_periodo in date) return tipo_pvt;
    for some reason it works on plus:
    SQL> declare
    2 rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    3 begin
    4 rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    5 rc_pvt :=
    6 sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    7 ,null
    8 ,'m'
    9 ,'BS.F'
    10 ,to_date('28/02/2001','dd/mm/yyyy'));
    11 --
    12 dbms_output.put_line('Registros en la coleccion = '||rc_pvt.count);
    13 for i in 1 .. rc_pvt.count loop
    14 --
    15 dbms_output.put_line('En '||i||rc_pvt(i).prd_co_producto);
    16 end loop;
    17 end;
    18 /
    Registros en la coleccion =6
    Registros en la coleccion = 6
    En 1PT.REF.PET.KO05
    En 2PT.REF.PET.LM15
    En 3PT.ALM.VDR.001
    En 4PT.REF.GRN.CN
    En 5PT.REF.GRN.KO
    En 6PT.REF.GRN.LM
    Procedimiento PL/SQL finalizado con éxito.
    Don't understand why it works on plus8 (same version that comes with 6i).
    Can't loop through records on forms...? WHY ...?
    Edited by: myluism on 02-abr-2012 14:40

    Forms 6i is an antique ... write your code to run on the server.
    Multiple examples of how to loop through an array loaded with bulk collect can be found here.
    http://www.morganslibrary.org/reference/array_processing.html
    The main library page is:
    http://www.morganslibrary.org/library.html

Maybe you are looking for