Home
hosting green
hosting green
 
hosting green

Build Simple Sound Player: Flash Tutorial AS 3.0

Flash Tutorials

Date 25th Feb 2010   Comments 25 Comments »

Check this video out at Hi-Res here: www.tutvid.com In this video we will connect aa play and pause button to an external source of sound. We will get the sound both from our hard drive and from the live web and build a mini sound player with a simple play and stop button! We will be using Actionscrip 3.0 and learning about urlrequests as well as the Sound, soundmixer, and soundchannel classes. Please check out the site www.tutvid.com

hosting green
hosting green

25 Responses to “Build Simple Sound Player: Flash Tutorial AS 3.0”

  1. manharanlal says:

    good sound player tutorial for every body

  2. spydi3 says:

    thanks

  3. Iglitchlife says:

    wtf???

  4. bellasooky says:

    wow your my hero…

  5. ir3nicus says:

    TheMightySlusk , I check this tutorial out also in CS4. and I found a solution. You have to change this line:
    sndTrans=thisSnd.stop();
    on this one:
    sndTrans.stop();

  6. spima says:

    There’s no change, it’s still AS3

  7. Iglitchlife says:

    OMG i got loads of adobe products and didnt have a clue wat to do with them, i got:

    Flash, Soundbooth, Photoshop Extended, captivate, after effects, illustrator!

    now just 1 week later i can do shitloads of stuff thanks to you!

    I SUBSCRIBED and RATED MOST, IF NOT ALL OF YOUR VIDS 5*

    i just wanna say thanks you know! :)

  8. djmatche says:

    Please how about to add a Second music on it.
    I have been trying. but if add in the same frame, there is errors.

  9. nosferotica1 says:

    do it as:

    addEventListener(Event.ENTER_FRAME,playM);

    then define the function…

    function playM(e:Event):void{
    sndTrans = sound.play();
    }

    … I’m getting the “null object or reference” error with the stop button though X(

  10. TheMightySlusk says:

    does any1 know if there should be any changes in the action script if you use flash cs4? its not working for me :/

  11. mansion10000 says:

    Nice Tutorial! Too bad I knew this already. LOL.

    Answer to julianic81:
    Add that play function right after the load function and change that first stop_btn.visible in between the button event listeners to play_btn.visible = false;

  12. MrTrianglz says:

    can you make a track tutorial.

  13. julianic81 says:

    this is beautiful thank for sharing this with us but a I have one question how I can have the sound playing auto! thank you for your help!!

  14. leonelc29 says:

    3.0 are cooler.

  15. SwordSkill2 says:

    Do you know hot to make a movieclip when is being in hitTest to play a sound???
    I tryed this: if(_root.mpla.hitTest(this)){load(Sound)}
    but didn’t worked.. Do you know the code for playing sounds?

  16. PrettyPrincezz100 says:

    I have seen many of your videos an I have to say your are very good at explaining things
    In your tutorials

  17. kellthusad says:

    I got this Error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.

    Can some1 help me with this!!!???

  18. steveinater says:

    thanks a lot for this tut helped a lot. quality on youtube sucks though high quality one was much easyer to view the text.

  19. MGSFan09 says:

    Thanks this really helped!!

    Note: To those who are getting the file stream error you have to import the sound file into the stage NOT the library.

    Do this by going to:
    File>Import>Import to Stage, then just go to your sound file.

    AND you MUST MUST MUST save your file. After you’ce saved it, then preview your mp3 player and it WILL work. I had the very same problem with streaming etc.

    Hope this helps!
    If you have anymore questions about streaming etc. feel free to mail me.

  20. walkerm930 says:

    there are alot of problems with it (notably preloaders) but it is more powerful and newer in general

  21. superfly100088 says:

    2.0 is easier.

  22. DJBassEnergy says:

    Why?

  23. superfly100088 says:

    3.0 is not as good as 2.0

  24. TheArtOfGames says:

    I get this because i have only AS 2
    **Error** Scene=Scene 1, layer=AS, frame=147:Line 1: Operator ‘=’ must be followed by an operand
    var loadSnd; URLRequest = new URLRequest(*5.Where i may Roam.mp3*)

    Total ActionScript Errors: 1 Reported Errors: 1

  25. sendono says:

    Arigato Gozaimasu!

Leave a Reply

 
hosting green

Powered by Yahoo! Answers

Powered by eShop v.3

 
Affiliate Program

 

Resell

copyrights DeFlash! 2009