ActionScript 1/2 :: Playing A Video (FLV) In From Library?
Jul 15, 2008Is it possible to play a video by loading it (attaching it)from the library. We do not want our videos to be external files if at all possible.
View 2 RepliesIs it possible to play a video by loading it (attaching it)from the library. We do not want our videos to be external files if at all possible.
View 2 RepliesIs there anyway to use the playback components to play a video imported into the library? (The .swf I'm creating has to be stand alone so I need the video to be imported). Also can the component video skins be imported also?
View 1 RepliesI am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...
If the VIDEO (FLV) is done playing, gotoAndPlay(X)?
I suppose the title says it all. I can load an external video file (FLV) and I can have it play. I also have the custom buttons made to control the clip. The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end. I am using actionscript 3 and flash cs 5.5.
View 7 RepliesI've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:
Code:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");[code].....
I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.
View 3 RepliesHow can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
[code]....
How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();
[Code]....
I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.
Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....
I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.
Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;
[code].....
I am getting the following error with this script.
Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.
I'm playing the game League of Legends and I decided to make an iPhone application that let's you pick a champion (a character in the game)picture and play the sound for it. I downloaded all sound and images, loaded them into the library, and now I only made 4 champions just for testing.This is my code for AS3 when you click on the button to play the sound.[code]When you click on the picture again, It will play the sound once again and if you mass click it will mass play it (I want it to stop playing current one, then start playing the new one if you double tap it).When you click on 1 picture, it will make the sound, ok.. but when you click on ANOTHER picture, It will play the second image sound AND the first image sound together (Mixed up. I want it to make it so it stops playing the first one, then plays the second one).
View 14 RepliesIs there any lib for playing MKV (matroska) in flash (AS3, MXML) OpenSource or KindOf opensource? (In my MKV I have Theora video H264 video... If library supports only 1 type of video codec Ill live with that=))
View 2 RepliesI am trying to write some actionscript 3 code to play short sounds from the library, using a dynamically created string to load it. In AS2, I could do something like this:
mySound = new Sound();
mySound.attachSound("any concatenated string" + foo);
In AS3 however, the identifier is a class whose name, it seems, must be already known. Is there a simple way to 'attach' a sound using the identifier as a string in actionscript 3?
I'm using a CLICK event to add a MovieClip to the stage from my library. Within the added MovieClip is a child MovieClip animation with a stop() on it's first frame.For some reason when I add the parent MovieClip to the stage on CLICK, the child clip immediately starts playing, even though it has a stop() on it's first frame. This is how I'm doing it:
Code: Select allstage.addEventListener(MouseEvent.CLICK, mouseClick);
function mouseClick (event:MouseEvent):void
{
[code]....
I currently have random external swfs of "Buttons" loading and unloading into mc_containers into my main movie. These load and unload every couple of seconds.
What I would like to do is have sounds associated with these.. So if you was to click on one of the buttons, it would play a sound.
I have tried this by placing the sound in the button "down" section. However, it starts to play the audio and then as soon as the SWF unloads to load the next, the audio stops.
My question is: Is there a way that when you click on the external SWF loaded button - that it would then link to an audio file in the "main" timeline/library ? This way the audio would continue playing even though the SWF has unloaded.
In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash. Does anyone how Youtube accomplishes this? I would like to know if it's possible to keep the flash state of a site constant while moving from page to page on a site.It doesn't seem as if the flash is reloading, so I don't think that they are just saving cookies for the current video time and starting the video at that point when they refresh.I would assume that they're using ajax, but the application of this feature is really clean. The URL gets correctly changed to the users' profile page's URL. The back button still works as it should. (I can press back and forward between video page and user profile page and the video continues going clean and never drops.)
View 2 Replies1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.
2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)
not got my earlier problem sorted yet (about the title contuing to loop) but have another question now! ive managed to get an audio clip into my page complete with play and stop buttons. the audio is dynamically loaded
id like to put video in and have an flv video to use. id like to dynamically load it so keep the overall file size down and have navigation buttons for the user using actionscript 3 but not sure how to do this. looked around online and getting increasingly furstrated!
I'm making a basic flash website, and have already created the site structure, but I'm having trouble adding FLV and SWF, as they aren't responding as I would like.
1) I have built a basic flash photo gallery, and it works great. I have exported the SWF, but when I add that to my main sites keyframe, it plays non stop, and the buttons on that embedded SWF don't work.
2) After adding a FLV video to a keyframe, it works as I would like. Except that when I click to another keyframe after starting the video, it keeps playing. How would I be able to pause/stop the video if a navigation button to other keyframes are clicked.
I created a video player (flvplayer component) and have one video as the source. I've had CS4 create the html and embed the video. Locally the video plays fine, however once loaded on the server the player's skin and button show up but not the video. The service provider said that they allow flash and have the MI
View 2 RepliesI imported a video to my FLA (cs4), and added a playhead. On my local machine the video plays fine , but when emailed to someone to test, the page with the video displays only a blank spot. Also , on my local, I have a home page, and link for video, when I do click to videos, that works, but if I click home button I made, the video sounds keeps playing. I guess making the video display would be first priority, then the make it stop when not on the page containing it would be 2nd,
View 12 RepliesI have some video that I uploaded and when i test movie it doesnt work. At first i had two videos on one frame and then i move one to a different layer. Initially when i uploaded them they both worked until i changed the parameters (auto play). but on the 3 frames in which I have the videos; the ones on the top doesnt play and the ones on the bottom plays.
View 4 RepliesI'm using Flash CS4.I just dropped an FLV file into my document and tested it.What asctionscript can I use to get it to not autoplay?Instead I would like to place the words "Click Here to play video" on top of the video so that when the user clicks on the text the video then begins to play.
View 2 RepliesI have an mp4 video, not sure the specific encoding outside of that, that I'm trying to play in a flvplayback component. I can get the audio to play, but for some reason there is no video. I've tried simply attaching it to the component and I've tried using a Video object and attaching a net_stream with the video in AS3. Same result. How do I fix that? If it's an encoding issue, how do I figure out what the encoding is and what software do I need to fix it?
View 1 RepliesI'm using the normal
Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
and it's just fullscreening the video part of my swf, not the entire swf.
[URL]I am trying to adapt this example for my project. It runs fine when testing movie inside Flash, but it stays in loading ... screen forever when running from HTML or Flash player.
View 0 Repliesi have a simple website i'm building. 4 sections/nav buttons. on the main homepage a video automatically starts playing, but when you click on another nav button which takes you to another frame in the site that displays another section - the video from the first homepage section is still playing.here's the code i'm using on the buttons that go from one section to the next:
Quote:
home.addEventListener(MouseEvent.MOUSE_DOWN, homeNav);
function homeNav(event:MouseEvent):void {
gotoAndPlay("home");
}
[code]....
what do i need to do so that the video stops playing when you go to another section from the homepage/section?
I've just posted a reply in the ActionScript3 Forum as someone else has had the same problem, but I can't find a solution so posting again here as it's taken me about 5 hours of getting nowhere and I'm sure this is really easy... have one frame on my time line called "theatre" and another called "Video" the buttons between the two work but the video continues to play in the background when I go back to the "theatre" frame on the same time line and I can't find a stop function that will work A button on my main page links to Video on the timeline with following AS3
btnVid.addEventListener(MouseEvent.CLICK, clickbtnVid);
function clickbtnVid(event:Event) :void {
gotoAndStop("Video");
[code]....
I have some .mov files I need to play with the flvPlayback component. When I had them in my actionscript it does not work. I've read allot and it says that the component will play mov video but it does not for me.
I am running CS4 with FlashPlayer 10 and AS3.
1) I'm on the portfolio page, and I click a button to load a video.
2) Let's say I change my mind and press "back" button BEFORE the video has a chance to load completely.
3) I am back at the portfolio page. Everything looks okay BUT the video eventually loads. I can't get rid of it if I remain on the portfolio page.