ActionScript 2.0 :: Audio Loading Bar _mx?

Jul 18, 2003

(mx) I'm trying to make an audio progress bar. I'd like any help that can be given to help me accomplish this. I'm loading the songs externally when it is selected. I just need a bar to represent the song being loaded. I'm loading the songs from .mp3s:

track1= new Sound track1.loadSound("morning.mp3",false);
all= track1.getBytesTotal();
bytes_loaded = Math.round(track1.getBytesLoaded());
getPercent = bytes_loaded/all;
this.loadBar._width = getPercent*100;

[Code]...

the loadBar is the name of the progress bar_mc...this is the script I'm using, but I'd scrap it for a script that works...

View 2 Replies


Similar Posts:


Streaming Audio / Loading Audio Into Swf First / Then Playing It?

Jan 28, 2012

I think it is loading the whole audio first into the swf, but I would like to get confirmation from someone more knowledgible.[code]I want it to stream the audio when the button is clicked only so that 100 of these swf will not slow down a whole webpage from loading.[code]I only start getting concerned when I noticed that on FF and Chrome, the page loads really quick but when I open the page in IE, it takes a very long time for the page to appear.

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

ActionScript 3.0 :: Loading MP4 Only Audio No Video?

Sep 15, 2009

I'm trying to load an MP4 using CS4 and actionscript 3. The clip is loading but I'm only hearing the audio, I'm not getting any audio. Not sure what I'm missing. Here's my code it doesn't produce any errors:

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[Code].....

View 0 Replies

ActionScript 2.0 :: Loading Audio Dynamically?

Mar 15, 2011

I have a question about it 1.Does it use less memory than streaming it or using it as an event?2.How is it done? my music in my library has these actionscript links "song1" "song2" etc...

View 1 Replies

Make Audio To Stop Playing Soon After Loading?

Feb 25, 2010

I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...

View 1 Replies

ActionScript 3.0 :: Loading Audio Clips After Frame One

May 12, 2010

The project I'm working on consists of a bunch of pages, each with narration. Each page is a separate frame on my main timeline. Due to all kinds of issues I was having, I am now loading in the audio via actionscript, rather than placing an instance of it into an object and going from there. The issue I am now having is that when I tried to simulate a download, the movie would sit on frame zero until all audio was loaded, so it took a long time to get to my preloader, and by then the movie was just about finished loading.

It was suggested that I uncheck "export at frame 1" on my audio files, but now I am getting errors that I am making a call to a possibly undefined method (random audio file name of choice). If I am loading my my audio via actionscript, do I have to load it all in on frame 1? And if so, is there any way for my movie to get to my preloader before trying to load things? I have also tried setting my publish settings to export my classes on frame 2 or 3, in the hopes of it getting as far as my preloader before stopping, but no luck so far.

View 12 Replies

Professional :: Loading Audio File In Flash?

Oct 23, 2011

When i load the audio as mp3 file some time it will throw error.The error is "one or more files cannot be imported" Then i convert the audio file as wav file,but the quality of the audio is not good.

View 1 Replies

ActionScript 2.0 :: Audio Streams Playing At End Of Loading?

Jul 10, 2009

I have rather large project that contains several swfs and flvs with audio. The project is published in Captivate (which renders a main swf file). After the preloader screen, a lot of the audio files start playing at once at the beginning of the presentation. I have tried inserting an swf (1st Captivate slide) with AS2.0 command "stopAllSounds". It works as intended and stops all the cacophony. But then, none of my audio plays throughout the 7 minute project. Does anyone know how I can restart the audio?

View 1 Replies

ActionScript 2.0 :: [CS3/CS4] Loading Audio From XML, Sound Won't Play

Sep 8, 2009

I've been working on a Flash/XML audio player and have been struggling with getting the audio to stream. Right now I have Flash create a list of songs based on the loaded XML file, which works, and I want to be able to click on one of the listed items for the song to start playing. When an item is clicked on, Flash will trace out a message from an onLoad command, but the audio never starts playing.

I opened a new Flash file to test the non-working segment of code and I still can't get it to co-operate.

Code:
var currentsong:Sound = new Sound();
currentsong.loadSound("http://www.vtspencer.com/recordjackets/beta/media/file_11.m4a",true);

[Code]...

All that happens is that the trace saying "Should be playing" comes through. The music still won't start.

View 1 Replies

ActionScript 3.0 :: Loading Audio Files In The Background?

Oct 14, 2011

I've created a Flash slideshow where I load the narration audio MP3 file at the start of every slide with the typical code listed below. Of course this introduces a delay for the viewer at the start of every slide while its related MP3 file downloads.

Is there a way to download the MP3 files for future slides in the background while the first slide is playing in order to eliminate this delay for all slides except for the first one?

var soundReq:URLRequest = new URLRequest("audio/Slide_1.mp3");
var sound:Sound = new Sound();
var oneSoundChannel:SoundChannel = new SoundChannel();

[Code]....

View 1 Replies

Professional :: Loading External Audio File In Array?

Dec 7, 2011

I have figured out how to load an external video file - and I can play an imported audio file, but I can't seem to use either method to load an external audio file into an array.

Here is my audio code:
var tour_audio:Array = [tour1, tour2];
var my_num:Number= Math.floor(Math.random()*2);
var ChosenSound = tour_audio[my_num];
var playing:Sound = new ChosenSound();
playing.play();

Here is my video code:
var my_videos:Array=new Array ("link1.mp4", " link2.mp4", " link3.mp4", " link4.mp4");
var randomIndex = Math.floor(Math.random()*my_videos.length);
my_player.source = my_videos[randomIndex];
I tried "var tour_audio:Array = ["link1.mp3", "link2.np3"]; - but that did not work.

View 9 Replies

ActionScript 3.0 :: Netstream Audio Plays While Video Loading?

Jan 14, 2009

how to get flv's to load up dynamically using xml - it all works well apart from this one problem that i have.

when the thumbnail for the flv is clicked the preloader appears and the flv starts to load - but for some reason the audio begins to play almost immediately - then when the flv actually loads then the audio plays again whilst the initial (unwanted) audio carries on playing!

this is the script for the netstream:

[Code].....

View 1 Replies

ActionScript 3.0 :: Loading And Playing OSMF Audio In Chrome And Safari?

Sep 30, 2010

If been trying to refurbish my website using solely OSMF but, the sound part gives problems in various browsers. It works in IE6 and FireFox but, it doesnt in Chrome and Safari. Does anyone know what is happening and what their differences are when it comes to file loading?[URL]check it for yourself clicking the buttons in various browsers the Flash button uses native flash sound libs the OSMF button the OSMF implementation.

Main.as

Code:
package {
import org.osmf.elements.AudioElement;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;

[code]....

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

ActionScript 1/2 :: Audio Communication Application - Echo In Audio

Jun 15, 2009

I am creating an audio communication application. In that two users are able to communicate. But the problem is that some time in audio I am facing an echo problem.

View 2 Replies

ActionScript 2.0 :: Possible To Have Audio 'scrubbing' That Allows To Hear Audio As Scrub?

Jul 21, 2009

I was wondering if anyone could help me get some information on audio limitations in flash. Is it possible to have audio "scrubbing" that allows you to hear the audio as you scrub? Currently the only way I know to do this is by having it on the timeline, and set to stream. Using this method seems to be causing more issues than it solves. Preferably I would just like to load the audio in dynamically and then scrub through it. Is it possible to use that method and then still retain the ability to hear it as you scrub through it?I am having with the audio on the timeline. The main issue with this is that I have to manually add frames to the timeline, in addition to that I can not dynamically load the audio through xml. Well not that I know of.I think the best route is probably loading in the audio dynamically.

View 0 Replies

Audio Keeps Getting Stuck When Streaming Two Audio Feeds At Once

Sep 13, 2011

I am streaming to live videos with audio to our webpage, each with it's own accompanying audio.   On my laptop, I could stream them without any trouble but it would overheat so I had two new computers built just for encoding.   Now, on the new computers, the 2 videos stream fine but only on audio file works at a time. The other just gets hung up on one note of sound and repeats very annoyingly over and over.

View 2 Replies

Actionscript 3 :: How To Decoding Audio / Audio Playback

Jul 3, 2010

I'm interested in learning how to decode and playback audio in ActionScript 3. I understand how to write bytes to a Sound object using the SAMPLE_DATA event, so that's not really a problem. What I want to understand is how I could implement alternate audio formats for native playback inside of Flash Player. I guess what I'm asking is: how do I take something in X format and "convert/decode" it to WAV format and write the bytes to a Sound object, playing back the audio? I'm interested in writing a decoder for FLAC audio and possibly OGG audio, as these seem to be some of the most widely used open source audio formats

View 2 Replies







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