Hello everyone,

I have a problem. When I click on my "Upgrade" section (I'm making a game) it is supposed to play a music. But in reality, the music is played ...

Actionscript Code:
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]
[object SoundChannel]

... According to the trace.

Here is my main menu, with the 3 buttons. The problem is on the Upgrade button.

Actionscript Code:
////////////////// Script Menu Principal //////////////////


var Upgrademusic:Upgrademusique = new Upgrademusique();



stage.addEventListener(Event.ENTER_FRAME, onEnter);
function onEnter(event)
{
    if (currentFrame == 3)
    {
        stop();
       
        Creditsbutton.addEventListener(MouseEvent.CLICK, CreditsbuttonClick);
        function CreditsbuttonClick(MouseEvent):void {
        gotoAndStop(4);
        }
       
        Upgradebutton.addEventListener(MouseEvent.CLICK, UpgradebuttonClick);
        function UpgradebuttonClick(MouseEvent):void {
        gotoAndStop(5);
        }
        Upgradebutton.addEventListener(MouseEvent.CLICK, UpgMusic);
        function UpgMusic(event):void {
        Upgrademusic.play(0, int.MAX_VALUE);
        trace(Upgrademusic.play());
        }  
       
        Playbutton.addEventListener(MouseEvent.CLICK, PlaybuttonClick);
        function PlaybuttonClick(MouseEvent):void {
        gotoAndStop(6);
        }
         
       
    }
}


Of course the problem is that the music is stacked more than 15 time and it gives an awful unsincronized thing.

Help & Thanks.