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


Similar Posts:


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

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

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

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 :: MP3s - Loop Unless And Until The User Clicks The 'Mute' Button

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]....

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. My last thread (about setInterval)received no replies, but I'm hoping this will, especially as this final project is due this Wednesday and I'd rather it not have this slight hiccup in it.

View 2 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

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 :: 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

Flash :: Export Mp3s From It?

Jan 30, 2007

If I write a flash application that sequences different sounds in flash, does anyone know a way through actionscript or a third party program to get flash to export an audio file?

View 1 Replies

Professional :: Importing MP3s Into Flash CS5.5?

Sep 26, 2011

I have been using the new version of Flash since it came out in May or June and have had no problems with sound file import. Now today all of a sudden I can't import MP3s - I get an error that says it can't import the file, but nothing further to help me diagnose the problem. I have downloaded these from the web from a company that records files - the same company I have used before with no problems. The old files from them still work, but the new files, and recent MP3s I've downloaded won't work. I tried downloading on another machine with Windows NT but that didn't work either. I have had a programmer work with the MP3s to make sure they were indeed formatted as MP3, and those files won't import either. I am on Windows 7 Pro. I also turned off my firewall in case that was the problem, and still no resolution.

View 2 Replies

Flash :: Player In Windows 7 - No Streaming MP3s?

May 7, 2009

Just installed Windows 7 RC (7100), and got the latest Flash player for IE8 and Opera. My site [URL] has a music player I created that plays (streams) MP3s from a Flash Comm Server I run. The player works fine with Flash Player version 10.0.22.87 on other platforms, but not in Windows 7. Once you pick a song, it should start immediately. Even clicking the play button doesn't work. The symptoms make me think there's a problem establishing the netconnection for streaming. Wondering if anyone else has Windows 7 specific problems with Flash player?

View 3 Replies

ActionScript 2.0 :: Flash 8 Video Player Won't Play MP3s?

Aug 16, 2006

I'm working with some other developers at my office on a multimedia player interface that displays ads and MP3s/FLVs from a user-controlled database of content.Turns out, in our v2 iteration that uses Flash 8 and the related video player, MP3s don't jive. Is that right? We're just now migrating to Flash 8 development, particularly for video, and we were suprised to see the functionality we had for MP3s with the MediaPlayback component go away. Is there a better way to integrate the Flash 8 video player with audio than what we did before?

View 1 Replies

Media Server :: Flash Player In Windows 7 - No Streaming MP3s?

May 7, 2009

Just installed Windows 7 RC (7100), and got the latest Flash player for IE8 and Opera. My site [URL] has a music player I created that plays (streams) MP3s from a Flash Comm Server I run. The player works fine with Flash Player version 10.0.22.87 on other platforms, but not in Windows 7. Once you pick a song, it should start immediately. Even clicking the play button doesn't work. The symptoms make me think there's a problem establishing the netconnection for streaming.
I've read Microsoft added streaming of some kind in Windows Media Player for Windows 7, could it be interfering?

View 1 Replies

Flash :: No TotalTime Property When Streaming Mp3s Over RTMP (Amazon CloudFront)?

May 31, 2011

I'm building a Flash mp3 player to handle streaming mp3s served by Amazon CloudFront (which uses Flash Media Server). I'm using an FLVPlayback 2.5 component to do most of the heavy lifting (I tried an all AS3 method, but any stream automatically stopped within 5 - 10 seconds of playing). When I trace out the FLVPlayback's totalTime property, I get NaN. This is causing the seek bar to simply not work. This only seems to affect mp3s, as when I load an FLV I get a real value for totalTime. Does anyone know why this is happening

View 1 Replies

Flash :: Architecture - Detecting Loading Status Of Multiple External MP3s?

Nov 4, 2011

I'm loading a number of MP3 files into my Flash (the number changes dynamically). I would like to be able to say, in total, how much longer all the files will take to load.

I can do this for each individual sound.Mp3.addEventListener(ProgressEvent.PROGRESS, test_function);

But each sound is loaded by an instance of my sound loader class, how can I pass the ProgressEvent up to the parent object, and then have it calculate the total time to load?

View 1 Replies

ActionScript 3.0 :: SWC File In Which I Also Include All Media Files (mp3s) That Are Part Of Flash Application?

May 1, 2011

I wish to save my flash outpout (SWF) as an SWC file in which I also include all media files (mp3s) that are part of my Flash application. Currently these files reside in folders under my main library where all flash entities (AS3 code, buttons graphics etc reside)What software do I need to use to accomplish that?I now work in CS4 under winXP

View 0 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

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 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

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 10 :: Accessing The MP3s That Come With Flash CS4?

Sep 21, 2010

This is a dumb question I know. I want to use one of the files that came with Flash CS4 as an external file. But I cant seem to locate the file on my hard drive. Im guessing they are in a hidden folder somewhere?

View 0 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 :: Load Mp3s From XML With It?

Jan 10, 2006

Does anyone have a good example of an application that does this. I am actually looking for away to load the mp3 onRelease, unless its better to load all the mp3s at the beginning. However I was thinking that would take too long.

View 8 Replies

ActionScript 3.0 :: Use Arrays For Short Mp3s?

Mar 7, 2010

could I use another array to say 'milk', 'baby', 'yes', 'ball', 'bird' as the words appear using short one word mp3s?

PHP Code:

var words:Array = ['milk', 'baby', 'yes', 'ball', 'bird'];
var step:int = 0;
var readTime:Timer = new Timer(500, 1);

[Code].....

View 2 Replies

ActionScript 3.0 :: Looping Mp3s Without Gaps?

Apr 19, 2009

I am building an 8 track Flash audio mixer where the sounds for each track are selected by the user from a list component and then loaded into a Sound variable at runtime.This can be done while the mixer is playing or stopped, and of course, it adds a lot of flexibility for making music.All actionscript is in external .as files and sounds are looped using the SOUND_COMPLETE event.So far, all loading/playing functions work perfect, but I`m having problems with gaps at the beginning/end of my mp3 files.I was told this was an inherent problem with mp3 files, so I tried using MPTrim to clean the silence up.I also tried starting the loop a bit late - sound.play (80, 1) - but the results are usually inaccurate and unpredictable.

When I import a wav file into the library and then export it as an mp3 file embedded in the .swf file, it sitll has a short gap.When I built a previous mixer in Flash MX (actionscript 1) there was no gap and all sounds looped perfectly! Of course, in this later case, all sounds were embedded inside movie clips on the stage and scripting was done on the timeline, so maybe that made a difference.I have spent long nights trying to find a solution to this, but to no avail.I read a blog where the writer went through all the steps I have and just gave up, but I know there is a solution.I have seen this sort of thing done on Flash mixer sites before (even sites with full-on audio sequencers) so I know it can be done.

View 3 Replies

Stream MP3s With Embedded Images?

Jun 2, 2009

When I stream an MP3 file with an embedded image, the first few seconds of the files are clipped.

I will need to find another server, or a viable workaround.

View 22 Replies

ActionScript 2.0 :: LoadSound With Large Mp3s?

Jan 22, 2009

I originally posted this wrongly in AS3, I'm writing a small mp3 player. It reads the playlist from an xml file, then at the end of a song (or when the "Next" button is pressed) automatically plays the next song in the list.

My problem is that if the song is a large file (around 16MB), the player doesn't play the song -- I have to click pause then play a couple of times to play it.

[Code]...

View 0 Replies

ActionScript 2.0 :: Preloading External MP3s?

Aug 15, 2006

I need to pre-load multiple external MP3s. I have a preloader on my flash piece that preloads the SWF file and shows a progress bar and all that jazz. I am using the Sound class to load all the MP3 files when I need them (they are voice overs).

Is there a way to hook the preloading of those sound files into the preloader that I already have and then just call them up when needed?

View 2 Replies







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