CLICK THE PLAY BUTTON TO HEAR THE MUSIC (TAKES A FEW SECONDS TO LOAD… WORKS GUARANTEED!)
On this tutorial we create a music player from scratch using the SoundChannel Class in ActionScript 3.0.
DOWNLOAD THIS TUTORIAL WITH COMPLETE FLA SOURCE FILES: $5
DOWNLOAD CARTOON SMART SOUND AND MUSIC TUTORIAL: $20
HERE IS THE SOURCE CODE!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
//The ActionScript 3.0 Sound and Music Player
// by Avraham Saltoun
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE
var req:URLRequest = new URLRequest ('http://say-web.com/Lesson29SoundPlayer/SmartSound.mp3');
var sound:Sound = new Sound();
// The sound class is the recepient for the
// imported sound file
var controller:SoundChannel;
// the controller sound channel
// will be used to play and stop the music file
function soundLoaded(event:Event):void {
controller = sound.play();
controller.stop();
// this will stop the file from playing
// right after loaded.
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
}
function playSound(event:MouseEvent):void{
controller = sound.play();
}
function stopSound(event:MouseEvent):void {
controller.stop();
}
sound.addEventListener(Event.COMPLETE, soundLoaded);
sound.load(req); |




February 9th, 2012 at 10:35 am
kamagra jelly acheter
February 9th, 2012 at 10:51 am
thanks broo
admin very very niceeeeeee
February 9th, 2012 at 11:13 am
comment4, Nolvadex, vbach,
February 9th, 2012 at 1:02 pm
comment6, Imitrex, futam,
February 9th, 2012 at 2:15 pm
kamagra soft
February 9th, 2012 at 2:24 pm
online tramadol – buy tramadol
February 9th, 2012 at 2:51 pm
comment5, Lamisil buy, 32984,
February 9th, 2012 at 4:18 pm
http://social.fixtechcs.net/index.php?p=blogs/viewstory/500924
February 9th, 2012 at 4:38 pm
comment3, purchase Flomax, xpsnt,
February 9th, 2012 at 4:52 pm
http://www.myfiwifi.net/index.php?p=blogs/viewstory/7828
February 9th, 2012 at 5:44 pm
levitra prix
February 9th, 2012 at 6:14 pm
comment4, purchase lasix, 3856,
February 9th, 2012 at 9:00 pm
Levitra Oral Jelly
February 9th, 2012 at 10:09 pm
thanks broo
admin very very niceeeeeee
February 10th, 2012 at 12:20 am
revatio htap
February 10th, 2012 at 3:00 am
phentermine online – buy cheap online phentermine
February 10th, 2012 at 4:06 am
silagra
February 10th, 2012 at 6:09 am
Thanks for this good article
February 10th, 2012 at 10:40 am
tadacip 20 mg
February 10th, 2012 at 10:41 am
syO7dM gsugxkhnoaop, [url=http://fhpcteqkqcea.com/]fhpcteqkqcea[/url], [link=http://ebwaqbrszmar.com/]ebwaqbrszmar[/link], http://slsshjszgbft.com/
February 10th, 2012 at 2:00 pm
tadalis sx ajanta
February 10th, 2012 at 4:17 pm
comment2, lasix purchase, >:D,
February 10th, 2012 at 4:51 pm
comment3, Nolvadex purchase, duq,
February 10th, 2012 at 5:21 pm
acheter viagra
February 10th, 2012 at 9:01 pm
acheter vigora
February 10th, 2012 at 11:54 pm
f, zithromax 30 pills, cialis levitra viagra vs vs, acomplia drug, clomid counter over, levitra.com,
February 11th, 2012 at 2:45 am
You actually make it appear so easy together with your presentation however I to find this matter to be actually something which I believe I would never understand. It kind of feels too complex and very vast for me. I am taking a look forward for your next publish, I will try to get the hold of it!
February 11th, 2012 at 2:56 am
Thanks for this good article
February 11th, 2012 at 4:53 am
comment4, Lipitor purchase, %-D, buy Lasix, =-]], buy Celebrex, ynlj, purchase Nolvadex, 554956,
February 11th, 2012 at 5:28 am
comment6, buy Synthroid, >:-DD, Celebrex purchase, 547, Nolvadex purchase, efwhqe,
February 11th, 2012 at 6:04 am
comment4, lasix, 425,
February 11th, 2012 at 8:07 am
a, viagra, propecia rogaine, levitra levitra, ciprofloaxin, how to apply elimite, brown discharge clomid,