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 parth_you on

Ad

1 Answer

Anonymous

  • Level 1:

    An expert who has achieved level 1.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 4 Answers

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

// flv player..
// developer.. Rananjay Singh
// video instance name = thevideo
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
the_video.attachVideo(ns);
ns.play("vegas.flv");
//made control on new layer button name = Rewind button,play button
rewindbutton.onRelease = function() {
 ns.seek(0);
};
playbutton.onRelease = function() {
 ns.pause();
};
//loader..
// 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() {
 clearInterval(videoInterval);
 scrubInterval = setInterval(scrubit, 10);
 this.startDrag(false, 0, this._y, 208, this._y);
};
loader.scrub.onRelease = function() {
 clearInterval(scrubInterval);
 videoInterval = setInterval(videstatus, 100);
 this.stopDrag();
};
function scrubit() {
 ns.seek(Math.floor((loader.scrub._x/208)*duration));
}
//buffering---- made a videosize blackmc & inside that give text alpha animation,, named buffer
ns.setBufferTime(30);
ns.onStatus = function(info) {
 //if(info.code ==)..... see netstream class in help & compleate it
};
// custom ontextmenu..
var themenu:ContextMenu = new ContextMenu();
themenu.hideBuiltInItems();
_root.menu = 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() {
 ns.pause();
}
function replayit() {
 ns.seek(0);
}
// and now prepratin foe volume control
//make a four stage movi clip for sound .. named normal,onover,mute , muteover
_root.createEmptyMovieClip("vsound", _root.getNextHighestDepth());
vsound.attachAudio(ns);
var so:Sound = new Sound(vsound);
so.setVolume(100);
// button name = mute
mute.onRollOver = function() {
 if (so.getVolume() == 100) {
  this.gotoAndStop("onover");
 } else {
  this.gotoAndStop("muteover");
 }
};
mute.onRollOut = function() {
 if (so.getVolume() == 100) {
  this.gotoAndStop("normal");
 } else {
  this.gotoAndStop("mute");
 }
};
mute.onRelease = function() {
 if (so.getVolume() == 100) {
  so.setVolume(0);
  this.gotoAndStop("muteover");
 } else {
  so.setVolume(100);
  this.gotoAndStop("onover");
 }
};

Posted on Oct 29, 2007

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

Flv player formet is not working in my mobile sony ericsson satio u1


hi buddy

try to download an FLV player from www.mobile9.com, this website is going to help you download the application you want for video formats like .avio, mp4, flv etc..

Jun 06, 2011 | Cell Phones

Tip

Free video to flash converter, video to flash converter freeware


Free video to flash converter Lists Flash video (FLV and SWF files) are not strange for webmaster in that flash video is the first choice to add video to website for many advantages of flash video: compatibility with the most Web Browser(IE, Firefox, Safari, Google Chrome, Opera, etc), small size to take less bandwith space and beautiful flash video players.
However, there are still some problems exsiting. The most headache is how to get flash video. Making flash video with flash mx or flash pro 8 is quite complicated and hard to do, especially for flash newbie without any programming and actionscript knowledge. So do you have similar problem and are you searching for a video to flash converter?
This article will introduce four video to flash converter freewares, so you can convert video to flash free.
First. Pazera Free video to flash converter
Convert audio and video files to flash video format(FLV, SWF). AVI to FLV, AVI to Youtube FLV, AVI to SWF, MP3 to FLV

Second Freeware: DVDvideosoft Free Video to Flash Converter
This Video to Flash converter freeware can convert avi, mpeg, mpg, mp4, m4v, wmv, asf, mov, qt, 3gp, 3g2, .dvr-ms, .flv video files to flash(SWF/FLV) to publish video on your website or blog. Free video to flash covnerter contains no spyware or adware and free fully. Specially the free video to flash converter includes 28 variants of flash palyers. Four types of flash player: mini player, classic palyer, maxi player, multi player. And it supports Windows XP, Windows Vista, Windows7.

Third: Super encoder

This free encoder cna render in various Multimedia formats, including convert video to flv and encode video to swf

Fourth: Doremisoft video to flash converter

This video to flash encoder, the best flash converter, can convert almost all video to flv and swf flash video. Specially, it can generate an html web page embedded with flash video. So that you can add video to website without any programming. And it provides you with many editing and customize features, such as clipping, cropping, sliding, merging and many flash player, special effect and preloader template. Free to try this video to flash encoder.

on Jul 09, 2010 | Computers & Internet

Tip

FLV to SWF converter for mac, convert Flash FLV to SWF on mac


PartI. Difference between FLV and SWF
PartII. How to play FLV and SWF on mac
PartIII. How to convert FLV to SWF on mac

PartI. FLV VS. SWF

What is FLV?

FLV files (Flash Video Files), a binary file format, are composed of a video bit stream and an audio bit stream and deliver web video over the Internet with Macromedia Flash Player. FLV files are considered to be streaming video files. If you put FLV file in website, you don't have to download the entire file before playing. FLV content may also be embedded within SWF files. The audio and video data within FLV files are encoded in the same way as they are within SWF files. Unlike SWF format, FLV do not have maximum of 16000 frames limitation and ideally for large video file size. Notable users of the FLV format files are YouTube, Yahoo video, Google Video, Reuters.com, My Space, Facebook video etc.

What is SWF?

SWF (Shockwave Flash)- The file format SWF is a vector graphics file format, not streaming media. SWF file can be played directly in web browser, such as Internet Explorer. However, FLV file can not be playback directly, because it requires a separate SWF file which reads the video content from FLV. The SWF file that plays FLV file is called online flash player. Intended to be small enough for publication on the web, SWF files can contain animations or applets of varying degrees of interactivity and function.

PartII. How to play FLV and SWF on your mac

FLV and SWF are currently very popular over the Internet. When you have downloaded many cartoon movie files which are in SWF file format from Internet or downloaded a video from video sharing website like Youtube to your Mac, you must want to play them in the formats of FLV and SWF. However the default Player on Mac, QuickTime Player, can't playback them. Luckily, the problem will be fixed when you use SWF&FLV Player.

SWF&FLV Player, which is based on the standard Adobe Flash player for Mac OS X, SWF & FLV Player by Eltima Software offers advanced and unique features that allow you to play, rewind, fast-forward and preview SWF and FLV files frame-by-frame, and also create and manage playlists, zoom movies in and out, fit to current window size or restore to original one, set playback quality, control Flash security, check SWF file’s comprehensive information and lots more.

PartIII. How to convert FLV to SWF on mac

Want to publish your website and insert a SWF file into it, right? Use Flash 8.0 to create an embedded SWF with for your web site, however, you will find that the created SWF file goes out of sync in video and audio. How to solve this problem?

A workaround is FLV to SWF converter for mac which is a special flash creator. Mac FLV to SWF converter can convert FLV to SWF as simple as a piece of cake, without any actionscript and programming. Mac FLV to SWF converter empowers you to embed your SWF in a HTML web page during flv to swf conversion.

Step1. Add FLV files
Click "Add video" button to open the directory and choose all FLV files you want to convert.

Step2. Take slide
Choose two or more FLV files and click "Slide" button.

flash-slideshow.jpg

Step3. Choose a customize flash player
Go to "the step3 of cutomize" panel, and then hit "Player" tab to choose a customize flash player for your flash video.

flash-player.jpg

Step4. Set a flash preloader template
Press the "Preloader" tab to select a cool flash preloader template.

set-preloader.jpg

Step5. Convert FLV to SWF
Hit the "Start" button to start FLV to SWF conversion.

Next: Create free flash slideshow for website with photos.

on Jun 24, 2010 | Computers & Internet

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.
moz-screenshot.png

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

Tip

Three ways to convert MOV to Flash video FLV, SWF on mac


On mac, MOV is one of the most common video formats. MOV file, a Quicktime video file, is a video and audio container format developed by Apple Computer Inc.

Recently, I found that many mac users are confused on how to convert MOV to Flash video, turn quicktime .mov files into FLV, change MOV movies to SWF flash video on mac. As a video fan and webmaster, do you have the similar problem?

Yes? No worry! This passage will list 3 methods for you to convert MOV to flash video, including methods for mov to flv converting and converting mov to swf file. You can choose the most suitable one according to your requirements.


First Method: Using Flash 8 video Encoder to convert MOV to Flash FLV files

Flash Professional 8, a Flash Video Encoder application, is purposed to convert the video file including MOV to FLV format. What's more, with Flash 8 video Encoder, you can directly export FLV files from QuickTime, Adobe After Effects, Final Cut Pro, and so on.

Cons: Flash video Encoder just supports video but not audio. The audio portion of the file cannot be imported or the audio section will be dimmed in the Encoder. And it just can convert MOV to Flash video in FLV format, but not in SWF format. It can't do batch conversion.

If you are interested in how to use Flash Video Encoder, you can visit: http://www.adobe.com/designcenter/tutorials/videoencoderwizard/

Second Method: With QuickTime Pro to convert MOV to Flash video(FLV)

I know QuickTime Player(QT) is not strange for all of you. But about QuickTime Pro, how much did you know? Did you know QT Pro has the ability to convert and edit video?

QuickTime Pro is the upgraded version of QuickTime Player. You have to pay $29.99 to get the upgraded one. Using QT Pro, you are able to convert clips to a number of formats, including convert MOV to Flash video. And the operation is easy-to-done.

Cons: It supports to convert MOV to Flash video in FLV format, but not in SWF format. It has no batch converting mov to flv ability.

How to using QuickTime Pro to convert MOV to Flash video(FLV)

Step1. Open an MOV file with QuickTime Player. Go to 'File', then select 'Export'

Step2. In the list of 'Export', choose 'Movie to Flash video(FLV)'

Step3. Finally, Click 'Save' button

Third Method: By Mac MOV to Flash converter to turn MOV to SWF and FLV

Doremisoft MOV to Flash converter Mac, a great FLV and SWF Flash video Creator, can convert MOV to FLV, change MOV to SWF on mac. And It is able to embed video in an HTML web page. Mac MOV to Flash converter provides a wealth of features: powerful editing and practical customize features, such as video clipping, merging, cropping,sliding, free flash player, effect, loading template provided, adding text/image, url to flash video...

Pros: MOV to Flash video converter mac can not only convert MOV to FLV file, but also convert MOV to SWF with customize flash player and skinning control bar. And it supports batch conversion, so you can import and convert as many video files as you wish. Easy-to-use, no actionscript required.

More details for features of Mac MOV to Flash converter, please visit introduction of flash converter.

How to using Flash converter to convert MOV to Flash video(FLV & SWF)

Step1. Import MOV files to Flash converter
Download Flash converter mac, install it as its installation wizard. Run it and add MOV files you want to convert.

Step2. Start Convert MOV to Flash converter
After importing MOV movies, Click 'Start' button to get MOV to Flash conversion started. The process can't be easier more. Two steps is all right.

mac-mov-to-flash-converter-flv-swf.jpg

Next: Customize and make your own Flash player.

on May 12, 2010 | Computers & Internet

Tip

How to convert flv files on mac


What's FLV
3588477112_fd8be0a259_o.jpg
Flash Video (FLV) is a file format used to deliver video over theInternet using Adobe Flash Player (initially produced by Macromedia)versions 6–10. Until version 9 update 2 of the Flash Player, FlashVideo referred to a proprietary file format, having the extension FLV.Notable users of the Flash Video format include YouTube, Google Video,Yahoo! Video, Reuters.com, metacafe, and many other news providers.flvis so popular and we need frequently convert .flv on mac.

How to download online youtube FLV video on Mac
The best choice is to use the free youtube tool named Free youtube Downloader for mac.
Commonly, many users are bothered that found an interesting videoonline but cannot save it on Mac. Actually, it is not hard to downloadFLV video from YouTube video-sharing sites with the Aimersoft freeyoutube downloader for mac.

How to play FLV on Mac
An FLV player is a type of media player that is used for playing flashvideo from PC as well as from Internet websites. An FLV player can beused standalone, without the need of the Adobe Flash authoring ordevelopmental tools.
The following player supports FLV files in their default installations:

Aimersoft free youtube dowloader for mac.

How to convert FLV to MP4, MOV, MKV, AVI, etc on Mac OS
flv converter for mac is a professional Mac FLV converter to convert FLV video to MOV, MKV, MOV, MP4, AVI, etc on Mac.
This Mac flv Converter also help you convert all the other audio andvideo formats from one to another on Mac, e.g. WMV (Windows MediaVideo), AVI (DivX, XviD, etc.), MPEG ( MPEG1, MPEG2, VCD, SVCD), MP4,3GPP, 3GPP2, MOV, IFO, VOB, DAT, ASF, MKV, TS, MTS, M2TS, TP, TRP, MP3,M4A, WAV, AC3, MKA, etc.
flv converter for mac has a friendly interface to users for mac .Moreover, it can convert .flv on mac with good quality.
*If you need to convert DVD to FLV video on Mac, just free download this DVD to FLV ripper for Mac.

How to download online FLV video to iPod, iPhone, Apple TV, etc
Want to download on line FLV video and play FLV video on iPod, iPhone and other portable players?
First download with free youtube downloader for mac and then,convert them to iPod, iPhone and other portable players?
This all-in-one flv converter for mac will convert flv files good formac users and then you can upload them to YouTube, Google Video, Yahoo!Video, Reuters.com, metacafe and many other video-sharing websites, andconvert flv mac or t convert them to all the other video and audioformats such as MP4, MOV, MKV, AVI, MP3, M4V, AAC, etc on Mac OS, allthe output video can be player on iPod, iPhone, Apple TV, PSP, PS3,iRiver, and Creative Zen etc.

In our daily life, online videos are more and more popular, we enjoythem. However, just videos online can't satisfy our needs. Sometimes,we are likely to download it or put it on our portable player. If youwant to this, the information above can help you a lot. Now, just findwhat's your favorite online videos and do more with them.

on Feb 05, 2010 | Computers & Internet

5 Answers

Cannot play flv files


Hi Jai,

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

http://www.mediacollege.com/adobe/flash/video/windows-media-player/


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
http://freewarelist.net/FLV-Player.html

Nov 09, 2008 | Macromedia Flash MX

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

Related Topics:

201 people viewed this question

Ask a Question

Usually answered in minutes!

Top Macromedia Computers & Internet Experts

Folusho Adeyanju
Folusho Adeyanju

Level 2 Expert

132 Answers

Ekse

Level 3 Expert

13434 Answers

Brad Brown

Level 3 Expert

18186 Answers

Are you a Macromedia Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...