ActionScript 3.0 :: How To Loop Progressive Loaded Video
Nov 8, 2009I made some moveis, i need to have on my homepage, have eveything loaded, just can't find a way to have it going on a loop.
[Code]...
I made some moveis, i need to have on my homepage, have eveything loaded, just can't find a way to have it going on a loop.
[Code]...
I got help for a a week ago to do a loop on progressive loaded movies, but nov I got a problem it only loops on keyframe one and not on keyframe 2. Do anyone know how I can sort that out..?
I have the following on keyframe 1, where everything is perfect:
[Code]...
I'm trying to decide whether, for my particular application, I would be better off delivering video via streaming or progressive download. Here's the situation: Background: this will be a learning drill for learning foreign language phrases. There will be a series of ten short video clips, each one a headshot of a native speaker, saying a single sentence. The background is static so the only thing changing will be facial expressions, so compression should be pretty effective. Each clip will be approximately 4-6 seconds total length. Resolution will be approximately 360 X 270.
The way this particular drill works makes me wonder if perhaps progressive downloading might make more sense than streaming. But like I said, I'm not a Flash developer, so I could easily be wrong. (Did I mention we're currently looking for a talented, reliable Flash developer?) So here's how it will work: Drill will load up showing written text of instructions, along with audio of the narrator reading the instructions aloud. Approximate length of the audio instructions will be 15 seconds. (I"m thinking progressive download could begin during the reading of the instructions.)
After the instructions have been read, the intructional text goes away and is replaced with (from top to bottom) the text for the first sentence, the video box with a static image of the first frame, a "Begin" button. When the user clicks the "Begin" button, the video begins to play, and the "Begin" button transforms into a "Repeat" button, which is inactive while the video plays. When the video ends, the "Repeat" button becomes active. Clicking the "Repeat Button" causes the same video clip to play a second time (again, the "Repeat" button is inactive while video plays.
I have been trying to use the example from xmoov.com to fetch only a part of video, as explained in the blog:URL...The code works fine for the video link they have, but when i change the link to a video file on my server, I get null object error for onMetaData( e:MetadataEvent ) function on the line "Alert.show(e.info.keyframes.filepositions.toString());" [code]
View 1 RepliesHere's what's going on: I have an F4V file loaded into a SWF. There are no real playback controls -- nor do I want any. I've created a "skip" button that's supposed to a) pause (or seek to 0) the video, then remove the video from the stage. It seems I can either pause the video OR seek to zero, but not both.Here's what I've tried:
Code:
function seekTo (num:Number):void
{
[code].....
I have some FLV video files to be reproduced sequentially by a Flash video player. Suppose v1.flv and v2.flv. I want the player to start playing v2.flv once v1.flv has reached the end. According to this forum, the onPlayStatus does not fire in progressive FLVs. What can be done? A snippet of what I am trying below:
public class MyClass extends Sprite {
private var nc : NetConnection;
private var ns : NetStream;
[code].....
I've developed a video player using NetConnection/NetStream that works fine, in as2 and also in as3. The peculiarity of my player is that read an xml file (editable by a cms) that sets if needed some "cuepoints". In the stream version it's not possible to inject ascuepoints in the video file, so i read the xml and with a listener i set a menu that sets the seek point of the video. Also the user when watch video sets an exit point by closing it. From the second time the user lands on the player, my code put the seek point in the last position seen.
I've seen youtube player and I know that youtube uses progressive download. It's awesome to know that because you can jump from one position to another like a streaming service. It seems an hybrid version with the capabilities of the streaming and the band saving of the progressive download. There's something that i can't imagine..
I am trying to load video in to flash. using progressive download... From what i googled It was said to follow the below procedure Import video -> select already deployed on a web server -> add video url it creates a FLVPlayback component Is this the right way? I have done video loading using NetStream a lot of time considering this method as streaming, though i am not sure if what this type of loading is called..
View 7 RepliesI have set the Progressive-Download video instead of Streaming-Video (because my webserver provider "aruba.it" doesn't offer streaming videos), in Flash CS4 Professional, and exported to Dreamweaver CS4. I have also inserted the HTML code in Dreamweaver CS4 to enable FullScreen Playback of Flash .flv Videos.Now I have a problem:
- When the webpage loads into Internet Explorer 7, it take much time to load all the videos at same time!
Thus I want this:
- I want that the videos start to load just when I press the Play button, individually, not at same time.- I don't not want that start the load immediately when the webpage opens in IE7. - I want that the videos start to load content in the same manner of YouTube videos, just when I press play.
How can I do? What is the HTML code that I should insert into DreamweaverCS4? I have seen this help page: [URL]
At Chapter "Public Methods" I have seen this "load" function:"Begins loading the FLV file and provides a shortcut for setting the autoPlay property to false and setting the source, totalTime, and isLive properties, if given..."
I am looking to create something like [URL]
Basically a video that allows you to click on products and pull up more info on them as they appear in the video.
The video I will be using is 3 mins long with 10 products you can click on, so I guess I will need to progressively download it. If I could embed it in the timeline it would be a piece of cake. I would just have buttons motion tweened moving with the products in the timeline. But the file size will be too large to make this a sensible option.
My question is, I understand cue points can be used to activate actions for progressive video downloads, but how would I track the buttons over the products using progressive downloading when I can't see the video in the flash timeline?
I made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code
[Code]...
I have created animated presentations (since now, I have just videos) for my seminars at the university with cinema 4D and I added some effects with After Effects (CS5). Now, I want to build an interactive presentation. That means:
- The (video projector) presentation starts with a video in a loop.
- When I click a button on the mouse/keyboard, the video finishes the loop until the end and
- show a transition video and
- start the next loop and so on...
[Code]...
the player uses a VideoDisplay and i set the source like videoDisplay.source = "sourceStringURL"
and the vid doesn't play until it's fully loaded
I have loaded an external video with playback component in Flash CS4.
Now the question is do I need to add streaming script or not?
I don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete code: This is on my 1st frame:
[AS]
bg_music = new Sound(_root);
bg_music.loadSound("music.mp3", true);
bg_music.stop();
[/AS]
This is on my sound controller clip, shows the progress of the music playing and stuff:
[AS]
onClipEvent (enterFrame) {
var musicloaded = _root.bg_music.getBytesLoaded();
var musictotal = _root.bg_music.getBytesTotal();
var lprogress = Math.round((musicloaded / musictotal) * 100);
var musicttime = _root.bg_music.duration;
[Code] .....
I tried with "loop" too, but the sound just plays once.
I am trying to make a quiz work online. At the moment pupils can start playing before all the questions are loaded and it mucks it up. I tried putting a 'loading question' frame in. In this I put a movie clip with only made a continue button appear after 30 seconds. But this is not practical as all servers take a different time to load. I know I need to put in a loop but am having problems and would be grateful for help.
I have the questions saved as 15 notepad files in a folder. The folder is named Women. When they choose this topic they press a button with this code.
[Code]...
Ok, I've used this syntax to load an external mp3 into my movie
mySoundObject=new Sound();
mySoundObject.setVolume(100);
mySoundObject.loadSound("podloga.mp3",true)
[code]......
I don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete [code]...
View 1 RepliesStatus:
- I imported an AVI video clip to Flash converting it to FLV
- I published the project
- I put the files on my web server
- It automatically starts playing when you go to the web page
Question:How do I make the clip loop?
[code]....
But I can't find their download sample And, they say click on Frame-1 and press F9 then put code snippit in after line 7 But, I see no Action Script when I click on Frame 1 and press F9... a window opens but no code appears...just a long menu on the left.
I have an fla file exported from After Effects that I am trying to get ready for a website so it loops continuously and is web ready.
Details:
- Clip needs to be rasterized and not vectorized (hence the flv format)
- Dimensions are 1400 by 514
- No Interactivity, just a simple looping 4 second clip
how to write after finish the video active play button ? when i click play button movie playing from first.and how to looping video?
View 3 RepliesI am making a video based application.In this application a 720p is need to be play loop wise.I have 5 Sec video that should play automatically after 5 Sec i mean loop.I am making this application for Android and IOS.I had tried the looping thing use timer of 5 sec but there is a jerk after each clip.I need a smoothly looping without any jerk after the clip
The following is the i am using.If you know any other code better than this
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.display.Sprite;
[Code]....
I have a video that needs to loop on an Augmented Reality project, but for some reason it does not want to loop.I thought it would be as simple as adding the following code:
netStream.seek(0)
netStream.play(videoURL);
which is triggered as soon as the NET_STATUS event gives the NetStream.Buffer.Empty or NetStream.Play.Stop code.
We have a major project on here at the moment to do with flash menu designs and videos etc. Basicly we have a menu where u click a button and it jumps to a frame. On that frame is the information etc, and a video for that particular subject. What im asking is this: We have put the video in using FLVPlayback and was wondering if it is possbile to have the FLV loop the video.
View 12 RepliesI'm trying to loop a FLV video. The start and end frame are identical, but in flash there is a slight pause on the repeat.... I've tried a couple of different methods... listening for the COMPLETE Event via AS and embedding the FLV into the timeline, with a goto on the last frame... both methods have the same effect.
View 1 RepliesI'm using Flash CS5, AS3 to create an .swf that imports an .f4v or .flv that was encoded with Adobe Media Encoder.When I use .flv the video begins playing immediately and downloads progressively. When I use .f4v the video has to download completetly before playing. Considering all things are equal except for encoding the video as either .flv or f4v, what step am I missing that is preventing the .f4v from downloading progressively?
View 1 RepliesJust trying to load and display a progressive JPEG with AS3. At this stage I do know how to load and display the jpg after it is loaded but I can't figure out how to display it progressively (ie: get something on the screen even before it is fully loaded).
View 3 Repliesis this a "valid" method to check if the current image is loaded before going to the next loop/image?
[Code].....
I was trying to set up a loop which checks to see if all files are available from an array before loading them in. I have got it working to a point where it traces out file is loaded or not but I cant seem to trace out which actual file name is missing eg. myfile1.swf is missing.
[Code]...
So this is loading images by looping through a xml file and displaying them on the stage... The images load fine only they're way too big. Problem is when I add .width to myLoader the images disappear all together.
ActionScript Code:
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("data.xml"));
var myLoader:Loader = new Loader;
[Code] .....