Hello,
I have a flash project that is a game. I loaded the video on my site using video with alpha channels so I could use different backgrounds. It all seemed to work well, but now when I play it online sometimes the video will not play in some questions. It is not always the same question. It seems to be coded correctly and was playing fine. It seems that the video sticks sometimes, is there a way to eliminate this problem?
Mark.
Hello,
I have substantially increased the buffer, but it only sticks on videos later in the project. How can I insert a swf in a frame of the project? I am wanting to make the swf very easy to play. Is there a way that I can insert a frame that is swf rather than flv and can I do it with an alpha channel, so it will be transparent? Again, thank you for your help.
Click the File menu, point to Import, and then click Import Video.
Select a video file location option
Selecting the Movie Clip option will produce two items in your library; the original FLV file (it looks like a video camera) and the movie clip symbol you created.
Checkboxes allow the options to
Finish Video Import: Shows video source, and displays the options checked in embed section.
File->Import, the same way you import any other image, sound, etc. A video wizard will pop up to import your video and/or convert and compress it to something compatible with Flash if needed. As mentioned make sure you choose the option to embed the video in a MovieClip and let it extend frames to the duration of the video.
Another good idea is to go into the new MovieClip that contains your video, click anywhere in any frame on the timeline on the video, go to the properties panel and set the Sync drop-down to Stream rather than Event. That'll prevent a video, when unloaded, from continuing to play.
To get the best quality, consider encoding your videos with Adobe Media Encoder first and then import that. Flash won't need to convert it and you have a lot more control over the quality.
And don't forget to set Sync to Stream in properties. Everyone always forgets and then you have 5 movies playing at the same time even though you're not on a frame that contains any movie.
Hello, I know it has been a little bit. I tried to embed the video as a movie clip, but this causes the audio to distort slightly and synch problems. I took each layer that has video and selected the stream option, this helped dramatically, but the videos still stick later in the program. The program that I have made is a quiz with 25 questions. Each question has a video that asks the questions, then depending on the response the user sees a video for the correct response or incorrect response. So total would be 75 videos plus the introduction. Each of these is only a few seconds long, but up to a minute on a few of the ansers. I am using cue points to navigate from frame to frame. The video has an alpha channel so my charicature that asks the questions is on one layer, the background is on another, and other elements are on another.
The way I was thinking of fixing this, would be to find a way to preload all 76 video clips before the quiz is started, is this possible? If not can you think of any solutions?
Thank you once again for your help, it is greatly appreciated.
Mark.
This has been a very common issue for timeline media playback in Flash. There's no real single solution when using timeline embedded/encoded video. One thing that may possibly help is encoding with Adobe Media Encoder to FLV before import so Flash won't encode it. It may produce better results.
The best long-term solution is drop timeline-embedded video altogether and use external FLVs that you load into a media player. You can use the FLVPlayback component to easily play the video. The Video class has plenty of samples to get you started. Here's a quick old FLVPlayback component tutorial:
http://www.republicofcode.com/tutorials/flash/as3flvplayback/
Sometimes on really long videos even external files have sync issues. Although these days, less issues if you use the mp4 format. Although you use transparency and to my knowledge, although H264 supports an alpha channel, I don't believe flash utilizes alpha in mp4 yet. So be sure to keep the format of those files FLV with an alpha channel.
Thank you again for your help. My project is in actionscript 2.0. Is there a way to do this in as2? The way I have been utilizing my video is to load the flv on my website and then type in the location on the video import. I have been encodding it to a flv file using the media encoder and then loading it to my site.
Yes the FLVPlayback component is also available in AS2. I've used it a long time in AS2 projects and it works great.
Here is the AS2.0 language and component reference which is becoming harder and harder to find:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=Part2_ AS2_LangRef_1.html
Here is the AS2.0 FLVPlayback component reference with sample code:
North America
Europe, Middle East and Africa
Asia Pacific