A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Playing Audio

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    3

    Playing Audio

    Can anyone help me, what I want to do seems as if it should be simple but I can’t even figure out a starting place.

    I want to give visitors to my site an option to have music of a particular genre playing in the background. I see this working with 3 buttons – an ‘Off’ one (default), a ‘Classical’ one and an ‘Easy Listening’ one – each of the latter two will have its own playlist.

    I’m using V7 and thought mediaplayer might be the way to go but I can’t figure out how to start and stop it with my own buttons as opposed to the built in controls. I can find no help on mediaplayer in the Help file, the online manual or even by searching on this forum

    If this needs an Action Script, can somebody point me to a good online tutorial? I’d like that anyway, although I have no experience of Action Script, I’m an experienced programmer – Visual Basic and VBScript – so hopefully I could pick up the basics fairly quickly.

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    There's some documentation about the MediaPlayer methods but I don't know if you have already seen that
    Code:
    C:\Program Files\KoolMoves\Bin\AS3\Documentation\km\index.html
    You can use normal buttons and control a player using ActionScript. An alternative if you want to reuse your own player is to create your own MediaPlayer skin.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center