I'm working with the youtube API and I'm getting the current time on the video as seconds.What I want to do is to convert them into this: MM:SS.I've tried to google and try different things by myself but nothing seemed to work and be efficient.
I am currently using the following code to display the secconds of a FLV being played: ActionScript Code:time_txt.text = Math.round(_root.video_mc.videoZ.playheadTime*100)/100;I need to change this to display MM:SS (minutes:seconds) rather than just seconds and decimals.The javascript people here at work suggested something like this:
ActionScript Code: function strPad(str, places, pad, side) { while (length(str) < places) {
I have a web app that uses a flash uploader (swfuploader) and recently a user pointed us to a bug that happens when the script hangs more than 30 seconds. I know flash documentation mentions that after 30 seconds of no response it will timeout, so i know i need to send some data to the browser before my convert function ends. As of now the script uploads the file, convert it, and if it is a multipage pdf it will save the reference children pngs to db, this works fine on big and small files, problem happens that after 30 pages it will hang for more than 30 seconds.
I've done a six minute video and posted it as an flv/swf for the client to review. I'm using a the standard video player component that comes with Flash. I'm working with AS2. Actually, there's nothing else in the swf except for the video.What I need to do has have a simulated time code box in the corner that starts and stops on the push of the play button of the flv.
We are sending a multiple streams from FMLE to FMS, and then playing them with NetStream instances. We could have several streams playing on the same flash canvas. The idea is to use ActionScript to synchronize the playback of these streams using embedded system timecode from FMLE, so all the camera angles are playing at the same place in the stream. However if we use the onFI handler to receive timecode data we see one of the streams reporting valid timecode, and the other seems to get 'stale', reporting the same infoObj.st value for multiple onFI events.
All FMLE /FMS instances are configured identically - either stream will decode valid timecode it played on its own - just not while both are running in the same stage!
i am wondering is it possible to get embeded timecode from HTTP Stream?Flash Media Live Encoder contains a special built-in handler, onFI, that subscribing clients can use in their ActionScript code to access timecode information. The following client-side ActionScript code shows how to get timecode information using the onFI handler. The object ns is the NetStream object. You can get timecode and system date and time information, if timecode and system date and time were embedded in the stream, by accessing the tc, sd, and st properties of the info object that is passed as an argument to onFI():i am using this onFI method succesfully with netStream object when i am getting stream from RTMP.is it possible to get somehow same results with HTTP Streaming (f4m and osmf)
I've been constructing a flash video player from scratch using tutorials online, and I cannot figure out how to add a timecode (elapsed time/total time) or a way to have a pre-roll video. I'm using flash cs4 and AS3.
When i use time varaible and then minus the time. Ive noticed that flash does not count down in seconds, but the speed of light. My maths are not very strong so how can i get flash to count in seconds
var time =60; sprite.onEnterframe = function(){ time -=1; ( this counts faster than seconds) }
I'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?
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 trying to add a running timer to my flash movie. I've got it now so that it counts seconds (by comparing _currentframe with the frame rate), but I'd like to be able to express that in minutes:seconds.
I'm trying to add a running timer to my flash movie. I've got it now so that it counts seconds (by comparing _currentframe with the frame rate), but I'd like to be able to express that in minutes:seconds.
I need to do a heartbeat counter. This is a simple counter that should add 1 unit every 0.83 seconds.Its a simple web page with a 10 digit number counting the heartbeat of aparticular person (50 years old).
i have a flash file that has the "buttons" to go the next "scene" but what i would really like is to add timer so after 5 seconds if i dont click the "next" button it will move to another scene/frame, To make it easy to understand, i will upload my fla file, if someone knows how to do it feel free to edit the fla and send it to me(im asking to much)?
[URL]
Im using macromedia flash pro 8 to edit this file.
I have a .swf banner embeded on my xhtml and I need it to replay after 20 seconds so if the user is still watching that page he will see the animation again. It needs to be a loop or something so the animation will play again 20 seconds after finished over and over again.
I have 1 flv with only 12 seconds of audio.another flv that is 10 seconds with only video another flv that is 2 seconds with only videoLets assume both video files are as long as my audio file.Which actionscript commands should I look further into to: 1. play audio simultaneously with video 2. play the 2 second video smoothly/seamlessly after the 10 second video is over as if it were a 12 second vide 3. if my audio or video were mp3/wma instead of flv would I run into trouble 4. I imagine a flash media server would be mandatory if my videos were other formats like avi/mpg and had to encode on the fly
I was wondering if anyone else has been experiencing the same problem with flash that I have. For me Flash can't even stay open for 5 seconds without it completely crashing and having to restart.