Question about Macromedia Flash MX

1 Answer

Flv player hi this is rahul, i want to make a custom flv player in actionscript2.0plz help me.

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.


    An expert whose answer got voted for 2 times.

  • Contributor
  • 4 Answers
Re: Flv player

Hi rananjay is here. try this script....

// flv player..
// developer.. Rananjay Singh
// video instance name = thevideo
var nc:NetConnection = new NetConnection();
var ns:NetStream = new NetStream(nc);
//made control on new layer button name = Rewind button,play button
rewindbutton.onRelease = function() {;
playbutton.onRelease = function() {
// made new symbol named loader with strock
// inside this select the fill color & make new mc named loadbar
var videoInterval = setInterval(videstatus, 100);
var amountloaded:Number;
function videostatus() {
 amountloaded = ns.bytesLoaded/ns.bytesTotal;
 loader.loadbar._width = amountloaded*217.9;
 // 217.9___ width of loadbar
// flv setting-- framerate = 1.1,,, frame every 30
// make anew mc for seekbar named scrub
// then it place on loadbar
var duration:Number;
ns["onMetaFata"] = function (obj) {
 duration = obj.duration;
 loader.scrub._x = ns.time/duration*208.9;
 //208.9 width of loadbar
// scrubbar firs see what area cover loadbar 0 to x
var scrubInterval;
loader.scrub.onPress = function() {
 scrubInterval = setInterval(scrubit, 10);
 this.startDrag(false, 0, this._y, 208, this._y);
loader.scrub.onRelease = function() {
 videoInterval = setInterval(videstatus, 100);
function scrubit() {*duration));
//buffering---- made a videosize blackmc & inside that give text alpha animation,, named buffer
ns.onStatus = function(info) {
 //if(info.code ==)..... see netstream class in help & compleate it
// custom ontextmenu..
var themenu:ContextMenu = new ContextMenu();
themenu.hideBuiltInItems(); = themenu;
var i1:ContextMenuItem = new ContextMenuItem("video controls", trace);
var i2:ContextMenuItem = new ContextMenuItem("play/pause video", pauseit);
var i3:ContextMenuItem = new ContextMenuItem("replay video", replayit);
var i4:ContextMenuItem = new ContextMenuItem("copy right", trace);
themenu.customItems[0] = i1;
themenu.customItems[1] = i2;
themenu.customItems[2] = i3;
themenu.customItems[3] = i4;
// after that create two functions for context menu
function pauseit() {
function replayit() {;
// and now prepratin foe volume control
//make a four stage movi clip for sound .. named normal,onover,mute , muteover
_root.createEmptyMovieClip("vsound", _root.getNextHighestDepth());
var so:Sound = new Sound(vsound);
// button name = mute
mute.onRollOver = function() {
 if (so.getVolume() == 100) {
 } else {
mute.onRollOut = function() {
 if (so.getVolume() == 100) {
 } else {
mute.onRelease = function() {
 if (so.getVolume() == 100) {
 } else {

Posted on Oct 29, 2007

Add Your Answer

0 characters

Uploading: 0%


Complete. Click "Add" to insert your video. Add


3 Points

Related Questions:

2 Answers

How can I change the format of videos from FLV to MP4?

You can use FLV to MP4 converter free tool to change the format. It will be relatively fast and rather simple to do. The program is safe and virus-free, I hope you like it.

Aug 27, 2012 | Graphics Publishing, Design & Multimedia...

2 Answers


You can try to convert the video to another format.
i use this video converter deal with my video converting.
I have used this one for long and found no i recommend this Video Converter to you.

Apr 14, 2012 | Armjisoft Flash OwnerGuard

1 Answer

I have a problem to play flv videos via GOm Player

You can download the latest version of Media Player Classic (K-Lite Codec) FOR FREE
It will install all the required CODEC and you can play all audio - video files.

Hope it helps! Good Luck!

Feb 26, 2011 | Gretech GOM Media Player

2 Answers

I have windows vista and i am unable to open files created by printmaster even although i have the disc. The files come up as sig files . Is there a free program i can download to help with this problem...

BODY { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } P { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } DIV { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } TD { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } People who use Sony and Cannon camcorders may feel frustrated trying to upload their videos to youtube, as thesy are taken and saved as mts/m2ts. Well, in fact, all they have to do is to find an mts to flv converter. How to convert m2ts to flv?
Download and install mts to flv converter on your PC. It takes only a few steps to convert m2ts to flv on Windows.
Step 1: Connect your HD video camera/camcorders to your PC. Copy the videos you want to share to your PC's hard-drive before converting or editing them.
Step 2: Launch the m2ts/m2ts to flv converter. Click "Add files" to browse your computer hard disc and add the .mts or .m2ts files you want to convert. You can load all the source files before the m2ts to flv conversion as batch converting is supported by this m2ts flv converter.
Step 3: Now you select flv as the output format and specify a directory for the output files. This m2ts to flv converter supports comprehensive video formats including avi, mpeg, wmv, mp4, mov, xvid, 3gp and more.
Step 4 (optional): The mts to flv converting program can set the brightness, the contrast and the saturation of your videos, crop, trim videos and even merge multiple files into one single file before the conversion.
Step 5: Click the "Start "button to start the mts flv conversion and all you have to do is to wait until the m2ts to flv conversion is done.
Related article: How to convert m2ts to flv and How to convert mts to flv

Oct 03, 2010 | Broderbund Graphics Publishing, Design &...

1 Answer

Play flv files


Are you having trouble playing flv files with VLC?

If so, try reinstalling the program or you can download and use this free FLV Player..

Sep 13, 2010 | VideoLAN VLC

1 Answer

No open flv file

Try following link this will work for you
or you can also open it with real player or flash player if you want to.

Apr 28, 2010 | Microsoft Windows Media Player

3 Answers

I put 2 videos in my web site and when they both play as soon as you go to the site. How do I have media player default to being stopped when the page is loaded?

The easiest way to upload your video files to website and blog
Three steps on how to upload your video files to website or blog?

1. Download, install and open the video to flash converter. And click "Add video" button to open a directory, and browse it to choose your video files.
2. After your have finished crop,clip,merge ,Click the "Start" button to start the conversion. The conversion will be done after a few miniutes later.
3. After conversion, Open the output folder. Upload the files"**.flv", "**.swf" and "**.jpg" to your website hosting server and open html file with notepad, copy the required code to your website.

Oct 11, 2009 | iView Multimedia Website Pros Netobjects...

4 Answers

Cannot play flv files

Hi Jai,

Visit the link below to configure your media player to play flv files

I hope this information allows you to resolve this issue.

If I have helped you, please help me, and rate this suggestion the highest FixYa rating. (Two Thumbs Up) If you cannot rate this post with the highest rating, then please comment to this post and I will try to help you further.

Jun 27, 2009 | Microsoft Windows Media Player

1 Answer

Videos you tubo cant open

Hi seems1 me

You need a player called FLV Player. It's freeware all over the internet.

Download link

Nov 09, 2008 | Macromedia Flash MX

7 Answers

I can't open videos requiring flash player eventhough i've already installed it

If you have Adobe flash player on your computer and you get the message on youtube to download the latest version of Adobe or turn on your Java in place of the video you want to watch, then look at your toolbar at the top of the screen and if there is a pink bar that says the website wants to run an Add On for Adobe flashplayer then click on it and select Allow Add On or Blocked content and the video should run fine.

Oct 21, 2007 | Macromedia Flash MX

Not finding what you are looking for?
Macromedia Flash MX Logo

Related Topics:

196 people viewed this question

Ask a Question

Usually answered in minutes!

Top Macromedia Graphics Publishing, Design & Multimedia Software Experts


Level 3 Expert

18258 Answers


Level 3 Expert

2598 Answers

Sunny Solanki
Sunny Solanki

Level 2 Expert

261 Answers

Are you a Macromedia Graphics Publishing, Design and Multimedia Software Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides