Looping from end of clip to middle of clip

I'm a complete newbie regarding Flash development, but I've
been tasked with automating SWF creation from an AVI source (and
quickly!). Once the SWF is finished playing it should endlessly
loop from the last frame to about 5 seconds prior to the end frame.
Think of a speaking character, followed by some idle movements. We
want the idle movements to endlessly loop.
What I've done/need to do is:
1) Automate the creation of the AVI. Done.
2) Convert the AVI to SWF (using FFmpeg). Done.
3) Write Actionscript to detect the last frame, and then jump
to some other frame.
4) Merge the SWF with the actionscript and produce a new SWF
which is then placed on a website.
Being a newbie to Flash, I'm overwhelmed by the array of
options out there for something so simple in concept. I'm looking
for a command line solution so everything can be completely
automated. My questions are:
Can steps 3 & 4 be done with the FlexSDK?
What would the steps be to get something like this
accomplished?
Any help would be greatly appreciated. Thank you.

Ok, after a bunch of learning and experimenting I've come up
with the following code. It is the entirety of the program. It
loads the clip, and the clip will start playing, but I cannot
control it at all. stop() or gotoAndPlay() won't work. AddChild()
start the clip playing, but after that it just goes on its own. It
also appears that .currentFrame isn't accessible either, as it is
always zero.
There isn't a whole of lot of documentation regarding
embedded assets and how they can be controlled. Does anyone know if
its possible to control the frames/timeline of the embedded
movieclip? Thanks.

Similar Messages

  • For j in (select a, (select 1 from dual),c ) loop ..end loop;...... error

    declare
    begin
    for cur in (select (select 1 from dual) col from dual)
    loop
      null;
    end loop;
    end;in TOAD, OK, BUT IN FORM ERROR!
    Edited by: indoracle on Feb 23, 2012 2:38 AM
    Edited by: indoracle on Feb 23, 2012 2:40 AM

    A couple of things.
    First, please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
    Using the formating information in the Oracle Forms FAQ, it is always recommended that you put your code samples in the ... tags (use lower case "code") so your code is more readable.
    Second, the use of all capital letters is concidered YELLING. I'm sure you did not intend to YELL at anyone, so please only use capital letters when they are needed, not for everything. :)
    Third, what is your Forms Version? If you look at the *10 Commandments for the OTN Forums Member* you'll see that it is always best to give program version information. Depending on your Forms version, the subquery in your SQL statement may not be supported or it could simply be the Cursor For Loop construct [ FOR j IN ( SQL Statement)...] that is not supported. You may have to declare an explicit cursor and reference the explicit cursor in place of your SQL Statement.
    Forth, your FOR LOOP doesn't do anything!
    LOOPEND LOOP; There is nothing between LOOP and END LOOP. I am going to assume that this is intented and just a point of sanatizing your code because what happens in the loop is not relevant to the error.
    ERROR 103.. This is a Forms internal PL/SQL error; meaning the Forms PL/SQL engine can not parse your code. Again, this is probably because the subquery or cursor FOR loop with (SQL Statement versus explicit cursor) is not supported by your Forms version.
    Please, what is your Forms version and any other information that might be helpful.
    Craig...

  • Making simple Cross desolves at the end of still photo clips from my library. Not making a clean disolve beteen. Single frames from the previous clip are flashing half way through the desolve. Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

  • Slideshows ends prematurely in the middle of a transition?

    I have eight slides in a project so far and for some reason the slideshow ends prematurely in the middle of the transition from the sixth slide. any ideas? TIA jim

    Hi larryjo:
    You need to highlight the clip by clicking on it, then go to Edit / Split Video Clip. You will see a line where the clip has been split.
    Then drag your transition to that split line. It will work then.
    Might want to download these for some help...
    http://manuals.info.apple.com/en/iMovieAtAGlance.pdf
    http://manuals.info.apple.com/en/iMovieLesson1.pdf
    http://manuals.info.apple.com/en/iMovieLesson2.pdf
    http://manuals.info.apple.com/en/iMovieLesson3.pdf
    http://manuals.info.apple.com/en/iMovieLesson4.pdf
    http://manuals.info.apple.com/en/iMovieLesson5.pdf
    http://manuals.info.apple.com/en/iMovieLesson6.pdf
    http://manuals.info.apple.com/en/iMovieLesson7.pdf
    Sue

  • Split audio only from Voiceover audio clip

    Does anyone know how to split a voiceover audio clip? I need to split the clip because it is one minute long and there is a 5 second section in the middle of the clip I want to delete, but I want to keep the beginning and the ending. The clip trimmer help info. doe not help because it only informs about splitting video clips and not audio clips which are separated from the video clip.
    It is not the same as simply moving a second audio clip copy from another file and using the clip trimmer to make it work, since it was recorded directly into this project. Or is there a way to simply duplicate this voiceover audio clip? I have not found a way.

    resolved as Hardware problem with jack.
    solution: Take skewers and move inside in  jack.

  • Song loop from particular time

    Ok,
    I think this is something easy, but I dont know what to use.
    I got a song that I cut at 54.4 sec and after the first
    complete play I want this song to loop from 11.95 sec to the end!
    Is there a way using action script or using a movie clip with
    the song inside(cause I tried to put a gotoandplay to a particular
    frame at the end, but it begin the song from the beginning)
    thanks a lot in advance

    Use the Sound class. Let's say your song is named mysong.mp3.
    Once you import it into your library, select the icon in the
    library, and choose linkage (right click on the icon) and then
    click Export for ActionScript and Export in first frame. Name it
    something (for this example we'll name it mysong). Click OK.
    Then on your main timeline, enter the following code:
    my_sound = new Sound();
    my_sound.attachSound("mysong");
    my_sound.onSoundComplete = function() {
    // first parameter is the number of seconds the sound is
    offset, the second parameter is the number of loops
    my_sound.start(11.95, 99);
    When you want to start the sound the first time, add this to
    your frame or button code:
    my_sound.start();
    Study the other methods and properties of the Sound class.
    This gives you a lot more control of sounds than placing them on
    the timeline does.
    Good luck,
    Albee

  • Broken in Logic 9?: Reindex loops from external drive

    Adding loops from an external drive in Logic 9 does not seem to work any longer. It used to work great in L8. Anyone have similar experiences? Know any work arounds? Is it a bug? If it's a bug I'll file it with Apple.
    Previously in Logic 8 it was easy to reindex loops on an external drive:
    (1) Delete the loop indexes from root/Library/Audio/Apple Loops Index
    (2) Use Finder to locate the loops on the external
    (3) Drag the loop folders into the L8 media browser.
    (4) L8 asks if you want to copy the loops or use them from their present location. Select present location intsead of copy locally.
    (5) L8 takes 5-20 minutes to build index of loops from external drive
    I have tried this procedure several times in L9 without success. Instead I get the following:
    (1) Delete the loop indexes from root/Library/Audio/Apple Loops
    (2) Use Finder to locate the loops on the external
    (3) Drag the loop folders into the L8 media browser.
    (4) L9 ask for my admin password.
    (5) Enter my password
    (6) I'm NOT asked if I want to copy loops locally or use them in their present location. Instead a reindex progress dialog comes up for 2 seconds then goes away.
    (7) In the end nothing happened. No loops copied, indexed, or anything
    There is only one way I managed to get loops into L9 but it is exactly what I'm NOT looking for:
    (1) In the folder with all my loops spotlight search ".CAF" (In this case want to reindex Apple content which is all CAF)
    (2) Make sure to click "show more" at the bottom of the search results.
    (3) Drag the search results to the loop browser.
    (4) L9 indexes them all right, AND also copies them to my user library! All 30 GBs worth. Definitely not what I want.
    In the end, I had to reinstall the Loops from the DVDs and specify an external location for them. (This whole mess got started when I tried to move the GarageBand and iLife loops to an external drive. The installer does not let you specify a location for them.)
    Just so you know I've done some homework:
    I've scoured other Logic forums and found these relevant threads that in the end did not solve the issue. They mostly seem to refer to Logic 8 which does not have this issue.
    @ LUG
    Thread 1
    @ Logic Pro Help
    Thread 1
    Thread 2
    Thread 3 this fellow seems to have a similar problem as I. He drags folders into the loop browser but nothing happens.
    @ Apple Discussions
    Thread 1
    Thread 2

    I just installed LP9 and all my loops and samples are on external drives. The drag and drop onto the browser method worked fine and I WAS given the option to move the files or not. The only exception to the above is Ultrabeat samples. They seem to want to be on the System drive.
    RW

  • Repeated Frames at the end of clips

    I have a MacBook Pro with the adobe premiere pro cc 14, but I noticed this problem is CS6 also. The problem is this: Say I have two clips in the timeline that are connected (Clip A, Clip B).
    If I alter Clip B in anyway (change scale or position, or simply remove it from the timeline) the first frame of Clip B will remain at the end of Clip A. So, when I execute the playback function I can see a quick flash of Clip B at the end of Clip A.
    Here's what I've tried:
    I tried rendering the files--didn't work.
    I tried simply trimming the repeated frame off--didn't work.
    Here's what did work.
    There's a straight line that goes through every clip, I don't know what its called but I think it has something to do with the speed, I would drag that from say 100 to 96.55. The video would have the red render bar above it, and the repeated frame would disappear.
    HOWEVER, in my current project  I have serval repeated frames in a blank space where there are video clips, so the previous method can not work.
    What the heck!?!?!
    Thanks

    What are these clip exactly
    Please post a screendump in treeview.
    MediaInfo Mac 

  • Passing a variable from a movie clip to the main timeline

    Hi,
    I'm having trouble passing a variable from a movie clip in my
    flash file to the main timeline.
    I have a movieclip with the instance name IntroNav which
    contains several buttons. Clicking a button sets the variable
    "page" to a specific name, i.e. page = "home"
    However, outside of the movie clip, on the main timeline I am
    unable to call this variable, and "page" seems to have no value.
    Can anyone tell me why this is and how to solve it?
    Thanks

    Umm, yes ... declare your variables correctly.
    var page:String = new String(); //proper complete
    var page:String; //strict typing
    var page:String = "home"; //stirct typing with value
    declaration
    Do not declare the variable in your buttons, you would have
    to do so in every button and be constantly resetting the value.
    Declare it on the main timeline at the lowest level. You do not
    need to use it as a _global, you just need to resolve your path
    issues. You can 'set' the variable value from a button, without any
    problem, but you have to call to the variable correctly.
    You do not 'name' a variable as "_root.page" , the '_root'
    refers to the lowest level of the SWF or the main timeline, as does
    a call to ' _level0' (that's a zero). If the variable is declared
    on the main timeline, and you're calling from the MC/button or
    anywhere you can refer to the variable by calling to it by
    the proper path of '_root.page'
    To set the variable from any of your button/MC instances
    call:
    _root.page = "value"; OR _level0.page = "value";
    But you must have the varibale declared on the main timeline,
    and only once and the playhead should be stopped or it will reset
    the value to the default upon looping.

  • How to stop while loop from looping

    Hi, need a little help in the respect to while loops. Basically i have a while loop within an while loop within another while. So what i want to do is run the program within the outer while loop. The problem is that when i start the program it runs once, which is ok, but its the runs again and again and again. I need it to only run once untill i press the inner while loop bolean to set it going and to stop and to restart, but i can not manage to keep the inner loop from initerating. I just wonder if its a problem with the field point? because i know it works, but using a different example. Any help greatly appreciated.
    Thanks Stuart
    Attachments:
    examplealib.llb ‏199 KB

    Use case structures around your middle and inner loops tied to the booleans you want to control the loops. Inside each loop, use a local variable of the boolean tied to the continue terminal of the loop.
    You need to use local variables because an input to a loop (wired from outside the loop) is read only on the first loop iteration. Any subsequent change to a control terminal outside of the loop is not seen by the loop.
    To create a local variable, on the diagram, right click on the terminal of interest, then select Create >> Local Variable. Then right click on the local variable and select Change to Read.
    P.S. You know your stop button is wired to an empty case and doesn't do anything.

  • Video freezes at the end of clips.

    Hi, I have encountered strange glitch. I have put many short clips into project, with straight cut, no transitions between. Some of clips doesn't follow seamlessly - video freezes for about 1sec at the very end of clip but I can hear audio from following clip and after that 1sec freeze video continues with audio. Therefore I "miss" that 1sec of video from the beginning of the clip. It happens only with some of clips and sometime I can sort it out with slight trimming. But mostly cannot.
    What am I doing wrong there?

    If you go into iMovie Preferences, make sure you select "Display Time Codes" as hh:mm:ss:frames.
    By default, iMovie edits to the nearest 10th of a second, but by checking this parameter in preferences, you can edit to the nearest frame.

  • HELP... creating loops from full length songs

    Hi there... I am an ex-ACID user and am trying to use logic express in the same fashion. I have figured out how to do basic editing functions, but I am not sure how to create a loop from a portion of a song i have edited. Ex: if I clip 1 Eight count from a song and want to make it a loop, how do I get logic to know that it is 8 beats? That way I can just drop it onto a track and it will conform to the full project's BPM rate. Any help would be sooooooo helpful!

    I have not done this, but you should look up in the reference manual about creating Apple Loops - that's the format that will actually change tempo with the song's BPM, etc.
    If you don't need to change tempo, then you can just drag the top right corner, and it will make loops automatically.

  • Snapping cursor line to end of clips

    I recently upgraded from 1.5 to 3 and for some reason by default the play line thing doesnt snap to the end of clips automatically. Does anyone know how to find the option that will allow that line, i dont know what its called, the line that scrolls past the clips when you hit play, how to make it so that when you click hold and move that line it automatically snaps to the end of the clip when it passes it?

    Maybe you need to turn on the relevant Snapping option, Snap to Clip. They appear in a drop down menu when you right click on the Timeline at the bottom of the screen.

  • Timeline removing start and end of clips

    Apologies if this has been posted before - got through 20 of the 116 pages to look for it!
    iMovie 6.0.1 appears to have a bug when dragging clips from clip pane into timeline. Start and end of clip are cut off. Same occurs when adding transition in timeline. This does not happen when working in clip viewer rather than timeline, though there is still a small loss when adding transitions (this probably accounts for a previous posting complaining about loss of audio synch when adding transitions).
    iMac, PowerMac6,1 PPC 1GHz   Mac OS X (10.4.6)  

    That reminds me of a slightly different version:
    SQL> with t as (
      2  select 201050 yw from dual union
      3  select 201051 from dual union
      4  select 201052 from dual union
      5  select 201101 from dual union
      6  select 201102 from dual
      7  )
      8  --
      9  --
    10  --
    11  select trunc(trunc(to_date(substr(yw, 1,4), 'yyyy'), 'y')
    12                            + (substr(yw, 5,2)
    13                              + (case
    14                                   when to_char(trunc(to_date(substr(yw, 1,4), 'yyyy'),'y'),'iw') ='01'
    15                                   then -1
    16                                   else 0
    17                                 end
    18                                 )
    19                              )*7
    20              , 'iw'
    21              )
    22  from    t;
    TRUNC(TRUN
    13-12-2010
    20-12-2010
    27-12-2010
    03-01-2011
    10-01-2011
    5 rows selected.
    Found that one here about a year ago: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:509645007430#tom69446106735028
    Needed to use that approach as well to deal with yyyymm format one application I worked on then.

  • Start FOR loop from specified iteration number

    Hi,
    I want to start a Foor loop from 2 and end it to 5. Meaning that any process inside the foor loop must start from second loop and end till 5th loop. This is how my question would like in Matlab.
    for i=2:5
    Help is appreciated. 
    Solved!
    Go to Solution.

    NapDynamite wrote:
    This is what I'm trying to do
    p=zeros(4,4);
    for i=2:4
    for j=2:4
    p(i,j)=i+j
    end
    end
    result should be
    p =
    0 0 0 0
    0 4 5 6
    0 5 6 7
    0 6 7 8
    You should be aware that in LabVIEW the first element has index 0, while e.g. in matlab the first element has index 1
    To get the above result, here's what you could do. (your elements are symmetric. If they are not, you might need to swap the index inputs, depending on what you actually want)
    Here's what you could do... (initialize array replaces the "zeroes" function.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MakeArray.png ‏9 KB

Maybe you are looking for