Actionscript 3 :: Play A Sample Sound For Around 5 To 10 Seconds?
Jan 11, 2011
Can some only indicate a small piece of FLEX/AS code which plays mp3 and with play button only,the objective is to play a sample sound for around 5 to 10 seconds.And the compiled swf should have the mp3 embeded in it
View 1 Replies
Similar Posts:
Jul 2, 2010
I want to know how to play a mp3 sound every 2 seconds.
View 1 Replies
Jun 20, 2011
I'm working the last two weeks on a module which uses computeSpecturm() to analyze FFT data from a mic. I'm currnetly trying to figure out a way to detect the pitch on each 'sample' of this sound. Does any one know how to find the fundamental frequencty or how to use auto-correclation on the FFT to get the pitch?
View 4 Replies
Jun 10, 2007
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?
View 4 Replies
Mar 12, 2011
I'm working on an Adobe Air application written in Flex 4 that plays .mp3 audio files on the user's computer. Note: these are are not audio files shipped with the application -- they are .mp3's on the user's computer that they select for playback through the application. The application works fine for .mp3s encoded at 44.1 kHz, but can give unpredictable results if other sample rates are used. I've done plenty of research to know the limitations of the Sound class and how .mp3 will basically be my only option in Flex.
My question is: Is there a way to detect the sample rate of the .mp3 audio in Flex 4 ActionScript? Rather than worry about making the application work well with non-standard sample rates, at this point I'd like to just catch those cases and prevent files with non-44.1 kHz sample rates from loading. To be specific: if a user selects an .mp3 for playback that has been encoded at 48 kHz, for example, I'd like to be able to detect that case and take action preventing the file from loading and then announce to the user that this is not a supported audio file.
View 1 Replies
Feb 24, 2010
I bought a ready to use mp3 player /shop solution ( Paypal ).Buyer gets the link to the loaded ( player ) mp3 file after successfull payment by email.Need to feed the player with only a part of the mp3 file, but taken from the full length mp3.
I cant simply load a pre-cut mp3 into the player, as the buyer will get the link to the file which loads into the player after buying.how to call just like the desired seconds to play from the track ?
View 0 Replies
Nov 11, 2009
I'm having some trouble getting the following code to work - trying to use the new Sound.extract() function to get two seconds of a Sound into a ByteArray, and then create a new bytearray with a WAV header, and then output the file. The resulting 'test.wav' file sounds very wrong although slightly recognisable? I think I may have some of the WAV header settings may be wrong but I'm not quite sure what's the matter and after a long time scratching
[Code]...
View 5 Replies
Aug 12, 2009
i have installed flash media server 3.5 ..windows vista and using FLASH 10right now in Flash Media Server page I am only able to play HTTP sample,RTMP file is not working , i check the sample folder >> and open HelloWorld >> that shows error :: Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failedat HelloWorld/connectHandler()what should i do now need ur help urgent
View 5 Replies
Aug 4, 2009
if I repeat this IIS topic, I couldn't find the answer to my problem any where on the internet. I installed FMS Dev 3.5 on Win 2003 Server with IIS 6.0 enabled. I don't have any issue with port 80 Listening, I used the IP address 192.168.0.21 for my web application (IIS) and 192.168.0.22 for FMS (I only have one network card and port 1935 is open under firewall). I can play the sample videos (RTMP, HTTP, and Dynamic Stream) using the Flash Media Start Screen (or from the location C: Program FilesAdobe Flash Media Server 3.5webrootindex.html) without any problem.
I then modified the IIS Default Website to look at the "webroot" folder (C: Program FilesAdobe Flash Media Server 3.5webroot). From IE, I can access the default web site by enter http://192.168.0.21/index.html. The website loads up correctly, and the RTMP video is playing perfectly. However, if I click Play Video (HTTP) or Dynamic Stream (tab), I receive "Connection Error. Please press Play to try again." I look at the log file (access.01.log) and see the error log "Session disconnect
[Code]...
View 5 Replies
Jan 24, 2003
Ive attached sound in to mySound variable. How to get how many seconds the sound in mySound have played?
View 1 Replies
Oct 6, 2011
I am using the flash platfrom to create a player that will load sound that have 8KHz sampla data rate, but the default data rate is 44.1KHz.
Is this somehow possible?
Is it even possible to use also 4KHz?
Also is it possbile to get 16bit sample, not the default 32bit?
View 1 Replies
Mar 28, 2011
I have the follwoing code but I Cant figure out how to make the sound play after 3 seconds.
Code: Select allvar fl_SC:SoundChannel;
function startAnimation():void {
var s:Sound = new mySound();
[code]...
I get the following error when I compile the file with the comments part taken out.Scene 1, Layer 'Layer 1', Frame 1, Line 61061: Call to a possibly undefined method start through a reference with static type Class.
View 2 Replies
Aug 23, 2010
i'm using loadSound() to play a mp3 file, but after couple of seconds of playing, it restart to from start and then play normally... when a file already play at least once, everything going as normal.
song1= new Sound();
song1.onSoundComplete = function(){
song1.start(0,1);
};
song1.loadSound("mp3/"+curMP3,true);
you can hear it online here: domusventures.com/furnitures
View 1 Replies
Jan 30, 2012
I'm trying to build a play back progress bar for an audio recorded from the users microphone. It works okay but when I play back I can't figure out how long the audio is so I can calculate percent played for animating a progress bar. Most of these snippets can be found in LiveDocs and online examples from bytearray.org. Audio is stored in the bytearray and the sound is played back in a sound channel.
[Code]...
View 2 Replies
Oct 14, 2009
It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.
But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!
View 9 Replies
Feb 13, 2007
i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.
View 13 Replies
Mar 24, 2011
I have 3 flv videos that I want to play if the user doesn't move the mouse in 10 seconds.. (I don't want all of them to play, I want to select a random flv video to play each time) at the moment I am just playing the video without any of the above happening:
var video:Video = new Video();
addChild(video);
var nc:NetConnection = new NetConnection();
[Code]....
Would it be best to stream the video or import it into a movieclip?
View 2 Replies
Apr 11, 2011
I need to have a swf load at the beginning, but I don't want to play about the last 3 seconds of the video.
basically have my swf play for "x" seconds?
Heres what I Have so far.. Currently it is set up to play the swf, but subtract "x" seconds from it but for some reason it doesn't seem to work[code]...
View 2 Replies
Nov 15, 2011
How To Autoplay after 5 seconds.
View 9 Replies
Sep 10, 2005
i have a simple animation which i made it with masks ,and i want to play this animation every 7 seconds ,so is there an action script code that let me play this animation with loop every 7 seconds.
View 4 Replies
Nov 7, 2005
If i want an animation to play after 20 seconds where there are no mouse movement, how should i write the codes? If within this 20 secs, there is movement, then it should restart counting from 0 seconds again ...
View 9 Replies
Jul 24, 2010
I have a Logo.swf file which play once and stops. I want to use this flash movie in another flash project using LOADER. What actually I need is, I want to play this movie every 10 seconds interval using Actionscript 3.
View 4 Replies
Nov 29, 2011
I am working in AS2, and am looking for a code that allows me to stop the frame (which is easy: stop() and then make that frame "play" if you will for 30 seconds, and then gotoAndPlay("nextframe"). Is this even possible? I know there's a getTimer(); code, but I have no idea how it works. (I have animations going on in the different frames through movie clips, not on the timeline. Basically trying to make a "movie" with flash)
View 8 Replies
Aug 23, 2004
I have an intro and I would it to automatically go to Scene 1 after 30 seconds.
View 3 Replies
May 13, 2003
The movie play's. At a frame, for example frame 45 I wanna make a pause for 20 seconds and then play next frame ( 46 ).How can I do this?
View 4 Replies
Aug 23, 2004
I have an intro and I would it to automatically go to Scene 1 after 30 seconds.
View 3 Replies
Mar 27, 2011
I want to play random videos after 10 seconds if the mouse has not been moved. I am getting this error:
[Code]...
View 10 Replies
Nov 9, 2010
I need a script that would play an animation consisting of 4 frames for, say 20 seconds. The order of those frames needs to be random but it has to stop after 20 seconds.Next, frames need to change each, say, half a second. But, as much as I MIGHT be able to figure this one out, here's what made me post here. The four frames are four keys on a keyboard. Each time frame changes to a corresponding key drawing, one has to hit the right key on the keyboard to make a different animation on the stage, animate.
View 14 Replies
May 16, 2011
when I use the following function in my doc class to launch a local video, the video "freezes" after a few seconds. This happens no matter what video I am trying to play.
Code:
private function startVideo(e:MouseEvent):void
{
[code].....
View 7 Replies
Oct 5, 2004
i have a button on the stage...when clicked i want it to wait 2 seconds, then gotoandplay a porton of another movieclip
View 4 Replies