Getting id from url to play a sound

I’ve got 3 pages and three sound files. Can i create just one flash file to load in all 3 pages and then to get an ID from the url to play a specific file?

EX: Page1.html, page2.html and page3.html should play sound1.mp3, sound2.mp3 and sound3.mp3 respectively.

Instead of creating a flash movie for each page, i just have one movie that is loaded on all pages and plays the corresponding sound.

I currently use this for the “play” button in the flash movie (doesn’t work)


on (press) {

if(_root.id==1){
 
this.loadSound("../media/mp3/sound1.mp3")
 
}else{
 
this.loadSound("../media/mp3/sound2.mp3")
 
}else{
  
 this.loadSound("../media/mp3/sound3.mp3")
	}
}

this is how i have the embed code in my html


<object type="application/x-shockwave-flash" data="../swf/commonplayer_1.swf?id=1" width="149" height="100" wmode="transparent" ><param name="movie" value="/swf/commonplayer_1.swf" /><p>You do not have the flash plug-in installed. If you would like to view this site you will need to go <a href="" title="">download the flash plug-in</a>.</p></object>

Please tell me what i am doing wrong and correct it!