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


Similar Posts:


ActionScript 2.0 :: Looping Dynamically Loaded Mp3s

Sep 4, 2004

I have brought this up at the end of another thread, but thought it needed it's own.Trying to loop a dynamically loaded mp3 of a cicada.[code] Why does this not work?I understand that the start function isn't needed, as it's a streaming object, but I thought if I added it, it would loop.This syntax is the only way I know to loop a sound object in AS.URL...

View 2 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 :: Deleting Array Values And Gaps?

Oct 13, 2005

if i have the following array

myArray[0] = "value 0";
myArray[1] = "value 1";
myArray[2] = "value 2";
myArray[3] = "value 3";

and i delete the second the value. is there anyway to stop it looking like this:

myArray[0] = "value 0";
myArray[1] = undefined;
myArray[2] = "value 2";

[Code]....

View 2 Replies

Flex :: Different Vertical Gaps Between Siblings In The Same Mx:Tree Control?

Jul 14, 2010

Does anyone know of a way to specify different vertical gaps between siblings in a Tree? I want to child nodes spaced tighter together (maybe 10px) while the top level parents remain spaced further apart (20px). Essentially, I need to change the gap dynamically based upon the depth of the node, but I'm not sure if the Tree class (or the List class, which Tree extends) offers this type of functionality.

View 2 Replies

Flex :: Line Chart Leaving Gaps In Data?

Dec 6, 2010

I have a Flex line chart where I allow the user to change the y axis ranges. When a data point falls outside the ranges, the chart drops the line segments on either side of the out of range point leaving a gap in the data line. I'm currently using the data function to clamp the values out of range to the y axis min/max, but this displays misleading data.

View 1 Replies

Flex :: Change Gaps To See Background Image Between Items

Jun 20, 2011

I have created a tile list with custom item renderer and in terms of functionality it works as it should. I reduced the width and height of the item renderer to 95% which then shows the tile lists background in the remaining 5% of that item. The problem is that only when I hover over the item, the background is covered up and I cant get a gap to appear between items. Is it possible to change the height and width of the hover over?

<mx:Canvas id="Card2" label="Card2" width="100%" height="100%" backgroundColor="#FFFFFF">
<mx:TileList id="tlCard2" x="10" y="10" dataProvider="{acCard2}" width="580" height="340" dropEnabled="true" borderThickness="0" maxColumns="4" maxRows="4" rowHeight="85" columnWidth="145" borderColor="#000000" horizontalScrollPolicy="off" verticalScrollPolicy="off" borderStyle="solid" dragMoveEnabled="true" dragEnabled="true" backgroundImage="{imgGuide}" themeColor="#BCBCBC">
[Code] .....

View 3 Replies

ActionScript 2.0 :: Scrollbar Gallery - Gaps Are Created Between Photos?

Feb 8, 2009

I have made an XML Gallery in Flash but there is a problem, it works very well however some of the photos are portrait and this causes a problem as gaps are created between photos.Here's the code:

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;[code]...

View 9 Replies

ActionScript 2.0 :: Long Gaps Before External Swfs Load?

Sep 4, 2009

I need a bit of help with an issue I am experiencing. I am trying to load external swfs on menu link clicks, inside my main movie. However, the external swfs are taking 8-10 secs gap in loading inside main swf.

The external swfs fetch data from a mysql database. My question is - Should I load the external swfs at the time of loading the main menu to override this problem? The concern here is that it might take longer for the main movie to load then.

View 6 Replies

ActionScript 3.0 :: Programmatically Added Gaps Between Certain Menu Items

Nov 21, 2009

How can I modify the following code to add 26px space between the 2nd and 3rd item in a vertical menu, and the same added space between the 5th and 6th items?

[Code]...

View 4 Replies

ActionScript 3.0 :: Draw/move The Mouse Too Quickly Gaps Appear Between The Particles?

Mar 2, 2010

I'm trying to make a nice trail effect for a drawing/particle thing. I've got it working pretty nicely except that when you draw/move the mouse too quickly gaps appear between the particles. Increasing the frame rate doesn't help. so I'm not really sure what the best way to go about this is?

PHP Code:

private function enterFrame(e:Event):void
{
particle.x = mouseX;[code]..........

View 2 Replies

Flex :: Efficiently Fill Data Gaps In An Sparse ArrayCollection?

Aug 10, 2010

I have an ArrayCollection of Objects. Each Object with three attributes:CustomerID, Income and DateMy goal is to chart this data for each customer (or a couple together) in a Income by Date LineChart display. Selection of customers is done with ArrayCollection filters.Data is fetched from an SQL database, however, each customer has some data points missing.f there was zero income on August 8, 2010 there will be no entry for that.Charting the ArrayCollection as is, is misleading because there is no indication of the missing data points.One way to solve this is to artificially add zero points for the missing dates for each customer. However, this would explode the data set (and impact performance).

View 1 Replies

Actionscript 3 :: Algorithm To Solve The Points Of A Evenly-distributed / Even-gaps Spiral?

Dec 3, 2010

First, just to give a visual idea of what I'm after, here's the closest result (yet not exactly what I'm after) image that I've found:[URL] BUT, it doesn't exactly solve the problem I'm after. I would like to store an array of points of a very specific spiral algorithm. The points are evenly distributed The 360 degree cycles have an even gap If I'm not mistaken, I think it's obvious that the two first points would be:

[Code]...

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

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

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

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

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

ActionScript 2.0 :: MP3s Not Allowed With Web Host?

Jul 22, 2003

I use a free web host for a site but they don't allow uploading of mp3 files (they filter and block them)

I want to offer visitors a choice of background music that would have to be streamed or loadMovied'ed as mp3 files, here lies the problem.

I thought a work-a-round would be to have a small empty movie off stage that contained the swf music file but I then thought that someone might have a more elegant solution.

When you use loadMovie to download a swf file into a parent movieclip, what's the best way of initially filling the parent movie BEFORE anything is downloaded, assume you use attatchMovie - is this correct ?

View 6 Replies

ActionScript 2.0 :: Linkage With Loading MP3s

Dec 4, 2008

I am working on a game, and I am using MP3s within the SWF file to load at certain times. In order to make them loadable, I have set up the Linkage properties to : -Export for ActionScript -Export in first frame The problem is, that it loads all the MP3s before the preloader even shows up, so there is a lot of time of blank screen. But when I take of "Export in first frame", I am not able to load the MP3s during runtime. Is there a way to access the MP3 files without exporting them in the first frame?

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 3.0 :: Will FLVPlayback Component Play MP3s Without FMS?

Sep 29, 2009

Will the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.

Here's my code... it's pretty simple:
import fl.video.FLVPlayback;
var myMusic:FLVPlayback = new FLVPlayback();
myMusic.source = "mySong.mp3";
myMusic.skin = "SkinOverPlayMute.swf";
myMusic.skinBackgroundColor = 0xCCCCCC;
addChild(myMusic);

View 3 Replies

ActionScript 2.0 :: Preloader Dynamically Loaded Mp3s

Oct 3, 2003

Before you get all worked up about seeing the same question again...let me tell you this.. I DID use the search function and I DID find some interesting things...but just not quite what I am looking for... As the Subject title suggests...I am looking for a preloader for dynamically loaded mp3s... As in the tutorial on kirupa I let the mp3s stream but still there is a little gap before they actually start playing-probably worse on smallband connections

View 5 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 :: Streaming MP3s With Resampling At 32000Hz?

Jun 12, 2007

I was testing out different load times and encoding properties for my mp3 files to be played through Flash and came upon something weird. The files I encoded with a Resampling rate of 32000hz when played through my xml MP3 player are sped up enormously; it was as if I changed the tempo to something it shouldn't be. I have a position / duration field and the duration of a 30 second song shows up as 21 seconds and the music played reflects that time change in terms of how fast the song is played.

View 3 Replies

ActionScript 2.0 :: Preloader For Dynamically Loaded Mp3s?

Oct 3, 2003

I am looking for a preloader for dynamically loaded mp3s...As in the tutorial on kirupa I let the mp3s stream but still there is a little gap before they actually start playing-probably worse on smallband connections- and well I know the music is coming but the visitors don't so could anyone help me out to make a preloader?

View 5 Replies

ActionScript 2.0 :: Buffering For Dynamically Loaded MP3s

Nov 26, 2003

I made a little buffer script for dynamically loaded mp3s. It's supposed to play the file after 20% is loaded (these files are a couple of MB). Anyway, it doesn't play after it's buffered to the 20%. Works when I just test movie in flash. It doesn't work when I test "streaming" in flash. Here's my buff script, etc.

Code:
nrMix=new Sound(djsetMC);
nrMix.loadSound([file], false);
preloadNow=false;
this.onEnterFrame = function(){
bytesT = nrMix.getBytesTotal();
bytesL = nrMix.getBytesLoaded();
[Code] .....

View 10 Replies

ActionScript 2.0 :: Ability To Load External Mp3s?

Aug 29, 2002

if your using mx why not just take advantage of the ability to load external mp3s. if not you would have to have something like php to send the track name and info to the music player to tell it what to open.

View 5 Replies







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