IDE :: Flash Video Plays For 2 Seconds And Then Stops
Jun 19, 2009[URL] Some of the clips play fine, others play for 2 seconds and then stop.
View 2 Replies[URL] Some of the clips play fine, others play for 2 seconds and then stop.
View 2 Repliesi have a soung loop that i want to "loop" in my movie.this is my script:
mySound = new Sound();
mySound.loadSound("loops/music.mp3",true);
the problem is that it only plays once (5 seconds long) and then stops, how do i get it to loop? - short of placing it on the timeline.
i have a soung loop that i want to "loop" in my movie. this is my script: mySound = new Sound(); mySound.loadSound("loops/music.mp3",true); the problem is that it only plays once (5 seconds long) and then stops, how do i get it to loop? - short of placing it on the timeline.
View 8 RepliesI want my flash file plays one and stops in the end and only plays again if play again button is pressed.How do i do it?
View 1 Repliesthe people from my server installed fms 3.5, but the demo video with that train stops every other second. Should I adjust something in settings?
View 8 Replieswhen I use the following function in my doc class to launch a local video, the video "freezes" after a few seconds. This happens no matter what video I am trying to play.
Code:
private function startVideo(e:MouseEvent):void
{
[code].....
I want my movie to loop. Would prefer an If/Else loop so that the movie plays a certain number of times then plays the opening of a screen then stops. This is a simple 4 screen ad I am doing for a school project. Can't get it to work. I tried containing my code in the proper loop syntax, didn't work. Then wrapping the loop in a function and calling that with a timer event, didn't work. My final solution was to call my whole movie in a timer event set to play once. Then calling the entire movie again in a second timer event set to play 20 times and set to start at an interval when the first movie ended. This did work but each time the movie plays thru function calls drop off making the movie degrade.
[Code]....
How can I make this 3d animation stop after 4 seconds?
Here is the code and I'm attaching the .fla so you can see what I'm talking about.
ActionScript Code:
var sensitivity:Number = 2;
//Sensitivity of movement
var followmouse:Boolean = false;
[Code]....
1) 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?)
I'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
Here are some links:
The page that I'm working on (video at the bottom of the page)
The .FLA
The .FLV
The .SWF
I'm working on a flash content slider thing (i.e. it shows a message and then transitions to the next, and there are buttons at the bottom to navigate to each message). Now I want it to actually stop playing when you navigate to a specific message, instead of continuing to play from there. The problem is there's a fade transition, so I essentially need it to go to the first frame in the transition and play (what it does now), but then STOP once the transition is complete. I don't know how to do this without adding a global stop() to that specific frame, and I don't want to do that because I want it to, by default, rotate from one message to the other.
View 3 RepliesIn my CS4 flash document I have created a media gallery. It's a very simple interface that has mouse overs on thumbnail pictures, and then the larger picture will fadeUP in the center of the document. (With use of framelabels in the timeline).
In the same document, I want the user to be able to click on a video thumbnail, and that video plays back in the center of the document. Several questions: If the user clicks on the thumbnail "onrelease," the time line goes to the player, is it possible to stream this video from a youtube clip into my media player on the screen? If not and I have the document in a fl4 format, is there a simple process to have this video open? (I currently do not have the document in fl4 format).
I'm trying to create a button that plays a movie clip and stops when it's moused over. I've attached a file (help.fla) that illustrates my problem.
View 8 RepliesI have made an animation in Flash, that would be ported to the iPhone/iPad; I want the animation to play when you rotate your finger on the screen and to stop immediately when the finger is lifted (Without starting the animation over), When the user would continue rotating their finger, the animation would continue to play.
How would I approach this in ActionScript 3.0?
I've managed to create some small and successful movie animations which loop when place on a website.What I'm trying to do is to have a movie which has a intro section which plays for about 15 seconds or so then moves onto the main body of the movie which then loops without showing the intro section again.
View 3 RepliesI was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.
View 2 RepliesI want to make a sliding gallery that plays a certain amount of frames and stops. I have this script
[Code]....
Instead of play() i have tried putting a counter in like counter 8 but it does not work.
The idea is that if i click the contact button but im on the home page its scrolls over all
other pages and stops on the home page.
I'm working on a rotating carousel type menu. It has images that rotate around, and when you click on an image, a .flv file plays, then when it's done, it goes back to the menu. It loads the data from an .xml file so it's all dynamically created.
This is all fine and works... locally.
When I upload it to the server, everything seems fine until I click on one of the icons. The .flv plays for 2 seconds, then goes back to the menu. Other flv files on the internet play fine, so it's not my flash player. I tried hard-coding in a video to play, and it has the same problem, it plays the first 2 seconds, then freezes.
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
[Code]....
I have the program set to go back to the menu when the status of the .flv is: NetStream.Play.Stop
I traced out the status of the video when playing locally, the status goes normally (gets to Netstream.play.stop after the video is done), but when played online, it gets to netstream.play.stop after 2 seconds, then prints that out like 50 times.
I have a flash app that I have been working on for 5 months or so, it relies heavily on Flash remoting with numerous custom classes each making service calls via AMF.I have been developing this app in CS4 on Windows and never had any trouble, it works great.I just got CS4 for my Mac and installed it and copied over the flash files for this app so I can continue working on it on the mac instead of the PC, but on the Mac the app stops working after a few seconds, particularly after doing a few commands that issue flash remoting calls.Even stranger is it will not return to working condition again until I close all of the files involved with the project( the .fla and all .as files involved) and then reload them,if I keep trying to test run the movie from the flash editor it hangs at the first flash remoting call and never returns any error message or any indication that its trying to connect, on the server end my logs show no requests are going to gateway.php.So basically to continue working on the mac I'd have to keep closing down the files every few mins and reloading them.
View 3 RepliesI've got a horizontal bar on the screen following the mouse vertical motion. I would like for it to be transparent until the mouse moves, and then fade in to be 100% on mouse movement. When the mouse stops moving, I would like it to fade back to be 0% transparent after a couple of seconds. This what I have for the mouse follow on the bar MC...
[Code]....
I have a problem with an embedded flash video not playing to the end, it stops around half way It is a 4 minute video with sound, the FLV file is around 24Mo This is a normal server not a flash streaming server .
I have at least 10 other sites on line with a flash video on the home page and they all work fine.on the same server.only difference is that this file is about 10 Mo bigger on average.
I contacted the company where my server is hosted and they say that it looks like a java script problem but I am using flash 8 pro standard <object> no java script to detect version etc.[code]...
I'm making music visualization in papervision3d using FlashDevelop. The script generates 150 cubes each acting as different tone (from basses with red colors to high notes with blue).The song starts, everything works fine, but after 44 seconds song stops. I hadn't wrote function that would do that. I've turned off every useless visual functions and even papervision3d rendering. The scene is just black and the song still stops playing after 44 seconds.File is included with:
Code:
[Embed(source = "../assets/8bp069-05-she-session.mp3")]
because I'm not writing it in flash.
I've tried different song and it stops after 1:10...Flash uses ~30MB of Ram and 50% of my Athlonx2 64 2.6Ghz in action.
Here's some code: sound
Code:
[Embed(source = "../assets/8bp069-03-she-pioneer.mp3")]
private var Music:Class;
private var sp:Sound = new Music();[code].........
those last 3 functions have nothing to do with playback.Am I doing something wrong with computeSpectrum function? Here's the scrieennie of it in action: Of course it's like an alpha version of what I'm planning to do.
I have noticed a very frustrating error in flash lately. I will be watching a video in full screen mode...on any site...then all of the sudden, the video freezes and the sound continues. This does not fix automatically. I have to minimize the video from full screen to default size and then the video unfreezes and I can then go back to full screen mode.However, eventually I have to repeat this because the video freezes again.
This happens in Firefox 3.5.6 and Chrome 4.0.249.43. I am near certain I can get this to happen in any browser but I don't use other browsers to play videos so I have not tested my theory. All I know is that the problem is very consistent.
I am using Flash Player 10 ActiveX version 10.0.32.18 in XP Pro SP3.
So I am relatively new to Flash and After Affects but I managed to make a nice video with Adobe After Effects that my friend wanted to put on his site. After I was done rendering it I used Adobe Media Encoder to make the .avi file into a .f4v file for flash. After opening that flash file with Flash i exported it out into a .swf file. When I opened the .swf it played perfectly, just the way it should. I edited my index.html with Dreamweaver and the coding and everything seemed fine. After previewing the index.html with my browser and Dreamweaver's Live View I was quite satisfied with my results. When I uploaded the files onto my site the flash did not play. It plays locally on my PC but not on the site. I later asked a few more experienced buddies what was wrong and they confirmed that they weren't able to play the file locally nor from the site. At first I thought I may have mixed up the links but they were fine. Here is the code I used for my index.html page.
[Code]....
The flow player will play the audio of a *.flv, but doesn't play the video and I've no idea why. The initial example page using the default flowplayer flv url works fine. When I change the url to my godaddy site, it doesn't work. I'm using Movavi Video Suite 8 to perform the conversion to flash from mp4. I think the metadata is included in the flash file when it converts, but I'm not certain. I used the meta data injector found here: [URL] to inject meta data into the flash files and it still did not work.
Also of note is that the player's progress bar shows the start, current, & end time values of the video, so I think the metadata is there. I've still no clue why this isn't working, though.
I wonder if it's my *.flv file as the player will load the mp4 file it was generated from. I used a premium application called MOVAVI Video Suite to perform the conversion. I don't think this is the case because I can upload the converted *.flv file to youtube and it plays fine.
Also worth noting is that the Flow Player plays audio and not video both when the flv source is pointed to my godaddy site as well as when its pointed to a local folder on my hard drive that contains the player, it's files, the video files, and the example .html page being used to test this.
Possibly something else worth mentioning is that I have not put the flow player files on my godaddy site yet because the video picture isn't showing locally.I have the same issue with the LongTailVideo player.
Here is the html for my test page:
<!--
include flowplayer JavaScript file that does
Flash embedding and provides the Flowplayer API.
-->
<script type="text/javascript" src="flowplayer-3.1.4.min.js"></script>
[code].....
I made a flash video jukebox, so it reads a dynamic playlist of F4V files for hours. Everything works well but after about 45 min the sound stops and after 2 hours the flash player plug in crashes. It seems like the cache is not accepting more F4V videos and then crashes. If I auto-refresh the browser every 2 hours it works but I would like to avoid having to refresh the browser and just clear the flash player cache if that's where the F4V go? I can't find any info about where the F4V files go when you play them!
Frame 1 gives the variable vidReference the value of the video file name:
VidReference = trackToPlay;
Frame 2 does the playing:
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.connect(null);
[Code] .....
This is the function that detects when video is done playing, still on frame 2:
function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetStream.Play.StreamNotFound": newTrack();
break;
case "NetStream.Play.Stop": newTrack();
break;
}}
And the function newTrack() is just giving the variable trackToPlay a value (the file name of the next video). And then says to gotoAndPlay frame 1, so it kind of reinitializing the player. The objects are re declared in frame 2, is that the problem here?
I have a website [URL] when I go there if I click the video archives button then play a video then click on the home or photos button or one of the alternate background buttons on the left the video goes away as it should but not always the audio (especially when I click while the video is still buffering). Is there a command I can use to kill the sound from the flvPlayback component and nothing else(I have a mp3 player there also I so I don't want to use the SoundMatrix class. btw the videos are all played on an instance of the flvPlayback component.
View 7 RepliesMy dilemma is that is that I have an image that when you roll over it with the mouse the words 'click to play' appear. Now when I click I want the image to disappear and the movie behind it to start playing.
I've managed to put together some action script through looking at various tutorials and posts. but when I preview my site and click the image nothing seems to happen.
The code I'm using is as follows:
import fl.video.VideoEvent;
function doPlayVid(e:MouseEvent):void {
tanmov.play();
this.alpha = 0;
[Code].....
I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.The youtube api allows for minor colour adjustments but not full customisation. I know it would be possible if I download the FLVs but i want the video to remain hosted on youtube.
View 3 RepliesI'm trying to accurately determine how many seconds of a video (NetStream) have been loaded so I can scrub/seek correctly. First I tried doing duration*(ns.bytesLoaded/ns.bytesTotal) but this is inaccurate by maybe 15%, ie if that calculation says 20 seconds is loaded and I scrub to 20 seconds ns.time will tell me it can't go past 17 seconds.
I think this is because the size of the file loaded doesn't map perfectly to the number of seconds loaded (obviously), ie as the video loads, some of the bytes loaded aren't the actual video but are overhead of the container/file the video is in. So to load 1% of video you have to actually load 1.15% of the file's size.