AH of course! didnt even think of that
Maybe somthing like this for the profile option.
PHP Code:
localStorage.setItem('startupsound','false/true');
And somthing like this at the first lines of the actionscript?
PHP Code:
var startsound = localStorage.getItem('startupsound');
if(startsound == "true"){
//play sound
}