NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Graphic Design / Flash
Reload this Page Solutions to make flash video player consecutively play next flash video

Graphic Design / Flash Photoshop, Flash, and other visual art topics including software, fonts, animation.

Advanced Search
0 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 08-12-2009, 03:42 AM THREAD STARTER               #1 (permalink)
New Member
 
stephenz's Avatar
Join Date: Jun 2009
Posts: 7
stephenz is an unknown quantity at this point
 



Solutions to make flash video player consecutively play next flash video


If you are watching some TV series or flash videos online, of course you want to watch it one episode after another without interval.
This article is exactly about the options to play flash videos consecutively in web-based flash video player.

Option 1. Consecutive playing flash videos with Adobe Flash CS3.

This way is basically used to play flash videos consecutively with a few lines of code. Let’s have a look:

Step 1: Open Adobe Flash CS3 and import a FLV file.



Step 2: After inputting, rename the layer1 as “Object” and create layer2, rename it as “Action”. On the ActionScript layer, click the dot under the padlock icon. This will lock the ActionScript layer and prevent you from placing objects on it.



Step 3: Press “F9” to bring out the Actions panel and type the following lines of code.
Code:
import fl.video.*;
var myvideoarray:Array=new Array();
myvideoarray[0] = "video1.flv";
myvideoarray[1] = "video2.flv";
myvideoarray[2] = "video3.flv";
var k:Number = 0;
myvideo.play(myvideoarray[k]);
myvideo.addEventListener(VideoEvent.COMPLETE, loadnext);
function loadnext(myevent:VideoEvent):void {
k++;
if (k>= myvideoarray.length) {
k=0;
}
myvideo.play(myvideoarray[k]);
}
Enlarge picture of code:



Note: Replace “video1” “video2” “video3” with the actual names of FLV files you just input.

Step 4: Save the file in the same folder where you input FLV file at the first beginning.
????: NamePros.com http://www.namepros.com/graphic-design-flash/602716-solutions-make-flash-video-player-consecutively.html

Step 5: Click “Control” and then “Test Movie” from its drop-down menu to preview the effect.



Option 2. Consecutive playing flash videos with Moyea Web Player.

Use Moyea Web Player in playerdiy.com, there are two easy ways to achieve the goal: by interface and by code.

Let’s start to show how by interface:

Step 1: Open Moyea Web Player and import flash videos.

Step 2: Click “Template” tab, then “Options”, check the box before “Auto choose next”.



Next, we will show you how to implement the above demo by code:

Moyea software just released free FLV players for those who have no web hosting to play flash videos in variety of formats. Just copy the Embeded Code and insert a line of code to make it play flash videos consecutively.

For example: the embeded code is shown below

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent" align="center"></div>
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9') ;
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','playerOpts=autoChooseNext *true*b');
so.write("flashcontent");
</script>
????: NamePros.com http://www.namepros.com/showthread.php?t=602716

Note: the flashvars code highlighted in red is the code to make it play flash videos consecutively.

Source is my flash video player blog
stephenz is offline   Reply With Quote
Reply

Tags
automatically next flv, flash video player, flv player, play flv consecutively


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:03 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger