Flash CS3 AS2 Sound Controls. Not working as tutorial describes..

Discussion in 'Design and Graphics' started by MattSepeta, Apr 16, 2010.

  1. MattSepeta macrumors 65816


    Jul 9, 2009
    375th St. Y
    I am trying to follow the walk-thru in the Flash Documentation, but it is not working. My goal is a play button and a stop button that control a mp3 file via linkage and AS2.

    I named the buttons play_btn and stop_btn, respectively.


    var song_sound:Sound = new Sound();
    play_btn.onRelease = function() {
    stop_btn.onRelease = function() {

    The mp3 file has the proper linkage properties in the library, and will play in the library when I preview it, and this script is located on the only layer I have, on the first frame which is a keyframe, and the only frame.

    When I export or preview the swf, the mouse responds when mousing over the buttons, but when I hit play, it does not play any sound.

    Am I missing something?
  2. Ride9650 macrumors 6502

    Jun 29, 2007
    did you simply name your buttons or are "play_btn" and "stop_btn" the actual "instance" names of the two buttons on the stage

Share This Page