ActionScript 3.0 :: Seamlessly Queuing Audio In MovieClips

Mar 3, 2010

So I'm currently charged with making a karaoke-style app which displays lyrics on-screen synced with an audio track. I'd prefer not to have one massive timeline for each track so I've cut the audio into sections (verses & choruses) and put each one on the timeline of separate MovieClips so I can sync the lyrics manually.

I store each MC in an array in my MainPlayer class, which listens for an Event dispatched from the last frame of each MC, removes it and then adds the next one and runs its play() method. There's an audible gap in between which at first thought might be due to using .mp3s so I switched to .wavs and it's still there.

View 1 Replies


Similar Posts:


Professional :: Audio Won't Loop Seamlessly

Dec 30, 2010

I have an MP3 of helicopter blades that's about 4 seconds.  I put this as a layer in my movie of the helicopter, yet the sound "hesitates" when the movie loops. The audio goes from edge to edge of every frame of the movie, yet I still get the hesitation. 

View 6 Replies

Flash :: Play Audio Seamlessly Like Nike While Reloading Each Page?

Sep 1, 2009

How do you play the audio seamlessly in flash, while reloading each page? Example is the nike blog, [URL] Will be glad if anyone could point me to a tutorial or there is a existing workaround script for this.

View 3 Replies

Actionscript 3 :: TCP Socket Frames 'queuing' Up On Windows - Force Each Message In It's Own Frame?

Sep 12, 2011

I use Actionscript 3 TCP sockets to connect with Javascript websockets. Sending data is primarily from the websocket to the AS socket.On Mac OS X, no problem. On Windows however, successive TCP messages seem to queue up somewhere.

This causes the ProgressEvent.SOCKET_DATA event to fire with quite a large time interval, which creates noticeable lag.I used Wireshark to monitor the TCP packets on both OS X and Windows. The difference I see is that on OS X each message comes in it's own packet, while on Windows successive messages are 'concatenated' into one packet.Is this just the way the socket is implemented, or is there any way I can improve on this?

EDIT 1: I found this post on actionscript.org which outlines the same problem

EDIT 2: I found a way to go around the problem. I pad every message with dummy text to increase the frame size. This causes the TCP stack to send every message in it's own frame instead if queuing them. This works, even though it's really, really ugly...

This is the code in the SOCKET_DATA event.

while(this.socket.bytesAvailable) {
var byte:uint = this.socket.readUnsignedByte();
if(byte == 0x00) {
trace("Start byte found. - " + new Date().time);

[code]....

View 1 Replies

Professional :: MovieClips Actions Get Out Of Synch With Audio

Feb 4, 2012

My movie is five about minutes long with audio and an offscreen timeline move clip containing action script to control other movie clips or play the root directory. After about a minute or so, movie clips get out-of-synch with the audio, apparently its getting bogged down. My swf file doesn't seem that big, about 2.2MB and my move clips aren't that complex, although up to three levels deep.

View 3 Replies

ActionScript 3.0 :: How To Play Multifiles Seamlessly

Jul 27, 2010

I use the following code to play 2 files continuously.

ActionScript Code:
import fl.video.*;
my_FLVPlybk.source = "1.flv";

[code]...

But they can't be played like a single file. There is a big jitter between these 2 files. How to elimit this jitter?

View 0 Replies

Flash :: FLVPlayback Component Won't Seamlessly Loop

May 19, 2010

Everything I've tried so far with a FLVPlayback component to seemlessly loop a progressively-downloaded 15 second video has failed. There's always a split-second pause when it's time to loop. For the scenario, embedding video in a flash project is not an option, and the split-second pause is unacceptable. I've tried setting autorewind to true and handling autorewind event fired by FLVplayback. I've tried watching the playhead of the flvplayer for when It gets upwards of 99.5 percent done and seeking to 0. My latest solution involves having two VideoPlayer instances with the same source behind the FLVPlayback component and toggling between them when it's time to loop, and there is still a seem between the end and beginning. I've tested the video in quicktime to make sure it's not an artifact of the video.

View 1 Replies

Html :: Getting Videos To Play Seamlessly On A Webpage?

Oct 30, 2010

I have a mov file that's 157 megabytes. I try running it on my page within a javascript scroller animation and the animation is very choppy and in fact I used css to simulate a mask but the thing doesn't get masked, probably do to the sluggishness of whole page, the page never fully loads, and the movie file makes it nearly impossible to scroll through the page. The file is just too huge. I currently have it embedded as such:

<a href="#">
<object class="im" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="286" width="655">
<param name="src" value="why_eating_dry_fruit_is_unhealthy.MOV">

[code]....

1) Should I convert the mov to swf - that is, is swf a more compatible and appropriate format for seamless integration in html web page?

2) Whichever I choose, how do I reduce the file size - like on youtube where the videos run seamlessly? I plan on using javascript to scroll through a gallery of videos, so I need the videos to not bog down the page.

3) Also, a lot of sites with galleries of videos have an icon that indicates "click to play". Is that part of the video itself or can I just create an image and then when clicked on, the video plays?

I do have Adobe Flash CS4 Professional, if that matters. And if mov file is more suitable, then how can I reduce its file size?

View 1 Replies

ActionScript 2.0 :: Flash Can't Really Loop Mp3s Seamlessly

Nov 17, 2004

so Macromedia says Flash can't really loop mp3s seamlessly, and suggests importing WAV files. But if you're using AS to load an external sound at runtime, this is not possible. So I ask you, coding geniuses, is there a work-around to the silence that Flash adds to the beginning (end?) of an mp3 file, thus causing it to loop incorrectly (I've already tried adding a decimal to the secondsOffset and it sounds awful).

View 2 Replies

ActionScript 2.0 :: Make A Sound Loop Seamlessly?

Feb 14, 2005

So I got a loop that I'm loading into Flash with the Sound object. The sound loads good and it starts playing but when it loops back to the beginning there's some silence and then it loops again. The sound loops fine in a sound editing program, the only problem is that Flash leaves a gap when its going to start again. Anyone has come up with a solution to make a sound loop seamlessly?

[Code]...

View 4 Replies

ActionScript 2.0 :: How To Make Sound Looping Seamlessly

Feb 14, 2005

I got a loop that I'm loading into Flash with the Sound object. The sound loads good and it starts playing but when it loops back to the beginning there's some silence and then it loops again. The sound loops fine in a sound editing program, the only problem is that Flash leaves a gap when its going to start again. How to make a sound loop seamlessly?

This is my code:
loadMusic = function() {
loop = new Sound();
loop.loadSound("lomtrack.mp3", false);
} loadMusic();
playMusic = function() {
loop.start(0, 100);
} playmusic();

View 4 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

Flash :: Professional - Videos - Get 4 FLV To Seamlessly Run From One To Another Without The End User Having To Click A Button?

Mar 16, 2010

how to get 4 FLV to seamlessly run from one to another without the end user having to click a button?

View 4 Replies

ActionScript 2.0 :: Looping MP3s Seamlessly Unless Mute Button Clicked?

Apr 24, 2004

I'm using some modified code from a chapter exercise (from a text book) to play four separate MP3s external to the FLA. Here's an example of what happens when a button is clicked:

Code:
BtnOne.onRelease = function():Void {
stopAllSounds();
song1=new Sound();
song1.loadSound("Music/Puffy.mp3", true);
gotoAndPlay("music1");

On the label 'music1', I have this AS:
Code:
stop();
song1.onSoundComplete = function() {
song1.start();
}

The problem is, there's something of a noticeable stutter when the MP3 reaches the end, just before it starts up again. The first MP3 (contrary to the others), is a seamless ambient sound which ought to sound perfect in the FLA, but doesn't, again, because of the slight stutter in starting it up again. Is there a better way to do this? I thought, perhaps, this would be fixed if I removed the "stop();" line and instead had it play the next frame, which would invariably send it back to the previous one, but this changed nothing. Is there a better method to use? Even with the other three MP3s, which aren't seamless, I want to loop, unless and until the user clicks the 'Mute' button.

View 2 Replies

ActionScript 2.0 :: Seamlessly Present Multiple Flash Video Clips?

May 27, 2008

I'm having trouble getting a decent system running for playing multiple independent flv movies in a container clip using the flv component back-to-back. I guess what I'm looking for is tips or examples of creating the video equivalent of a slide show - with options to skip next, previous and go to a specific clip.

Basically, at the heart of it, I'm just setting flvcomponent.play(newcontentpath) via actionscript. But that causes a skip of about 0.5s while flash switches gears and begins the next clip.

Does anyone have any tips on achieving good transitions in actionscript2? More generally and tips on dealing with video via actionscript .

View 1 Replies

ActionScript 2.0 :: Matching CSS Background - Get The Htm Repeated Image To Seamlessly Blend Into Swf File

Oct 22, 2004

I've just joined if you haven't noticed and wanted to express my admiration for all the skills on these pages and links. Much inspiration has already been delt on my humbled mind. Visit the file in question here

1) on this dude's site, Beyond the Pixel, he/she's got the style sheet repeating a trend gif. I created one myself and have got it working on my htm file. Problem is, I want to be able to get the htm repeated image to seamlessly blend into my swf file. How did BTP do it? I assume I need to estimate the pixel distance (the repeated gif I'm using is 5x5 pixels) then absolute place the swf file using proper css placement code. Then I'd just start that same gif in flash on the movie's edge and repeat it across the movie (x and y). I think I'm right on the former, but feel that I'm being to simplistic in the latter.

2) I followed this tutorial on preloaders. Got it to work, even managed to get it to load vertically and change the size of the loadBar. Problem, and it may not be on true publishing, but when I test the movie, the preloader does its deal but right before it goes to frame 3 to display a ND picture, a little green box pops up in the upper left of the frame. It does this every time. I'm using Flash MX '04 on a G5.

View 3 Replies

ActionScript 2.0 :: Create A Movie With Buttons That Load External Movies And Works Seamlessly?

Nov 18, 2007

i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.

my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..

View 4 Replies

ActionScript 2.0 :: Create A Pause Button That Will Pause Everything On The Screen Including Movieclips/audio?

Mar 26, 2007

I am trying to create a pause button that will pause everything on the screen including movieclips/audio. Right now I can't figure out how to pause the movieclips.

View 2 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies

Asp.net :: Skinnable Audio Player (or Something Similar To Windows Vista Audio Control In Task Bar) For The Web?

Mar 11, 2010

Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?

A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.

View 1 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

View 1 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

Php :: Recording Audio On Website: Red5 Stream Or Posting The Audio Data?

Sep 6, 2011

Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:

1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.

2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.

View 1 Replies

Media Server :: Stream And Audio Line Level Feed Rather Than The Audio From A Computer's Microphone?

Apr 1, 2012

Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?

View 1 Replies

ActionScript 1/2 :: Audio To Not Play When Moved To New Position For Audio Player

Aug 25, 2009

I have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
 
[Code]...

View 5 Replies

Get The Audio Level Chart From The Library Into View Along The Audio Timeline?

Oct 25, 2009

The images for animation load okay. The sound loads okay.  But the animation images need to be inserted in coordination with the sounds, which is difficult using only the ears  There is a visual graph of audio levels in the library window, which I have seen appear in the timeline also but only momentarily.  I do not know how to keep the audio graph on the timeline so as to know where to put the images.  I can keep the graph open on the little library window when it is open but not on the timeline. how to keep the graph open on the audio track while I work on the image tracks.

View 1 Replies

Flash :: Audio Player That Can Play Binary Audio Streams?

Apr 13, 2011

My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.

What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.

Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.

View 1 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 Replies

Html :: Flash Audio Player For M4a (AAC) Audio File Embedded?

May 15, 2007

I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).

View 7 Replies

IDE :: Progress Bar For An Audio Player Streaming Audio From Wowza Server?

Feb 24, 2011

I am new in action script 3.0. i am trying to build an audio player which will stream audio(mp3 etc.) from wowza media server. the player needs to have a play button, stop/pause button, a play progressbar and a volume scroll bar. i am using NetStream object to paly the audio

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved