Play multiple MovieClips videos in sequence

Hi,
I've multiple videos stored as MovieClip objects and would like to merge them into a single MovieClip video object in order to play all of them in sequence (so that a user thinks it's a single longer video). Is it possible?
Thanks a lot!

               yes very possible.
there are a few ways to do this, but this is the route i would go.
if you are good with OOP let me know and i will create the class's for you otherwise, also is there sound involved?
var index:int=0
var getTo:int=0
var currentClipInPlay:MovieClip
var clipsToPlay[LoaderA,LoaderB,LoaderC,LoaderD]   //assuming these are your loaders of the movieCLips
function beginPlaying(start:,finish:int){
     var startPlayingMovie:MovieClip=turnInToMc(start)
                        index=start
                         getTo=endValue
                        assumePlay( startPlayingMovie)
protected function assumePlay(starting:MovieClip){
          if(index<getTo){
               addChild(starting)
               resume()
          }else{
               pause()
function turnInToMc(index):MovieCLip{
Loader(clipsToPlay[index]).content as MovieClip
function pause(){
mc:MovieCLip= turnInToMc(index).stop()
    removeEventListener(Event.ENTER_FRAME,onFrame)
currentClipInPlay=null
function resume(){
currentClipInPlay=turnInToMc(index)
if(!hasEventListener(Event.ENTER_FRAME)){
     addEventListener(Event.ENTER_FRAME,onFrame)
function onFrame(e:Event){
  var tFrames=currentClipInPlay.totalFrames
      if((currentClipInPlay.currentFrames==tFrames){
               stopAndPlayNext(currentClipInPlay)
     }else{
          currentClipInPlay.nextFrame()
function stopAndPlayNext(mc:MovieClip){
pause()  
index++
assumePlay(turnInToMc(index))
removeChild(mc)
mc.gotoAndStop(0)
I'll explain when i get to work what this is

Similar Messages

  • Playing multiple music videos.

    After a music video finishes playing the iPhone goes back to the menu where I can pick a video to play.
    I'd really like to find a way to have the phone play all the videos in a given play list like it does for music instead of having to manually select the next one.
    Is there any way to do this?
    thanks,
    Bill

    Hi Ian, thanks for that, I bought AirFoil, seemed to be just what I needed. Its a great piece of kit, I can even use my iPhone as a remote speaker! But it falls short of my requirements. To play music videos without a 2 second audio lag, you have to use the in built video player, which only allows single files to be loaded rather than a playlist, meaning each song needs to be loaded individually, which isn't perfect for parties!
    I will keep looking for a solution. Really appreciate your help, I thought you had cracked my problem with Airfoil!
    Cheers

  • Export problems multiple movieclips to image sequence

    For our customer we made several flash animations. My output has to be image sequences for Cinemascope format. The export function in Flash for image sequences does not work! All my images are the same frame. This is frame 0 on the timeline. So the embedded movieclips wont playback.
    When exporting a Quicktime movie, some frames are skipped and missing in the output! So the export options in Flash are totally not working for my situation. We bought an application SWF to image but also here are some frames missing in the export. I can not relay on Flash and this application.
    The project is built like this: we made several movieclips and scaled them and put them in position. Then we made one new movieclip with all the earlier made movieclips inside. Then scaled the entire movieclip to the Cinemascope stage size.
    Are we using Flash in a wrong way here?
    Why does the exports functions don't work on my project? (built in movieclips won't play, quicktime mov skips images)
    How can i solve this problem?
    Thanks in advance,
    Greetings Henk

    Ok this is workaround but should in principle do what you want:
    //create an instance of library object
    var mylibrary = fl.getDocumentDOM().library;
    var doc = fl.getDocumentDOM();
    var tl = fl.getDocumentDOM().getTimeline();
    //get items in library in an Array
    itemArray = mylibrary.items;
    totalCount = itemArray.length;
    for(var i=0;i<totalCount;i++){
        myItem = itemArray[i];
        myItemType = myItem.itemType;
        myItemName = myItem.name;
        mylibrary.editItem(myItemName);
        fcNum = tl.layers[0].frameCount;
        for (f=0; f<fcNum;f++){
                tl.setSelectedFrames(f, f)
                framenum = f + 1;
                //select your destination, on MAC use something like file:///Macintosh HD/Users/username/Desktop/
                doc.exportPNG("file:///C|/test/"+myItemName+ "_" + framenum +".png", true, true);
    1: open the fla file you want to convert to a movie and create a backup
    2: Create a new Flash Javascript file and insert the code above, Make sure you have enough hard disk space in your destination folder
    3: Press the play button and Flash will automatically parse through all items frame by frame in your library and save the images as png
    4: Take a break as it might take a long time

  • How can I play multiple music videos continuously on Apple TV?

    Regular music plays continuously, one song to another, etc. I can't get my music videos to do the same. One plays, and after it's over, ATV won't go to the next video. I can't figure it out. Does anyone out there know how to do it?

    What I find is really silly, is the fact the music video's are listed under that artists albums in the Music menu. And when you go into the video 'album' (called 'Unknown' unless you change it) there is an option to shuffle the tracks. Clicking this just results in an error message. So, they should either remove that option if it is a video album, or, better yet, GET IT TO WORK. So silly of them to omit this.
    I have submitted feedback.

  • Playing Multiple purchased Videos?

    I am really shocked that I even have to post this question but here goes. I purchased through iTunes about 25 music videos today hoping to create a playlist  to watch while working out. It allowed me to create the playlist but when I try to watch is back it is sound only. I have been in forums all day and cannot find any postings for videos actually purchased through iTunes on how to playback multiple at a time.
    The advice given to to resave file as television show or other format does not work because it is not a highlighted option. You also cannot copy in different format like you can with music because again it is not a highlighted option.
    Somebody please help, the iTunes monster drained me of $50.00 today for videos and I cannot not even watch them back to back, uurrgghh!

    There is not now nor ever been an option to create video playlists.

  • StageVideo play multiple videos in sequence (playlist) on iOS

    Hi everyone!
    I have to play severals locals videos in sequence with stageVideo (imagine an dynamic background wich runs an playlist).
    Its runs very well (the MP4 videos play smoothly) but when the videos are switching appear an full sreen white frame for 3 seconds and later the second video start to play (on my iPhone4). 
    private function netStreamStatus(event:NetStatusEvent):void{
             if (event.info.code == "NetStream.Play.Stop"){
                     netStream.play(VIDEO2)
    If i rewind the first video (loop) the white frame never appear:
    private function netStreamStatus(event:NetStatusEvent):void{
               if (event.info.code == "NetStream.Play.Stop"){
                     netStream.seek(0)
    ¿How can i do an smooth video change with an stageVideo and ios devices?
    Thanks a lot!

    Here i attach an FXP project (Flex 4.6 Mobile APP) wich play some videos with stageVideo.
    You can see in a real device like iPhone 4 (not desktop) an BLACK screen when swtiching videos (about 3 seconds).
    Can anyone helpme please?
    Thanks a lot!
    http://goo.gl/75tBz

  • Play multiple videos in sequence

    Hi,
    I've multiple videos stored in FMS and would like to merge them into a single video object in order to play all of them in sequence (so that a user thinks it's a single longer video). Is it possible?

    This is a link from 3.5 but have you tried this:
    http://www.overdigital.com/2009/08/02/flash-media-server-as-video-editingstitching-tool/

  • Snow Leopard iTunes 10.5 will not play multiple video tracks in QuickTime .MOV files

    I recently discovered that Snow Leopard iTunes version 10.5 won't play multiple video tracks in a QuickTime .MOV file.
    Both video tracks appear and play correctly when playing the file in:
    - QuickTime Player 10 or QuickTime Player 7.7 on the same Snow Leopard machine
    - iTunes 10.3.1 on another Snow Leopard machine
    - iTunes 10.5 on Leopard or Windows 7
    So I think the problem is iTunes 10.5 on Snow Leopard (although I haven't been able to test iTunes 10.4).
    First test file is two 640x480 video tracks side-by-side (total dimensions 1280x480):
    http://160.94.17.23/demo/two-video-tracks-1280x480.mov
    All I see is the first (left) video track, and not the right one.  iTunes "Get Info" command incorrectly reports the video dimensions of the file as 640x480.
    Second test file is two 640x480 video tracks played one after another (duration of 10 seconds each):
    http://160.94.17.23/demo/two-video-tracks-640x480.mov
    All I see is the first video track, and although it reports the correct file duration (20 seconds), the second video track never appears -- it simply freezes on the final frame of the first video track for the last 10 seconds.
    Anyone else see similar behavior?  Unless I'm missing something, I suppose I should submit this as a bug to Apple.

    I have the same problem, i tried re-installing, converting it to AVC H264 but none seems to work so far

  • Can't play music videos in sequence

    I have about 10 - 12 music videos on my iMac, all of which were downloaded from iTunes.
    I can only play one video on the AppleTV and then it stops. Is there a way to play iTunes music videos on my AppleTV in either shuffle or sequence? After one video plays it does not advance to the next video. I have syched the videos to my AppleTV.
    Thank you.
    Message was edited by: Doug Campbell

    If Apple would fix this so the music videos would all play one after another, this would be such a much needed enhancement, as I have really enjoyed this device. Keeping my fingers crossed for 2008...

  • Windows Premier pro CS5 Program monitor freezes/hangs when video on sequence bar is playing

    Hi all,
    I have been experiencing program monitor freezes/hang while the audio and the video on sequence bar is still playing. This happens on both HD and SD projects. I have tried many ways but at time it works but at times does not work. i have updated CS5 to 5.02, updated the driver and also quicktime.
    Hope someone can help me on this ! Appreciate it.!
    This is a complete new system.
    The specification as follows: INTEL(R) CORE(TM) i7CPU950@ 3.07GHz 3.56GHz
    installed 12.0GB RAM
    System at 64bit
    Display driver using NVIDIA GeForce GTX 470.

    Hi Dennis,
    Thanks for the reply. I have updated the graphics driver on Nvidia website as well.It still does not work.
    Under project settings: Video rendering and playback, i have both mercury playback engine GPU accelerator and mercury playback engine softway only. it is currently set as mercury playback engine GPU accelerator.
    Thanks in advance

  • Using ControlBarSample to Play Multiple Videos

    I'm trying to modify the ControlBarSample to play multiple videos and I'm running into a wall. I've made a few simple modifications to the control bar sample to try to play a second video file. The problem I'm having is the control bar doesn't have a reference to the new video I play and therefore can't update it's view. I'd like to be able to remove the video element playing in the ParallelElement and add a new child MediaElement and have the controlbar refresh it's reference to the new target. Also the controlbar shouldn't have to reload itself, but should stay right where it is in the display list and in the root parallel element. Can someone guide through this? Here is my simple modification to the ControlBarSample class as a starting point.
    package
         import flash.display.Sprite;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         import org.osmf.elements.ParallelElement;
         import org.osmf.events.MediaFactoryEvent;
         import org.osmf.layout.HorizontalAlign;
         import org.osmf.layout.LayoutMetadata;
         import org.osmf.layout.VerticalAlign;
         import org.osmf.media.*;
         import org.osmf.metadata.Metadata;
         [SWF(width="640", height="360", backgroundColor="0x000000",frameRate="25")]
         public class ControlBarPluginSampleMod extends Sprite
              public function ControlBarPluginSampleMod()
                   // Construct an OSMFConfiguration helper class:     
                   osmf = new OSMFConfiguration();
                   // Construct the main element to play back. This will be a
                   // parallel element, that will hold the main content to
                   // playback, and the control bar (from a plug-in) as its
                   // children:
                   osmf.mediaElement = constructRootElement();
                   osmf.view = this;
                   // Add event listeners to the plug-in manager so we'll get
                   // a heads-up when the control bar plug-in finishes loading:
                   osmf.factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD, onPluginLoaded);
                   osmf.factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD_ERROR, onPluginLoadError);
                   // Ask the plug-in manager to load the control bar plug-in:
                   osmf.factory.loadPlugin(pluginResource);
                   // button to play the next item
                   var label:TextField = new TextField();
                   label.text = "PLAY NEXT";
                   label.x = 10;
                   label.y = 3;
                   label.mouseEnabled = false
                   button = new Sprite();
                   button.buttonMode = true;
                   button.addChild( label );
                   button.graphics.beginFill(0x00FFFF,1);
                   button.graphics.drawRect(0,0,90,20);
                   button.addEventListener(MouseEvent.CLICK, onButtonClick);
                   addChild(button);
              // Internals
              private var osmf:OSMFConfiguration;
              private var rootElement:ParallelElement;
              private var button:Sprite;
              private function onPluginLoaded(event:MediaFactoryEvent):void
                   // The plugin loaded successfully. We can now construct a control
                   // bar media element, and add it as a child to the root parallel
                   // element:
                   rootElement.addChild(constructControlBarElement());
              private function onPluginLoadError(event:MediaFactoryEvent):void
                   trace("ERROR: the control bar plugin failed to load.");
              private function constructRootElement():MediaElement
                   // Construct a parallel media element to hold the main content,
                   // and later on, the control bar.
                   rootElement = new ParallelElement();
                   rootElement.addChild( constructVideoElement(VIDEO_HTTP) );
                   // Use the layout api to set the parallel element's width and
                   // height. Make it as big as the stage currently is:
                   var rootElementLayout:LayoutMetadata = new LayoutMetadata();
                   rootElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, rootElementLayout);
                   rootElementLayout.width = stage.stageWidth;
                   rootElementLayout.height = stage.stageHeight;
                   return rootElement;
              private function constructVideoElement(url:String):MediaElement
                   // Construct a metadata object that we can append to the video's collection
                   // of metadata. The control bar plug-in will use the metadata to identify
                   // the video element as its target:
                   var controlBarTarget:Metadata = new Metadata();
                   controlBarTarget.addValue(ID, "mainContent");
                   // Construct a video element:
                   var video:MediaElement = osmf.factory.createMediaElement(new URLResource(url));
                   // Add the metadata to the video's metadata:
                   video.addMetadata(ControlBarPlugin.NS_CONTROL_BAR_TARGET, controlBarTarget);
                   return video;
              private function constructControlBarElement():MediaElement
                   // Construct a metadata object that we'll send to the media factory on
                   // requesting a control bar element to be instantiated. The factory
                   // will use it to parameterize the element. Specifically, the ID field
                   // will tell the plug-in what the ID of the content it should control
                   // is:
                   var controlBarSettings:Metadata = new Metadata();
                   controlBarSettings.addValue(ID, "mainContent");
                   // Add the metadata to an otherwise empty media resource object:
                   var resource:MediaResourceBase = new MediaResourceBase();
                   resource.addMetadataValue(ControlBarPlugin.NS_CONTROL_BAR_SETTINGS, controlBarSettings);
                   // Request the media factory to construct a control bar element. The
                   // factory will infer a control bar element is requested by inspecting
                   // the resource's metadata (and encountering a metadata object of namespace
                   // NS_CONTROL_BAR_SETTINGS there):
                   var controlBar:MediaElement = osmf.factory.createMediaElement(resource);
                   // Set some layout properties on the control bar. Specifically, have it
                   // appear at the bottom of the parallel element, horizontally centererd:
                   var layout:LayoutMetadata = controlBar.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE) as LayoutMetadata;
                   if (layout == null)
                        layout = new LayoutMetadata();
                        controlBar.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layout);
                   layout.verticalAlign = VerticalAlign.BOTTOM;
                   layout.horizontalAlign = HorizontalAlign.CENTER;
                   // Make sure that the element shows over the video: element's with a
                   // higher order number set are placed higher in the display list:
                   layout.index = 1;
                   return controlBar;
              private function onButtonClick(event:MouseEvent):void
                   playNext(VIDEO_RTMP);
              private function playNext(url:String):void
                   rootElement.removeChildAt(0);
                   rootElement.addChild( constructVideoElement(url) );
              /* static */
              private static const VIDEO_HTTP:String = "http://mediapm.edgesuite.net/osmf/content/test/logo_animated.flv";
              private static const VIDEO_RTMP:String = "rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD_sounas_640_500_short";
              private static var ID:String = "ID";
              // Comment out to load the plug-in for a SWF (instead of using static linking, for testing):     
              //private static const pluginResource:URLResource = new URLResource("http://mediapm.edgesuite.net/osmf/swf/ControlBarPlugin.swf");
              private static const pluginResource:PluginInfoResource = new PluginInfoResource(new ControlBarPlugin().pluginInfo);

    It appears that this may be accomplished more easily if I do something similar to the StrobeMediaPlayback implementation. Looking at the StrobeMediaPlayback source code it looks like Adobe has done something a little different than their ControlBarPlugin, placing the controlbar and root media element inside separate MediaContainers and then adding those containers to the display list. Is this recommended over using the frameworks ParallelElements? If so, is communication between the control bar and root media element still a matter of just updating the target reference via metadata?

  • Playing multiple videos on the same page in Dreamweaver CS4?

    Suppose on my website, I have a few dozen videos, all of them embedded YouTube videos. When the user goes to the page, Video 1 is up and ready to be played. Below Video 1 is a list of the other videos (Video 2, Video 3, and so on), each with a thumbnail picture. When the user clicks this thumbnail page, the new video is loaded (eg: if they click on the thumbnail for Video 2, Video 2 is up and ready to be played).
    What do I do in Dreamweaver CS4 so the new video loads without redirecting the user to another page? With so many videos, I imagine that it isn't efficient to have a separate page for each video. 

    Hi
    You can do this by using an xml playlist for your videos, (do a search for "creating flash xml playlists").
    PZ

  • Captivate 7 HTML 5 publish does not play multiple videos on same slide on Android devices

    Hello,
    I have a captivate module which has 2 videos on same slide. There are 2 buttons, clicking on which the videos appears. However when i test this on iPad or any Android device, it plays on 1 video. I used Event video. Can someone please help me on this?
    Regards
    Manoj

    I don't think you are missing anything. I am using the "Light_PAssage" animantion, but switching to the one you used has no impact.
    For me, if there is a text animation on slide one, it will play in File->Preview->Play Slide. It will not play in FIle->Preview->Project, From this slide, or Next 5 slides.
    The issue occurs in all my Captivate 5 projects, including projects that previously generated properly working outputs as recently as 2/23/2011.
    Is it possible it's related to Flash player? I am using Adobe Flash Player 10 ActiveX 10.2.152.26.
    I will send an example cptx to your email address. The example includes a blank slide one, and the text on slide 2 plays as expected in the previews and in the generated output. If I remove the blank slide 1, the text animation on the new slide 1 no longer plays.
    Thanks.

  • Can Flash play multiple audio and video files at the same time?

    Hello,
    I would like to create a web-based client/application that
    can play multiple a/v files or stream multiple a/v files at same
    time. Is this possible with Flash, without the use of RTMP? If yes,
    can you please provide an example. Thanks in advance.
    Regards,
    Nilang

    You never edit within a clip. The purpose of opening a clip is to make sync adjustments, audio equalization, color correction, stabilization, things that you might want do overall to the master clip before you edit it. You edit the portion of the clip you want from the browser into a project. There is really very seldom any need to open a clip into the timeline.

  • How do I delete duplicate songs, but keep a link in their original albums to the single copy of the song left, so it will play in each album in sequence as if it were still there?

    Greetings!
    After importing my 300 or so CDs into iTunes, I found I have tons of duplicate songs.
    Example: I have a song that came in a original album, then in again in a "Greatest Hits" album, then again in a "Hits of the 80's" album, and again in a soundtrack album. I have now have 4 copies of the exact same song.
    How do I delete duplicate songs, but keep a link in their original albums back to the single copy of the song left, so it will play in each album in sequence as if it were still there?
    I don't think this currently exists, but as my library keeps growing the duplicates keep growing.  It would be nice if Apple sees this and adds a way to link songs to multiple albums.
    I don't want to create a custom playlist for every album that has a duplicate song or two (I'd have dozens of playlists) - thought about fixing it that way but not really practical.

    To my knowledge, there is no way of doing what you want. The only workaround is to create playlists for the other albums containing the track, but that isn't practical for most people.
    You could provide Apple with feedback here: http://www.apple.com/feedback/itunesapp.html

Maybe you are looking for

  • Do I need to update to iOS6 before I switch to my new iPhone?

    Hello! I have an iPhone 5 on its way to me, and I was wondering if I needed to upgrade my current iPhone 3GS to iOS6.   I obviously will want to migrate all of my data over to my new phone, and I wasn't sure if the two phones need to be running the s

  • Small Home Network.........

    I have a AEBS serving up for my wife's i-Book wirelessly and an i-Mac thru the LAN off the AEBS .I would like to set-up my Dell and another PC slave thru a 5-port Linksys switch to recieve my Verizon DSL also. Could I send the DSL straight to the swi

  • DB13 offline backup terminated

    Dear all, I was taking offline backup and found the error and checked the detailed log : BR0360W Not enough disk space in /oracle/Q11/sapreorg for verification, missing at least 6139.147 MB BR0128W Option '-w' ignored for 'out_of_space' I have 293238

  • Facetime block in Saudi Arabia. How would I enable it in a country where it is not blocked?

    HI, I recently purchased iPad mini Retina Display(4G). There is no Facetime included in the Pre-installed Apple apps because Facetime is blocked in Saudi Arabia. If i moved to another country, (Where Facetime is not blocked) how would i enable Faceti

  • Suggestion: iTunes Video Podcasts

    I just got a 30 GB iPod yesterday and have been playing around with video podcasts a bit. It would be much easier to find iPod formatted podcasts if they were marked with a special icon or something next to the name of the podcast in the thumbnail li