Hi I didn’t know what forum i should post this question in, I am a noob and I need some help please. [FONT=Times New Roman][SIZE=3]I am having the hardest time trying to figure out how to get the right actionscript to make my music play automatically when my site starts. I have came up with this so far. I put the action script below. But what seems to happen is i have to press play for the sound it doesn’t come on automatically, I really just wanted the music to autmatically play because i want it with my flash intro which will be several frames and then once guest got to my homepage and other pages they have the option to pause it and then play it from where it paused from. I want the music to continue to play throughout the website and not start over each time someone clicks on something on a new page on the site. I hope you can help me I would really appreciate it, I didn’t know how to google this type of question. thanks so much. this is my actionscript for my initial frame [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]this.onEnterFrame = function () {[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]myMusicDurationText=_root.myMusic.duration/1000;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]myMusicPositionText=_root.myMusic.position/1000;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]myMusicDurationText=Math.floor(_root.Sound.duratio n/1000);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]myMusicPositionText=Math.floor(_root.Sound.positio n/1000);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]//loading bar[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]myBar=Math.floor((((_root.Sound.position)/(_root.Sound.duration))*100));[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]Sound = new Sound();[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]Sound.loadSound(“2.mp3”,true);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]SoundPosition=0;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]SoundVolume=50;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]SoundPan=0;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]Sound.setVolume(SoundVolume);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]Sound.setPan(SoundPan);[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman][COLOR=red]and this is for my play button action script[/COLOR][/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]on (press) {[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]Sound.start(SoundPosition,0);[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]SoundPosition=0;[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=red]and this for my pause button[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]on (press) {[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]//Pause button[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]SoundPosition=Sound.position/1000; [/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]_root.Sound.stop();[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]