Play/stop MP3

I'm doing a sort of iPod and I have a little problem with the code. In every keyframe I have the code below with diferents songs. The problem I have is I click the play button and start playing. Then I click next and when I click play for another song the songs overlap. How can I stop whatever song is playing and start playing the new one? Has to stop the prev song when I click play_brn.
Tx
stop();
prev_btn.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    gotoAndStop("samba");
next_btn.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    gotoAndStop("limon");
play_btn.addEventListener(MouseEvent.CLICK,sunday);
function sunday(e:MouseEvent)
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("sunday.mp3");
var context:SoundLoaderContext = new SoundLoaderContext(8000, true);
s.load(req, context);
s.play();

Can you help me correct the code. I have no idea about AS3.
Thanks

Similar Messages

  • Simple play stop mp3 trouble

    I have very limted action script knowlege but I found this
    http://www.tutorialized.com/view/tutorial/How-To-Create-A-Simple-Mp3-Player-In-Flash/34640 to
    tutorial
    and it seemed easy enough even though its an older version than
    what I have (I have cs3)
    To sum up the tutorial if you dont feel like clicking is he
    steps you through 4 or 5 steps to build a simple start stop with a
    few lines of action script. The first problem i run into is that
    when I try to setup the linkage for the mp3 i get the following
    error:
    "A definition for this class could not be found in the
    classpath, so one will be automatically generate in the SWF file
    upon export"
    I am able to bypass this by telling flash to create a new
    class. I think this is where the problem is so what I have for the
    class is northstar the base class is flash.media.Sound, i have the
    checkmark on Export to Action Script and, export to first fram. The
    debugger comes up when I start and I cant figure it out, here is
    the action script:
    "var my_sound:Sound = new Sound();
    my_sound.attachSound("northshore");
    play_btn.onRelease = function(){
    my_sound.start();
    stop_btn.onRelease = function(){
    my_sound.stop();
    I cant find any other tutorials so hopefully you guys can
    help me out!
    Thanks in advance.

    the trouble here is that you must be using CS3 and have the
    file set to AS3 - the code you have above is AS2. so you have a
    couple of options - you can create a new document that uses AS2 and
    use these codes, or use AS3 methods.
    The only real difference is in the 'constructor' and
    attachment methods - we no longer use this process in AS3 and
    instead instantiate a new instance of the class. additionally, the
    handlers for the buttons must also be constructed differently,
    using the event handler model. so using AS3 it would be constructed
    as follows:

  • Playing a mp3, how do i pause / stop?

    I will start out, saying that I've never written my own thread before, and I'm extremely novice in that area. But I found some code for playing an mp3, that's going to be invoked from a JLayeredPane(that i used to make a little animation sequence.) I can't figure out how to stop the player without calling stop on the thread which is apparently depreciated. Might be off this forums area, but from my swing component, should I be calling this thread with invoke? or invoke and wait. this thread doesn't need access to the swing component, but from the swing thread, I want to be able to stop the player. So here's the code I found
    import javax.media.*;
    import java.io.*;
    import java.net.URL;
    class mp3 extends Thread
      private URL url;
      private MediaLocator mediaLocator;
      private Player playMP3;
      public mp3(String mp3)
        try
         this.url = new URL(mp3);
          catch(java.net.MalformedURLException e)
            System.out.println(e.getMessage());
      public Player getPlayer()
        return this.playMP3;
      public void run()
        try
          mediaLocator = new MediaLocator(url);    
          playMP3 = Manager.createPlayer(mediaLocator);
        catch(java.io.IOException e)
          System.out.println(e.getMessage());
        catch(javax.media.NoPlayerException e)
          System.out.println(e.getMessage());
        playMP3.addControllerListener(
          new ControllerListener()
            public void controllerUpdate(ControllerEvent e)
              if (e instanceof EndOfMediaEvent)
                playMP3.stop();
                playMP3.close();
        playMP3.realize();
        playMP3.start();
    public class playmp3
      public static void main(String[] args)
        mp3 t = new mp3("file:///C://Beat1.mp3");
        t.start();
    }

    You just need to write a stop and a pause function as part of the MP3 class, and make sure it's a syncronized function (if you don't know what this means, look up the Java keyword syncronized).

  • How to simply play one mp3 at a time without a playlist or duplicate file creation

    What's always baffled me about Itunes is the overkill factor for we who are media professionals and simply need
    to be able to select and playback an audio file - without the proprietary architecture of the whole "Playlist" format...
    and, as long as we're at it, without automatically having a duplicate of whatever is being played, created and placed
    in a new folder somewhere. 
    "Back in the day..."  I could take SoundJam - (actually the predecessor app that Itunes was originally based upon)
    --which i still regularly use for easy conversion of .aifs to .mp3s --  and select/play any number of mp3s located in a
    single file folder at random.  No "playlist" was created or needed -  and it didn't/doesn't dupe a copy of the file.
    Can i in any way scale down or customize Itunes in a way that i can just play each mp3 in a given folder by selecting
    it 'directly' and not have to have it generate a playlist "copy" -  My use for Itunes as far as commercial production is
    for quick review/play of sound elements, spots (commercials) audio clips, etc. For this I'm not looking to "order" or
    organize anything, just simply start/stop an audio cut and move to another. 
    Alternately, any suggestions on simpler practical alternative 3rd party apps... Stuff like "Vox" comes kinda close but
    i still have to drag and drop the icon of the audio file onto the app's icon to initiate play.  Still, at least it doesn't force
    me into a Playlist or generate a copy just by selecting and playing the cut.
    If this makes sense to anyone I'd really appreciate any ideas,
    Thanks!

    MIKEinMICH wrote:
    Can i in any way scale down or customize Itunes in a way that i can just play each mp3 in a given folder by selecting it 'directly' and not have to have it generate a playlist "copy" -  My use for Itunes as far as commercial production is for quick review/play of sound elements, spots (commercials) audio clips, etc. For this I'm not looking to "order" or organize anything, just simply start/stop an audio cut and move to another. 
    In a Finder window, select a song and press the Space bar.

  • WMP will play some mp3 and mkv files to my Sony TV but not others

    Hi,
    Windows Media Player will play some mp3 and mkv files to my Sony Bravia TV (KDL70W850B) but not others. I get the error: “Failed to retrieve media information”. Sometimes if I make a copy of the files that don’t play, I am able to play the copied files.
    I normally right click on files and select ‘Play to’ and then pick my TV from the list. The following is an example of some files (as displayed in Windows Explorer) and which do and don’t play:
    File Type                    Size        Length              Result
    mkv              1,122,598 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 432,333 KB        00:41:30           Plays
    mp4                 291,948 KB        00:41:30           Plays
    mkv              1,203,197 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv              1,350,122 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mp4                 429,571 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 305,643 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 313,371 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 353,589 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 331,899 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 328,495 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 415,954 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 340,388 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mkv                 106,936 KB        00:10:53           Plays
    mkv                 212,223 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 219,336 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 191,884 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 178,798 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 218,238 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 191,887 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 197,373 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 180,367 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 180,894 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    I have stopped and restarted the Windows Media Player Network Sharing Service and the UPnP Device Host Service; I also linked a Windows Live ID but this did not help. All devices have access to my PC and my TV has the latest software.
    I have Windows 7 and WMP 12 and according to my TV specs, the DLNA supported formats are: MPEG1/ MPEG2PS/ MPEG2TS/ AVCHD/ MP4Part10/ MP4Part2/ AVI(XVID)/ AVI(MotionJpeg)/ MOV/ WMV/ MKV/ WEBM/ 3GPP/ MP3/ WMA/ LPCM/ JPEG/ MPO
    I would appreciate any help you can offer.
    Thank you

    It seems to be an issue with Sony Bravia TV. According to the following article:
    Supported File Formats for DLNA® and USB Compatible Sony® TVs
    Under -Not all files are guaranteed to play.
    Sometimes HandBrake
    does help. I shall suggest you to contact Sony Bravia TV support.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Playing a mp3 when a movie clip loads

    I am using Adobe Flash Professional CS6
    What I am trying to do is play a mp3 file that I have in my library when the clip loads and stop playing it when the a new clip is selected from the menu I created.  On the button that loads the movie clip (Instance name: Slideshow), I have the following code:
    [code]
    on (release){
        gotoAndPlay(120);
    onClipEvent (load){
        mySong = new Sound();
        mySong.attachSound("MastersThisHall");
        mySong.start(0,50);
    onClipEvent (unload) {
        mySong.stop();
    [/code]
    - I went to the properties of the MastersThisHall.mp3 file in my library,
    - Selected the "ActionScript", tab,
    - Checked the box that says "Export for ActionScript",
    - Unchecked the "Export in frame 1" check box, and
    - Added MastersThisHall in the "Identifier" field.
    The sound is NOT playing when I when the "Slideshow" button is pressed.
    Ideas?

    Thank you for all of this; it is very helpful.
    I have series of 6 buttons I created, each of them load a different movie clip. I need to have the music from the slideshow NOT continue to play when a new movie clip is selected.
    I have the following code.
    Frame 1:
    SlideshowMusic = new Sound(this);
    SlideshowMusic.attachSound("MastersThisHall");
    stop();
    Frame 120 (attached to the Slideshow movie clip object):
    onClipEvent (load) {
        SlideshowMusic.play();
    The "Mute" Button:
    on (release) {
        SlideshowMusic.setVolume(0);
    The "Resume Sound" Button:
    on (release) {
         SlideshowMusic.setVolume(100);
    And the "Pause" Button:
    on (release)
      if (SlideshowMusic.position < SlideshowMusic.duration)
        SlideshowMusic.start(SlideshowMusic.position / 1000);
    It is loading and working perfectly. However, I have two more questions:
    1. How do I make the the sound automatically stop when a new movie clip is played?
    2. How do I change the "pause" symbol to the "play" symbol when the "Pause" button is pressed?

  • Play stops in the middle of a playlist ??

    Hi, forum noob here. Don't know if it's been asked before but a search through iTunes Support articles turned up a big bupkis. Nada. Zilch. You get the picture.
    Situation as follows: I've located the three albums I have in my Music library, of a specific artist; I double-tap the cover of the first album to begin play from top to bottom, and I am in Album view. I.T then proceeds with the first song as normal, e.g playing time runs normally in the whatchamacallit top bar and the song name is correct. Song #2 -- plays normally, top bar displays name of song #1 and elapsed time is 0:00 (woo-hoo!)
    Here comes the drop: around song #5 (of 12), when play reaches the end of the song, I.T stops. Music goes quiet. As I'm working on other stuff, I look up, startled, mouth an exasperated "what the...", and hop over to I.T.
    Top bar still show song name #1 and elapsed time 0:00 (yeah, d'oh, the music's stopped!)
    This happens in some smart playlists as well as in the main Music lib. Party Shuffle seems to be unaffected however. So -- can someone tell me how I fix this?
    Oh, FYI, it doesn't seem to matter if I play HQ MP3s or AACs. And I'm on a G4 Mini with Not Enough RAM...
    Cue: The Beatles/"Help" :/
    Mac Mini PPC   Mac OS X (10.4.9)  

    I don't know the answer to your problem. However, you should be aware that this is a User-to-User forum. Apple employees don't generally post here. When they do, it's usually forum moderators letting people know that a particular post has violated the Terms of Use.
    Be patient. Someone may know the answer. There are a lot of knowledgeable people here.

  • I know this can't be the right code to play on mp3 in flash movie

    I just feel that this is not the right code to playing sound if actionscript 3. I'm trying to play a mp3 sound only in flash can someone tell what is the right script to use. This is what I' m using.
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    goback_btn.addEventListener(MouseEvent.onRelease, goSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(e:MouseEvent):void {
        this.play();
    function goSound(e:MouseEvent):void {
        this.gotoAndPlay("1");
    function stopSound(e:MouseEvent):void {
        this.stop();
    thanks

    it's in my library
    I figured out how to write code for mp3 to play
    Now I can't write one to make it stop or gotoAndPlay.
    This is my code to play
    play_btn.addEventListener(MouseEvent.CLICK, playMusic);
    function playMusic(e:MouseEvent):void {
        var myMusic:Sound = new Sound();
        var soundFile:URLRequest = new URLRequest("custodiansofkingdom.mp3");
        myMusic.load(soundFile);
        myMusic.play();
    Can someone tell me how to write code to make it stop and gotoAndPlay
    Thanks

  • Where can i find simple flash play/stop button tutorial

    Can anyone help me where can i find simple flash play/stop
    button tutorial. All i need to import a icon play/stop button, when
    click it load wav file.
    How can i attach media.fla
    when u click btn
    on(release) {
    CodePlayer.start();
    on(release) {
    CodePlayer.stop();
    action script
    CodePlayer = new Sound();
    CodePlayer.loadSound("ContactUs.wav",true);

    OK your sorta close. the .wav file "ContactUs.wav" couldn't
    be too large a file, and you can't use 'loadSound' with a .wav, it
    would need to be an mp3 file and you also have it set to be a
    streaming file, which I would image is not necessary.
    So under File>>import select the wav file and add it to
    the Library. Select it, right click, and select 'linkage'. Enter a
    name for the identifier like 'contact_id' and hit OK. Now go back
    to your code on frame one, main timeline and change the code you
    have to:
    var CodePlayer:Sound = new Sound();
    CodePlayer.attachSound("contact_id");
    Now in your button handlers change to:
    on(release) {
    _parent.CodePlayer.start();
    on(release) {
    _parent.CodePlayer.stop();
    }

  • One button to start/stop mp3 in pdf, but playback toolbar getting in way

    Hi, I want to make a button to play back and stop an mp3 file in an exported pdf. I was able to make a button, then assign two actions to it, one to play the mp3 on mouse click, and the other to stop the mp3 on mouseover. the button looks fine in the pdf, there's just one problem. Indesign automatically puts a playback toolbar in the exported pdf where the mp3 file is located; even if i choose 'none' for poster, the playback bar appears (it's tiny and unusable); i thought it would be simple to have a button start and stop an mp3 but this is proving tedious. Any simple solution would be appreciated. I simply want to play/stop an mp3 file with one button in an exported pdf.

    I think I know what you're talking about, but it's not InDesign. You're probably playing the MP3 in Acrobat or Reader, and those PDF readers don't make the MP3 file totally invisible.
    I've done quite a bit of experimenting and this is the best I can come with: Give the MP3 file no poster image in InDesign, then export as Interactive PDF. After you create the PDF file, you need to select the invisible sound file with the Select Object tool in Acrobat Pro as shown below:
    Double-click the sound file to view its properties. Set the file to play in a floating window. Then edit the dimensions to be 1 pixel by 1 pixel:
    When the sound file is played it appears as a tiny black dot on the gray background outside the PDF page in Acrobat or Reader.

  • HT201401 my earphones are not working on my iphone4 to play, stop or forward to other tracks or answering a call and i know its not the earphones as ive just paid out for a new pair at £27.99 and still wont work anybody got any advice as fed up honestly

    anyone can you help my earphones are not working on my iphone4 and i know its not the earphones has just bought new pair and no joy  I can not play, stop, forward to different tracks or anything cant answer call nothing end of ideas can anyone help pretty please

    Yes there genuine apple earphones I have now blown down jack slot and silly enough I turned my phone off and now it's back on earphones working properly now feeling a wee but silly as such a simple thing got them working.
    Thank you guys and I know where to come again if I need any further assistance.
    Again thank you everyone  

  • Creative MediaSource will not play certain MP3

    I have a Creative Audigy 2 NX with a remote that I really want to be able to use. Programs such as GIRDER, WinLIRC, and uICE do not support the RM-500 remote control.
    I can't figure out how to control the remote beyond editing and creating key files that send ASCII commands, but the problem with that is I cannot control programs that are not currently acti've. In other words, I cannot control winamp if I'm playing a game with my remote, which is what I want to do. The KEY files are structured as this:[KeyEvent690 etc]KeyName=whateveryouwantdisplayedNotification=- or 2 or 4KeyEventRemap=this is the important partHandleByApp=i don't know what this doesAnyway, if I set notification to -, I can send ASCII commands-- BUT these will not send to programs not currently on top. If I set notification to 2, as Creative did in their Winamp .x key file, I could control the program even if it is not on top-- BUT I DO NOT KNOW HOW TO FIGURE OUT WHAT THE KeyEventRemaps NUMBERS SHOULD BE. I cannot find this information, and I have tested as far as I am capable of doing manually (tested numbers through 500 MANUALLY).So what I want to be able to do is use my remote to control winamp, but that is impossible. And Creative MediaSource will not play streaming audio (for God knows why...). So what I decided to do was record to an MP3 player with a third party program and play that MP3 in the Creative MediaSource software (the built-in recorder will NOT work, as I cannot structure that into a playlist nor can I play the recording media nor can I minimize the program and mute the feedback-- I can only record if I'm playing, and this doesn't work). The first problem I encountered was several programs would not output MP3s that were playable as they were being recorded, however I finally did find one. This program, 3aLab iRadio, allows the MP3 to be played back WHILE simultaneously being recorded. The only problem is that this the Creative MediaSource software will NOT play the mp3. Out of the 5 different MP3 players I tested, ONLY the Creative MediaSource software would not playback the MP3 as being written. I cannot figure this out, and I am at a loss as to what to do next. I realize that Creative won't support streaming audio with their player, MediaSource, but what I like to do is listen to streaming internet radio as an item on my mp3 playlist in winamp. I wish to be able to control this with my remote, but as I cannot find ANY WAY out there to control my remote as I wish without further information, this is a dead end. My alternati've is to use the Creative software for which the remote was designed to work, but unfortunately this does not support streaming internet radio nor does it support MP3s that are being written to. This is driving me insane.
    What I want to be able to do is have a playlist that I control with my remote, with the first item on the list being internet radio, the 2nd and such on down being MP3s. In winamp, this is doable, as well as in Windows Media Player, and most MP3 players out there. Since I cannot do this in Creative's software, I need a workaround alternati've. PLEASE.
    So, in conclusion, is there anyone out there who can either tell me how to control my remote directly by identifying what the notification=2 keyeventremap=configuarions are, give me a program like girder however which supports the RM-500 remote, or tell me how to get MP3s that are being written to (aka incomplete) to play in the Creative MediaSource software?
    Thank you very much for your time.
    Message Edited by PzyX on 0-5-2005 08: PM

    Sky_Blue wrote:
    Hey ppl. I own a Zen neeon which i bought in Hong Kong. I can't play any of the tracks and i don't know why. Can i still transfer them to my mp3 or will they not work?
    I am afraid that you need to provide more detail steps of your problem.Message Edited by micromouse on 0-04-2006 0:52 AM

  • Mp3 links no longer stream in firefox 4.0 but it works in 3.6, how can i make 4.0 play a mp3 stream like before

    i dont think this is a problem with the quick time plugin as it works fine on 3.6. is it maybe more the way firefox 4.0 looks at the .mp3 links and only wants to save it? i like the fact you can stream links rather than have to save them first before you can hear them...
    thanks

    Also to add to this, I have tried Microsofts HTML 5 test drive demo on the "HTML5 Audio Player + XML Playlist" section and Firefox 4.0 doesn't play steamed MP3 files from this.
    If it's other streaming formats such as OGG or WAV, then Firefox will play them with no problems.

  • ITunes 7 will no longer play some MP3's

    MP3's that have played before now no longer play in iTunes. I can play the MP3's in WMP. iTunes will no allow me to add them back to my library after removing them now. There isn't anything wrong with my songs. What should I do?

    Hello,
    Has anyone found a solution to this?
    I have a similar (maybe the exact same) problem. I have only ever used iTunes, since version 2 I think, and am at version 7.5 now.
    More and more of my songs are becoming unplayable. It would appear to be the problem described in this thread, except for the part about editing the tags which I never do.
    One song of an album plays fine, the next is completely unplayable in iTunes, Quicktime, and VLC, and the Finder's Preview function does not work.
    This is getting REALLY frustrating. Any solutions ?
    Thanks

  • How do I get the Play, Stop, Volume controls to appear in my embedded Flash object?

    Hello,
    I want to show .swf or .flv videos on my website--like
    youtube.com. I want to use the standard Flash Player object
    embedded in a web page, however, I cannot seem to find the exact
    params that make the standard controls appear (ie, Play, Stop,
    Pause, Volume, etc). I just want to show a video and have the Play,
    Stop, Pause, Volume controls visible at the bottom. What do I need
    to do to get these controls to appear?
    Here's my current code:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="800" height="600">
    <param name="movie" value="
    http://www.sitename.com/flash/dt_flash.swf">
    <param name="quality" value="high">
    <embed src="
    http://www.sitename.com/flash/dt_flash.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="800"
    height="600"></embed>
    </object>
    Any help would be greatly appreciated! :)
    Jason

    Sorry!  It's AS3. A typo on my part but, thanks for answering the post.   This is the correct answer that worked for me. Also,  the answer came from Kglad in the AS3 forum
    Assign your component an instance name (if it doesn't already have one), eg flv and in the frame that contains that component add:
    flv.addEventListener(Event.REMOVED_FROM_STAGE,removedF);
    function removedF(e:Event):void{
    flv.stop();

Maybe you are looking for

  • Customer Tax Picking Issue

    Hi, When i go to create customer (XD01) under Sales Area Data ->Billing Documents -> Taxes: The default entry that appears is Country DE and MWST tax. I want MWST tax to appear for a different country and not DE. From where can i change this? Please

  • RCATSTAL

    Hi, Our night job, RCATSTAL which is for cancellation of posting is failed for some entries When we run the job manually again, we get the error "Posting period 004 2008 locked". How can we change the posting date in these lines?

  • How to install MIDlet on Samsung phones?

    Hi friend ! Please tell me how can we install .jar file on Samsung devices? Generally I am using Nokia and sony ericsson handsets for testing. Now I have samsung SGH-D520 AND SGH C50 mobiles but I don't know How to install J2me application on samsung

  • How do i licence a two node RAC with ASM infrastructure

    AM trying to estimate the licensing of two node RAC with ASM as storage manager and GRID control as management tool

  • Lower case letters won't type?! ! ! Is there a reason?

    Hardly any of my lower case letters won't type in Dreamweaver. Must have pressed the wrong button somewhere. Please help Rick