Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Playing .mpg, .avi And .wmv Videos In Flv Playback



hi everybody,

i have a little problem here, i have to play videos on web in flash which are not .flv format, can we play .mpg, .avi and .wmv movies on flv playback or any other 3rd party solution?

please, help me if u guys have any idea. thanks in advance.

prajjwal



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-01-2007, 12:29 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

AS 2.0 FLV Playback Multi Videos
I've set up FLV playback for one video, but need to allow users to choose the next movie they want to view (non linear), as well as allow them to click through each movie in a linear fashion.
Not sure what code to attach to buttons to:
1. Allow non-linear video playback
2. Allow the if/then/else option of going through each video in a linear manner--thinking should attach code to fwd button

Code below, any help would be much appreciated! thx

//------NETCONNECTION SETUP--------------------
var nc:NetConnection = new NetConnection();
nc.connect(null);


//------NETSTREAM SETUP--------------------
var ns:NetStream = new NetStream(nc);

ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Start") {
progressBar.onEnterFrame = videoUpdate;
}
}

ns.onMetaData = function(info) {
ns.duration = info.duration;
}

//------ATTACHING NETSTREAM--------------------
video.attachVideo(ns);

//------PLAYING EXTERNAL FLV--------

ns.play("sample pics.flv");

Array Of Videos Playback, Need Preloader Help
hi im using the code below to load in an array of video files to play continious without a gap so it appears as one video. I need to add a preloader to the beginning to give the first video a chance to load and also add a geturl when the last video has played so it reidrects the user to another page.
Any ideas


Code:
// Set Videos Behavior
var videos:Object = new Object();

// Set Initial video list
videos.list = new Array();
videos.list[0] = "italian.flv"; // initial screen
videos.loop = true;
videos.length = 1;
videos.loaded = false;

// Path to FLVPlayback components
var m = this.myVideo;

// Set the path of the first video feed
m.contentPath = videos.list[0];
//m.addASCuePoint(3, "firstCue");

// Set a 'ready' event handler to load the videos
videos.ready = function(evt:Object):Void {
if (!this.loaded) {
this.loaded = true;
for (var n = 0; n<this.list.length; n++) {
if (videos.list[n].indexOf(".flv") != -1) {
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
//m.addASCuePoint(3, "secondCue");
}
}
m.activeVideoPlayerIndex = 0;
}
};

m.addEventListener("ready", videos);

// Set a 'complete' event handler to load the next video
videos.complete = function(evt:Object):Void {
var nextIndex = Number(evt.vp)+1;
if (nextIndex == this.length) {
if (this.loop) {
nextIndex = 0;
} else {
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
m.play();
};

m.addEventListener("complete", videos);
// End Set Videos Behavior

// Set Video Index Behavior
this.myVideo.stop();
this.myVideo.activeVideoPlayerIndex = 0;
this.myVideo.visibleVideoPlayerIndex = 0;
this.myVideo.play();
// End Set Video Index Behavior


//setup a variable to hold the data
var phpCall:LoadVars = new LoadVars();
phpCall.onLoad = initializePlay;
phpCall.load("movie.php");

phpCall.onLoad = function(status) {
if (!status) {trace(status);}
var movies:Array = [];
movies = this.movs.split(",");
for (var i=0;i <movies.length; i++) {
// move the .flv location to the video list
videos.list[i] = movies[i];
}
videos.loop = true;
};
thanks in advance

[CS3] Drag/drop Videos For Ordered Playback
Currently using CS3, Actionscript 2.0

Hey everyone,

I've been using Flash for a long time (since version 4) but have come across a problem I can't find answered anywhere. My scenario is this: I have multiple video files embedded in an .swf that are playable via a main menu. However, I was wondering if anyone knew of any sort of way to "drag and drop" these videos (as symbols) in such a way that they would play back in that order. For example...lets say I have video1, video2, and video3, all of which are symbols. I drag them in a cascading order like this...

video2
video3
video1

...somewhere on screen, then hit a button to play the videos in this specific order. Is there anyway to write a script that would detect what files are where and play them this way? I initially planned to try doing something with hitTest, but I don't know where to go from there. I don't need complete code - if anyone's already done this, it would certainly help, but all I really need is a push in the right direction. I honestly don't even know if it can be done, though maybe in AS3 it's doable (although admittedly, I'm horrible with AS3).

Thank you for taking the time to read, and to help if you can!!

And I'm sorry for not being able to post files; I'm under an NDA and none of the reference I have has anything on this :/!

Playback Of Array Of Videos, Need Preloader Help And Outro
im using the code below to load an array of videos from php then play them back with a neat little loader of the next video while the previous is playing which helps to play them without any gaps. I need to preload the first video though with a preloading screen and also once all the videos have finished to redirect the user to another page, im stuck with those two things though


Code:
// Set Videos Behavior
var videos:Object = new Object();

// Set Initial video list
videos.list = new Array();
videos.list[0] = "italian.flv"; // initial screen
videos.loop = true;
//videos.length = 1;
videos.loaded = false;

//var totalp = 1;

// Path to FLVPlayback components
var m = this.myVideo;

// Set the path of the first video feed
m.contentPath = videos.list[0];
//m.addASCuePoint(3, "firstCue");

// Set a 'ready' event handler to load the videos
videos.ready = function(evt:Object):Void {
//var totalv = this.length;
//trace(totalv);
if (!this.loaded) {
this.loaded = true;
for (var n = 0; n<this.list.length; n++) {
if (videos.list[n].indexOf(".flv") != -1) {
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
//m.addASCuePoint(3, "secondCue");

}
}
m.activeVideoPlayerIndex = 0;

//trace(totalv);
}
};

m.addEventListener("ready", videos);

// Set a 'complete' event handler to load the next video
videos.complete = function(evt:Object):Void {
var nextIndex = Number(evt.vp)+1;
if (nextIndex == this.length) {
if (this.loop) {
nextIndex = 0;
} else {
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
//totalp++;
m.play();

};

m.addEventListener("complete", videos);
// End Set Videos Behavior

// Set Video Index Behavior
this.myVideo.stop();
this.myVideo.activeVideoPlayerIndex = 0;
this.myVideo.visibleVideoPlayerIndex = 0;
this.myVideo.play();
// End Set Video Index Behavior


//setup a variable to hold the data
var phpCall:LoadVars = new LoadVars();
phpCall.onLoad = initializePlay;
phpCall.load("movie.php");

phpCall.onLoad = function(status) {
if (!status) {trace(status);}
var movies:Array = [];
movies = this.movs.split(",");
for (var i=0;i <movies.length; i++) {
// move the .flv location to the video list
videos.list[i] = movies[i];
}
videos.loop = true;

};

//var totalv = movies.length;
//if(totalp > totalv) {
//getURL("http://www.google.co.uk");
//}

FMS Videos Not Playing On Mac
Happy and healthy New Year to All!
First problem of 2009:
I've setup a site which uses the Flash Media Server to stream flvs.
The videos play fine on PC browsers, but not the Mac.
Anyone know why this would occur?
The test site is http://www.stonyfieldyotube.com/YoTube29.html
Thanks much.

Videos Not Playing In IE
I am having trouble with videos playing in IE, the sound plays and part of the player comes up. I using this flash sytem http://www.jeroenwijering.com/?item=Flash_Video_Player Does anyone have any idea why or have experienced the same problem with using this system?

FMS Videos Not Playing On Mac
Happy and healthy New Year to All!
First problem of 2009:
I've setup a site which uses the Flash Media Server to stream flvs.
The videos play fine on PC browsers, but not the Mac.
Anyone know why this would occur?
The test site is http://www.stonyfieldyotube.com/YoTube29.html
Thanks much.

Playing Videos In FLASH?
Hi is there anyway to Play a MPEG or AVI in a FLASH projector file ...?? ANYWAY AT ALL>??

Videos Inbuilt In Swf Not Playing On Mac
hey i need help my name is aroon and i m facing a problem
i made an application in flash cs3 and now i want to write it on cd but the aplication is not running properly on mac
videos in application are not playing on mac how can i do it plz help
thnx in advance

Videos Are No Longer Playing
I had videos playing on my site in an .swf file. I have not looked at them for some months due to another project. I went back to view them recently only to find that they don't play. I have not touched anything other than download the 9.0 player. I am not sure why I cannot see these videos anymore but I would like to get them playing again. Anyone have any idea what may have happened??

Can't Stop The Videos From Playing
Hello, I was wondering if anyone could help me. I have quite a few videos on my web pages but they play automatically when i get to the page. and all play at once. Im trying really hard to stop them so this doesn't happen. Ive tried using the behaviors and actions but nothing is working. Could anyone help?

Playing Videos In Flash
Hi guys,
I need help making a flash file that can play videos dynamically. And the player stacks up/displays available video files, something like a playlist. Any suggestions are very welcome. Thanks!

Playing Multiple FLV Videos.
I'm loading several different link to .flv videos.  I want each one to play in the same window.  Currently, I can get the first one I click to play but the others just make it sit there like its trying to download.  My trace function still outputs but the video just goes blank.  It doesn't matter which one either.

CODEclass ClipMenuItem extends MovieClip {
    var ClipURL:String;
    var txtClipName:TextField;
    
    function init(myVideo:VideoClip) {
        this.ClipURL = myVideo.filename;
        this.txtClipName.text = myVideo.VideoTitle;
    }
    
    function showClip() {
        this._parent._parent.ClipPlayer.load(this.ClipURL);
        this._parent._parent.ClipPlayer.play();
        trace("Loading "+this.ClipURL);
    }
    
    function onPress() {
        this.showClip();
    }
}

Playing 3 Mpeg2 Videos In Flash
Hi there,

I want to play 3 videos which use mpeg2 compression, on loop, in a large flash compostion, spread across three monitors. If possible I want to keep these as mpeg2s rather than using the Sorenons video options and importing them into flash (this keeps crashing flash). Is it possible to call these mpegs up from an external location rather than importing them in. If this is not possible, and I am forced to import and use Sorensons is there a way of increasing the amount of memory available in flash.

Thanks very much,

Michael

Mute 7 Of The 8 Videos Playing Simultaneously
Hello there.
I have a flash sequence where I play 8 videos all at the same time. However I want to let just one of the sound related to those videos be hearable (otherwise you can imagine the mass!)
They are all in different layers. i tried to apply volume(0) to a single layer but quite unsuccesful. how can i say file x mute, file y volume 100 etc..?

Here is a screenshot:

Playing Myspace Videos With Actionscript
I'm making a flash website for someone and I need to be able to play their myspace videos. I'm thinking that I would just used loadmovie or the movieloader object to dynamically load the flv into a movieclip.

The immediate problem I see though is that that the path to the flv is not readily available. Myspace video urls have a videoid at the end, and I assume that there is some way to get the flv from that.

Does anyone here know how to do it? Is there a standard way to play myspace videos within flash?

Flash Software: Playing A Few Videos
Hi,

I have a question about watching falsh video online. I use Internet Explorer which opens flash video in a separate window where it is played. Usually if I click on another flash video link while already having flash video running in this window, it will interrupt the running video and load the new one in this very window. So I was wondering if there's any player/program that would allow to load falsh video from numerous links in numerous corresponding windows at the same time (so I could watch all of them simultaneously or watch one of them while the others are loading).

Many thanks for advice.

Help In Playing Flvs Videos Sequentially
Hello everybody,
I have AS that plays my flvs videos from xml list

var xml:XML = new XML();
xml.ignoreWhite = true;

var flvs:Array = new Array();
xml.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<videos.length;i++) {
flvs.push(videos[i].attributes.flv);
}
vid.play(flvs[0]);
}

xml.load("videos.xml");

var flvList:Object = new Object();
var count:Number = 0;
flvList.complete = function() {

count ++;

}

vid.addEventListener("complete",flvList);




but I cant get the next video to play as soon as first ends.
any help is welcome, thanks a lot
Tomi

Playing Multiple Videos Seamlessly
Hello,

I am a bit new to Action Scripting but a pretty seasoned web developer.

I have a requirement to basically allow users to select 3 clips from a bank of 9. These clips needs to be shown in the order they were selected seamlessly.

I wanted to store their selections in a MySQL database through PHP. Then, through PHP spit back an XML list of videos to be played. Finally, I wanted to pass this list to a player that would be able to show them with no interruption in between clips.

It would be ideal if this did not require anything special like Flash Media Server, and it needs to be able to handle a decent sized audience.

Can someone please tell me is this possible and point me in the right direction?

I've already come across the tutorials for playing an XML video list but I obviously don't want the user selection piece so it needs to happen automatically.

Thanks in advance.

Multiple Videos Playing At The Same Time
Ok, this is a tricky one for me, because I'm new in actionscript (i'm not even sure if I'm posting this in the right place):

A client asked for a start page where 4 videos should play a movie from same movie file with delay from 1 to 4. The pictures in the movie appear first in movie 4, then 3, 2 and finally 1. Each with a different time sequence. A few seconds after the first one loads and start playing, the second one will load and start play also, then the 3rd one, and finally the 4th. After they all load, they will keep playing (eventually looping) at the same time (No, there's will be no audio)

I think the effect is something like this, only that in my case the videos should appear in a sequence: http://www.feelsomething.com.au/

I tried to simply import some videos as flv, then putting them in different frames of the timeline, but as soon as a second video loads, the first one stops playing. The same thing happened with videos loaded from an external server.

Any help, please!!!

Switch Between External Videos, While They All Are Playing
Hi All, I am in a situation where I have three similar videos of one football match of the same length, the difference in the videos is that these are shot from three different cameras. I have staged them in three small icons and one of them is playing in a bigger size in the centre of the stage.

Now the requirement is to switch three of them in the bigger size as the user click on any one of them. And the video clicked should switch in the real time while all three videos are playing. None of the video will stop at any gievn time...all three will play in the small icons and one of them will play in the bigger size, user will decide which one and at any time while videos are playing. Please consider that videos are bigger in length and the file size is 50 MB and in 720*540 resolution.

Please help out in detail if possible.

Playing Multiple Videos In Sequence
Hello all. I'm a complete newbie to Flash development, but have been thrown into it with not just a deadline, but a (to me) "complex" project. I have a Flash project which currently opens and plays a video as part of whats on "the stage". I now need to add 2 more videos which will play, in sequence, after the first one finishes. I've gone through the tutorials, read the help files, and now I'm just feeling a bit "DUH" because I still can't figure out how to do this. Anybody out there care to help a poor ol' graphics guy avoid the bitter wrath of his boss?

Tutorial On Playing 2 Videos In Same Spot
I'm a Flash newbie looking for tutorials on using Flash to play either one .FLV or the other in the same spot. I would use 2 buttons to determine which one played, and the background would load with neither .flv playing. 9I've found lots of tutorials using one video, just not two.) I'm using the Flash 3 demo and it has informed me that at least one of the .flv's requires AS 3.0. I could re-encode if necessary to make it all AS 2.0 happy.

Quicktime Videos Playing In Flash
So what I am trying to do is have links to Videos on my Flash website. What exactly I want is in the image: Link
The links are all in a Movie Clip inside of my website. I have tried the gotoAndPlay function on the buttons and having the video imported on frame (ex.)2 and having the buttons on frame one with a stop action on the first frame, but that did not work. I dont really know what else there is to do. And I do not want to link to the videos or anything I need to have them inside the flash. Thanks for any help

Three Videos Playing. Make Them Stop
Hi, i have 3 shockwave videos that i DON'T want playing when the user comes to the screen. i'm loading them using loadMovie, as in below.

videoContainer1.loadMovie("shockwaveMovie1.swf");

this is in the first frame of my actionscript.

they load into 3 video players that i just duplicated and gave instance names to so that i could have independant control. the problem is, they play from the first frame. i want the user to be able to start them themselves, since it would be kind of annoying to have to watch them all at once. that being said, i DO have a compelling reason for having them on the same screen.

so -- how do i stop them from autoplaying?

Playing Flash Videos Faster
Hi,

Is there a way to take a flash video file and have it play at a faster frame rate? I need to have/create a player that allows for faster playing from 1 to 4 times. During this playback, I'd like the audio to be audible if the playback is 2 or less AND adjust it's pitch so it sounds mostly normal.

How can I do this?

Thanks!

Jay

Problem Playing Sequential Progressive Videos
Hey, I've been banging my head against the wall on this and didn't know if any of y'all have a solution other than getting a proper streaming server.

I have a series of video clips which I load into a built-in flash video component. This seems to work just fine. I've added a listener event to add them on movie.ready.

The problem comes in playback. Because these flv files are coming off a server, flash has no idea how long they are. When I add the movie.complete listener to the component to go to the next flv upon completion, it works fine for the first clip (the second clip starts as expected) but subsequent clips start to play and then the listener is triggered unexpectedly. The result is that the player moves to the next clip before the clip is actually finished.

Anyone solve this problem before?

Thanks!

Playing Multiple Videos In Single FLV Instance.
Hi, I'm trying to get a video application to work. The basic question I have is: can i get multiple videos on a flash streaming server to play in a single FLVPlayback instance? (I want the user to be able to choose the video based on a button, not play in succession.) Or do I have to set up a custom player using NetConnection and NetStream classes along with the NetStream.play(vidname) method ?

I really need to be pointed in the right direction on this because the project is due asap.

Thanks!!!

Why Did Crossdomain Not Stop Me From Playing Youtube's Videos?
In the docs from Adobe.com,
it says:
Cross-domain policy files affect access to a number of assets, including the following:

* Data in bitmaps, sounds, and videos
* Loading XML and text files
* Access to socket and XML socket connections
* Importing SWF files from other security domains into the security domain of the loading SWF file


But when I tried to access the videos on Youtube, I found it possible to load and play, seek completely. But checked this file, http://www.youtube.com/crossdomain.xml it did not put my domain on it. (not only locally but also when putting my swf on a server) So why sometimes we can access the flv files but sometimes we cannot do that with XML files? It's really weird

Thanks in advance

Multiple Videos Simultaneously Playing In Flash
I am starting a project and I am wondering if Flash has the potential to do what i want in the end result. The final result will be an application that the user can interact with that will have at least 5 different videos simultaneously playing onscreen at all times. So say the screen is only 800x600, that would mean at the least you would have 5 (80X80) videos playing all at the same time. The application will also need to have other videos that just aren't playing but are sitting still at a frame specified by the use.

For instance, one thing I would like to implement is if the user were to mouse over a video then maybe a menu would come up, or the video might just start playing from the frame it was currently at, and then, when the user leaves that video with the mouse, it would stop playing.

Does this sound like a flash app, or should I look into something that can handle more video style bandwidth. I am mainly worried about memory and if computers, especially mine, can even run a program like this.


Switch Between Videos, While Playing Real Time
Hi All, I am in a situation where I have three similar videos of one football match of the same length, the difference in the videos is that these are shot from three different cameras. I have staged them in three small icons and one of them is playing in a bigger size in the centre of the stage.

Now the requirement is to switch three of them in the bigger size as the user click on any one of them. And the video clicked should switch in the real time while all three videos are playing. None of the video will stop at any gievn time...all three will play in the small icons and one of them will play in the bigger size, user will decide which one and at any time while videos are playing. Please consider that videos are bigger in length and the file size is 50 MB and in 720*540 resolution.

Please help out in detail if possible.

When A Sound Stops Playing So It Can Start Playing Another Sound :Monitoring Playback
I'm attempting to do a very simple thing and I'm very perplexed. My girlfriend is an opera singer and all I'm trying to do is advance the audio track when the song finishes playing to go to the next frame. On the surface it seems easy, however I can't seem to figure it out. Perhaps you can help?

Check out the movie here: http://www.earthgrid.com/earthgrid/valentina.html


Here's my code its on frame 2 in the movie



Code:
stopallsounds();
s2.close();
s3.close();
var s1:Sound = new Sound();
s1.loadSound("Agnus_Dei.mp3", true);
s1.start();
stop();
Explanation:: the flash movie has buttons that allow you to navigate between the 3 different music tracks.

when you click on a button, first I close the loading of the previous track, ie. s2 and s3, if they are still loading.

What I'd like to do is insert a command that advances to the next track (which happens to be on the following frame, 3) ONLY when the first audio track is finished PLAYING, not finished 'loading'

something like:
s.addEventListener(Event.SOUND_COMPLETE, gotoandplay (3);
);

so that when Agnus Dei finishes playing it goes to the next frame which starts the next track.

but that' doesn't seem to work.

I found this URL in Adobe's support site:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000283.ht ml

it says this:

Your application might want to know when a sound stops playing so it can start playing another sound, or clean up some resources used during the previous playback. The SoundChannel class dispatches an Event.SOUND_COMPLETE event when its sound finishes playing. Your application can listen for this event and take appropriate action, as shown below:


Code:
import flash.events.Event;
import flash.media.Sound;
import flash.net.URLRequest;

var snd:Sound = new Sound("smallSound.mp3");
var channel:SoundChannel = snd.play();
s.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);

public function onPlaybackComplete(event:Event)
{
trace("The sound has finished playing.");
}
>> However, when I try to paste in this code into a frame in Flash CS3 it gives an error saying I have to put it in a 'package'
I tried that, putting this code into a file and saving it as a .as file


I really don't get how to do this Package thing in CS3, so I couldnt get the example to work.

If so please contact me Please help!

Flash Videos Not Playing On Server: Failed To Load FLV
I am trying to load video into FLVPlayback Component. It seems to work when I view the file in the flash program, but when I upload it to my server it doesn't work - I just get a blank page (which seems to be reading the Flash, because I get that Click to Activate to use this control - but no video plays.)

I have tried importing it via the two methods of local - local works locally but doesn't work when I move it to server. Tried the already deployed on a web server option (I am not using FCS) and I get Failed to Load FLV: ( I tried googling the answer and didn't come up with anything).

I have tried relative and absolute paths, and still cannot get it to play. Could there be an issue on my server that is not allowing these videos to play, or could the server not know what to do with FLV files?

Please help, I am ready to pull my hair out.

Thanks

Weird Issue With Loading And Playing Videos Externally - URGENT
I have a project I'm working on where I have an FLV Playback component on the stage, with thumbnail buttons below to create sort of a video gallery. When the user clicks on each of these buttons, a different FLV file will load in the FLV Playback component, which currently works GREAT when previewing in Flash.

I'm using the following code to link the button input with the FLV component on the stage:

btn_Audi.onRelease = function() {
videoPlayer.contentPath = "Audi.flv";
};
btn_Bridgestone.onRelease = function() {
videoPlayer.contentPath = "Bridgestone.flv";

However, when I go to Publish to a folder to upload to the web, I go to click on one of the thumbnails and the video never loads. I get the controller bar sitting there scrolling the barber-shop style colors, but no video loads. I've checked, re-checked, and triple-checked to make sure ALL the necessary files are in the directory (since it seems like it's having some issue finding or loading the video file(s)). I'm completely out of ideas and need to know if anyone has any thoughts as to what it could be.

Oh, and should it matter that I have this videoPlayer component "buried" inside the project, as in Scene 1 > movieClip > movieClip > videoPlayer ? I wouldn't think it would... but maybe?

Thank you so much in advance -

Michael

Control And Playback Of AS2 SWF Playing In AS3 SWF?
Hi,
I have a rather interesting techincal question:
1. For starters I have a main flash movie which was developed using AS3 code. It is a video player type flash movie set up to play SWF files including 4 selectable SWF segments.
2. However I have received the 4 existing SWF files from the client which were developed using AS2. Most likely they will not be able to provide original FLA files because another company has created the SWF presentations long time ago.

Can I load and control the playback of the external AS2 coded SWF files in the main AS3 coded environment? And I mean having complete access to it? (not just fast forward, pause, stop but also communicate with it)

Thanks,
Attila

Playing Mp3 In Media Playback Component
Hi,
Does anyone know if there is a tute that explains how to create a music list (mp3's) in XML that can be loaded into the Media Playback component for playback and control.

Unless of course, there is a better way to play about 10 mp3 files. I would like to have a list and let the user choose which song to play then control with it with the media component.

Thanks.

Video Playback Not Playing In AS3 Flick
Got a simple AS3 movie going on where the flvPlayback component (feature) is supposed to stay invisible until the PLAY VIDEO button (playVideo_btn) is clicked upon. But nothing is working. Video doesn't play and PLAY VIDEO button doesn't disappear. Why? Here's my AS3 (I think) code:

playVideo_btn.addEventListener(MouseEvent.MOUSE_DO WN, pv);
function pv(evt:MouseEvent):void {
this.visible = false;
feature.visible = true;
feature.play();
}

Playing Mp3 In Media Playback Component
HI,

Since I'm fairly new to Flash, I thought I would use the built-in Flash MX 2004 Pro Media Playback component to play a list of mp3's. Does anyone know if there is a tute that explains how to create a music list (mp3's) in XML that can be loaded into the Media Playback component for playback and control.

Unless of course, there is a better way to play about 10 mp3 files. I would like to have a list and let the user choose which song to play then control with it with the media component.

Thanks.

Checking To See If The FLV Playback Component Is Playing
I have a FLV Playback component set up on my stage with a video chooser under it. I need to see if the player is playing because if I click the same video that already playing my play button comes up and the video starts to play again. I am including the code that I have on the chooser button:


Code:
thumb2.onPress = function () {
vidPlayer.removeEventListener("complete", shareLinks);
videoToPlay = box2;
vidPlayer.seek(0);
vidPlayer.stop();
checkAd();
if(textAdVisible == true && textAdType[videoToPlay] == "full"){
closeAdFull();
}else if(textAdVisible == true && textAdType[videoToPlay] == "half"){
closeAdHalf();
}
}
It seems that as long as I choose a different different video than what is playing it works fine.

thanks in advanced for any help

brostd

How To: Condition, If X Is Playing, Stop It. & How To: Reverse Playback
Hello,

1st Question
With a button, wanting to play a MovieClip2, how can I make a condition such as:

if MovieClip1 is running/playing, stop it and then play Movieclip2
else
if Movieclip2 is running/playing, keep playing it.

2nd Question
How to tell an animation inside a movieclip to do a reverse playback of himself?

FLV Video Not Playing With Media Playback Component
I am using Flash MX 2004 Pro and I have added the media playback component to a layer in a scene with several other layers. Using the component inspector, I have linked the corresponding flv file which resides in the same directory as the fla file. I have utilized several tutorials and followed every step. In fact, when I open a new fla and follow the same steps, the movie plays perfectly. It is only in my website in the particular scene that it won't play. When I test the movie (or publish it), it only displays a white box with Player written on it. Is AS Necessary? I thought you only had to add the media playback component and using the component inspector to set the url to the flv file and it will just play. What am I doing wrong?

Advancing Playback Head Once A Movie Clip Has Stopped Playing
I have 6 movie clips that each play a short annmation. I want to place these movie clips one after another into my main timeline. Once my first movie clip has ended, I want it to tell the main timeline to move the playback head forward and play the next movie clip or whatever else I have there.

Can someonle pleae tell me how to do this.

Thankyou so much!
Graham

BEST Flash Video Compressor For High Quality Videos (TotsTV.org Videos
Hello everyone, I manage the Toys for Tots TotsTV.org Web site (at http://TotsTV.org) for the U.S. Marine Corps Toys for Tots foundation (the national children's charity). At http://TotsTV.org we feature a number of high quality family-friendly videos. All of the content on TotsTV.org is in Flash format, including the games and music, but the videos are a real problem for us and I wonder if anyone has advice on how best to solve the issue?

 The problem is that although the video quality (size and resolution) is good, the videos are still very large (from 25MB to 35MB each!) and as a result most people at home can't view them. Our site stats show that thousands of people are abruptly leaving TotsTV.org once they try to view the videos, so the current solution is actually driving people away from this non-profit children's charity site!

Clearly we need to re-encode the videos (originals are in AVI format) using a better Flash compression tool. We've been using "Swish Video 2" from SwishZone, and we like the image quality but the file sizes are just too large. Are there better tools that we should use instead?

For TotsTV we need to keep the dimensions and visual quality of the videos the same as we have now (high quality overall), but we really (REALLY!) need to reduce the file sizes to something more reasonable that a home user can download in timely fashion.

Any advice, pointers or direction you could give me would be a great help to me personally and the U.S. Marine Corps Toys for Tots foundation. Thank you very much for your help!

Barbara Mikolajczak
Manager, TotsTV.org
U.S. Marine Corps Toys for Tots Foundation

Synchronize Video Playback With Image Playback
Hey guys, I was wondering how can we synchronize a video playback with an image slideshow, what I would like to achieve is to have the image slideshow playback follow the sequence of a video playlist, so supposing I have item 1(a video) playing I would want the item 1(image) show up for the duration of the video and change to the following image when item 2(video) starts playing.
Any ideas? Should I have one playlist for both videos and images or two seperate playlists, one for video and one for images?

I'm open to suggestions as long as i can get the image playback to follow the video playback.

Thanks in advance.

Flash Player Not Playing Not Playing Properly Low Bitrate Sound
Hi,
I have created a flash audio player which can play streaming audio (mp3) files and it takes data from external xml file. Everthing is working fine. But when i used a low bitrate mp3 file (size 600 kb, time 3min approx) , it plays the audio with max speed and get ended in 30 seconds. The same audio file is playing normally in windows media player, or winamp,etc.
Plese give me some idea what is happening ........
Thanks,
Gunjan

Check If Movie Clip Finish Playing Before Playing Next
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.

I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.

I know it's all done with variables but just cant figure out how to put it together.

here is what i have so far.

menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();

}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}

thanks for any help in advance

How Do I Check To See If A Sound Is Already Playing Before Playing When Pressing Play
Okay, i really need some help on this. I have a play button where if clicked will play the sound over the top of it when its already playing, if that makes any sense. the sound is already called on the first frame. if the user clicks the play button again, it will play over it.

heres my play button code. i need to know what to add to add to make it check to see if the audio is already playing. My audio sound is named myMusc.

ActionScript Code:
on (press) {
if (playing != true) {
if (paused != true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(0, 999);
}
if (paused == true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(myMusicPosition, 0);
_root.myMusic.onSoundComplete = function() {
myMusic.start();
};
}
}
}
Thanks

Playing A Certain Frame, After A External Swf File Has Started Playing?
Hi,
This is my first post here.

I need to know how to have a certain frame in my movie start playing, after a external movie I have has started playing.

The problem is basically sync., and I want a certain frame to play only after the external movie begins to play.

I'm using...

loadMovie("http://www.alainshep.com/alain.swf", 66);
if (playing) {
gotoAndPlay("begin");
} else {
gotoAndPlay("start");
}


The external movie plays after it loads, but I just don't know how to set it up for the frame I want to play after it has started playing.

Please Please someone help me..

[CS3] About Videos
Greetings all:
I have made a video and I've imported it over to flash CS3 and into a SWF movie. Now I am trying to export the entire movie over to Frontpage as my Index file but when I preview it the video I imported wont play whats am I doing wrong? Or is there something new you have to do when you import or export a movie using Flash?

Copyright © 2005-08 www.BigResource.com, All rights reserved