Sunday, August 9, 2009

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.


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.


import flash video

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.


rename layerStep 3: Press “F9” to bring out the Actions panel and type the following lines of 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:

enlarge actionscript 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.

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


test flash video

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


Use 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>


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

Stumble Upon Toolbar

Thursday, July 23, 2009

How to Make FLV Files ( Flash Video ) in Macromedia Flash 8

FLV(Flash Video) is a new video format which is perfectly supported by Macromedia Flash 8. This flash maker successfully solved the problem of the huge size of output SWF file that may not be played on Internet after inputting video file to flash. Let’s have a look below on how to make delicate FLV files:

Advertisement by Leawo Free Video Accelerator - Watch and download online videos in high speed without buffering:

Watch Hot Hollywood movies for free

1. How to make FLV files? 

Step 1. Open Macromedia Flash 8 and establish a new flash docment.




Step 2. Input AVI video files that you want to convert to FLV and follow the instructions.


Step 3. Keep the default setting for “Edit” and “Encode”, click “Import video” and then “Next step” and “Finish” at last to complete the inputting process.

Note: If you don’t have Directshow 9 and QuickTime 6.5 or higher installed in your system, a pop-up window will remind you to do so in order to import AVI successfully.

Step 4. Press “Ctrl+L” to open the data base, double click the AVI file just input, open “Embed video property” interface, click “Output” to create a FLV file.

Above 4 steps lead you to convert AVI to FLV successfully and after conversion, you will surprisingly find the final size of FLV is just 541KB, much smaller than the original 23MB AVI. Now you can use it freely on Internet>>>Convert video to FLV for free (free video to FLV converter)

2. How to use FLV files? (or make flash video player)>>>Customize a web FLV Player in the easiest way

Step 1. Establish a new flash document, press “Ctrl+F7” to open the “Components” window, drag “MediaPlayback” to the stage from “Media-Player 6-7”.


Step 2. Select “MediaPlayback”, press “Alt+F7” to open “Component Inspector” interface:


Some meanings of parameters in Component Inspector:
File Type: choose FLV as the defined file type, you can also choose to play MP3 file.

URL: specify the path of FLV files, because we put FLV files and Flash files in the same catalog, we only have to specify a file name here.

Control Placement: set the location of play panel.

Control Visibility: set the visibility of play panel.

Step 3. After settings, press “Ctrl+Enter” to test the performance.

Related article:
How to add flash video ( FLV ) to website?



Stumble Upon Toolbar

Monday, July 13, 2009

Brand Your web-based Flash Video Player With Image

Summary:
This tutorial shows how to easily add an image logo to your flash video to brand it for your company or yourself, and publish it to website with customized web flash video player.

---
You might noticed that a lot of videos on the Internet have an image logo. Some of this kind of logo is to beautify the video itself, while some is for commercial purpose. Regardless of any purpose, image logo in the video can actually customized your own FLV movie. Below text shows how to easily brand your web video with a tool called Moyea Web Player. It will refer to a plugin called Image Watermark Plugin.

What is Image Watermark Plugin:
It is a plugin that provided by Moyea Web Player. It enables users can add image to flash video so that they can brand and copyright their videos for publishing to the Internet. Supported formats of this plugin includes PNG, JPG, GIF and SWF file. Since version 2.0, Moyea Web Player begins to support this plugin.
From this page you can get more information of the plugin - http://www.playerdiy.com/configuration/addons/watermark-image.html

Where it appears:

After Moyea Web Player is installed, this plugin will appear on the following interface

Example:

This example below will show you how to implement this task step by step.

Step 1: Add a video into Moyea Web Player on “Media” interface.

Step 2: Click the image watermark pluin on “Addons” tab panel on “Template” interface, and then click “” button.


Click “browser” button to input an image into Moyea Web Player, and set the position at where it will show. Notice: 1. If the watermark is a SWF file, please check the “SWF” option. 2.The value of X-coordinate and X-coordinate can be a negative number. When both values are 0, the watermark will appear at the left top of player.

Step 3: Set the value of “Video list style” is none to remove the playlist and the embed code at the right of player


Step 4: Click “Publish” button on “Publish” interface. Then we could get a web player which is branded with your own image watermark.

Stumble Upon Toolbar

Tuesday, July 7, 2009

Ice Age 3: Dawn of the Dinosaurs

- Reshipment from my friend Toby's blog

If you are still regreting that you have missed one of the 3-D movies which being shown a couple of weeks ago called Aliens Vs Monsters, I have a good news to tell: another 3-D movie is coming soon on July, 09th, 2009 and It is the third installment of the Ice Age series, you are right, here comes the Ice Age 3: Dawn of the Dinosaurs.

It’s so cool to watch 3-D computer animated movie cause you feel you are also a part of the movie and that’s we what we call interaction. Thanks to the high-tech of movie making and gorgeous movie house, a pair of glass can bring you to another world created by Ice Age 3.

Newly-released Trailer of Ice Age3:


Player will show here


Want to put it to website? No problem, use the player above to easily add it to website with your own style flash video player.

Some Cute Wallpapers of Ica Age3:

Ice Age 3 Wallpaper 1:



Ice Age 3 Wallpaper 2: Ellie

Ice Age 3 Wallpaper 3: Sid


Ice Age 3 Wallpaper 4: Diego

Ice Age 3 Wallpaper 5: Manny

Ice Age 3 Wallpaper 6: Scrat

Ice Age 3 Wallpaper 7: Scratte


Stumble Upon Toolbar

Sunday, July 5, 2009

Embed flash videos to your website or blog from other websites

Summary:
This article is going to show you how to add flash videos from other websites to the flash video player on your own website. This topic can also be called "How to make dynamic playlist for Web FLV player". However, it can be in two cases: 1. The URL of the Flash video is ended with .flv; 2. The URL is not ended with .flv.

Below is a step by step tutorial -

The first case: The URL of the Flash video is ended with .flv

In this case, you can directly use Moyea Web Player. Download, install and launch this program on your PC, on the "Media" tab, click "Add" and then choose "Add URL"

Then it will pop up a small window captioned "Open", here you can copy and paste the URL of the Flash video to this small window, then click "OK"

After these steps, you have added the Flash video form external website to your Web FLV player.

The second case: The URL of the Flash video is not ended with .flv
1. Download
Download the flv movies you want from the Internet to your computer hard disk with Leawo Youtube Download, which is free and a powerful tool that can download almost all videos from the Internet.

2. Add
After the flv movies are downloaded to your computer, you could use launch Moyea Web Player (http://www.playerdiy.com/ ) on your computer, add the downloaded flv files to the software:


3. Customize
You could use Moyea Web Player to make customized web flash flv player for your website:

4. Publish
Click "Publish" button in Moyea Web Player to generate swf skin player, related web page file and the flash videos.

5. Upload and Embed
Upload all the files to your host server in the same directory. After step 4, Moyea Web Player will automatically open a web page with the flash video player embedded in your IE browser, just copy the SWFObject JavaScript code at the bottom of this page and paste it to your website(Add JavaScript in blogger (blogspot) post):
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Player will show here</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.write("flashcontent");
</script>


Then the media player and the flash videos will show on your website.

Stumble Upon Toolbar

Thursday, July 2, 2009

Add JavaScript in blogger (blogspot) post

Blogger post
Summary:
This post talks about why javascript sometimes does not work in blogger post and how to make it works.

Javascript code works well in HTML/Jscript gadgets, so it is no need to talk of this. Here we focus on Javascript in a post.

Let's start with an example. I added this SWFObect Javascript code to embed a flash video player generated by Moyea Web Player (http://www.playerdiy.com/ ) to show videos in my blog post and it was not working:

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Player will show here</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.write("flashcontent");
</script>


To my strange is that this code works in my Dreamweaver or other HTML editor. But why does not work in blogger?
I tried many other code and then I found this javascript code work well in blogger post:

<a onclick="alert('This works.')" href="#" >Test</a>


After this, I look carefully at my blogger post source (Edit Html):

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Player will show here</div>
<script type="text/javascript"><br />var so = new SWFObject
('mwplayer.swf','player','500','450','9');<br />so.addParam
('wmode','opaque');<br />so.addParam('quality','high');<br />so.addParam
('allowfullscreen','true');<br />so.addParam
('allowscriptaccess','always');<br />so.write("flashcontent");<br
/></script>


There is a problem. In almost each new line. Almost Every time you have new line, blogger editor adds <br /> tag. Because of this <br /> tag web browser can't execute jscript.

So correct solution for my problem should look like this:

<script type="text/javascript" src="swfobject.js"></script><div id="flashcontent">Player
will show here</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.write("flashcontent");</script>


To work well javascript in blogger post should be in one line.

Here is example of JavaScript code that works(The player works but videos are deleted so you couldn't see the videos in the player):

Player will show here

Stumble Upon Toolbar

Tuesday, June 30, 2009

Add Michael Jackson’s Music Video to Your Blog or Website

Reshipment - I love video


There are many ways to memorize someone. One of the best ways to memorize Michael Jackson is to remember his profound contribution to music and charity all the world.

Download Michael Jackson’s music videos from Youtube and keep it in your iPod with Leawo Youtube Download and FLV Converter or upload those classical music videos to your blog and website and make a custom flash video player for these videos with Moyea Web player (http://www.playerdiy.com/ ) to let more people share the Michael Jackson moments.

At least, that’s the little thing we can do, as one of the loyal Michael Jackson’s fans, to express our love, miss and respect.

Since I have uploaded some very famous Michael Jackson’s music videos to my blog, many friends of mine are asking how to do that? Ok, no problem, the below simply tutorial will tell you how to upload Michael Jackson’s music videos to your blog or website:

Step 1: First upload the flash videos (the format can be FLV, H.264 coded MP4, MOV, 3GP, 3G2, etc) that you want to play on your blog or website to a sever, then get the link addresses. (We upload them to www.blip.tv.com here for example)

Step 2 : Open Moyea Webplayer and click "Add URL" to input those flash videos’ link addresses from Step 1.



Step 3: Select a video to edit:

a. Adjust the video order

b. Capture pictures during video playing

c. Rename video

d. Type the address where the video will lead to after playing

e. Type the address where the video will lead to when clicking



Step 4: Click "Template" to preview the web player you have created so far. If you don’t like the default player skin, choose another one from the left panel.



Step 5: Click "Option" tab, then "User define area", choose "none" to remove Embed and URL information on the screen.



Step 6: On "Publish" interface, choose a publish path, and then publish the customized player.



Step 7: Upload all the published files except the index.html file, to the same folder of a web server (you can easily search a free hosting on google). And then copy and past the embed code on the following interface into your blog.

Note: mwplayer.swf is the actual flash video player, and the swfobject.js is an adobe flash object file, you point to them with links.



Then the player with the videos will show on your blog.

Player will show here

Stumble Upon Toolbar