# Help - music player with javascript interaction

**URL:** <https://forum.kirupa.com/t/help-music-player-with-javascript-interaction/240361>\
**Category:** flash\
**Created:** [October 2, 2007, 11:11am UTC](https://forum.kirupa.com/t/help-music-player-with-javascript-interaction/240361 "2007-10-02T11:11:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimplyArun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplyarun/32/1695_2.png) [@SimplyArun](https://forum.kirupa.com/u/SimplyArun)\
**Post date:** [October 2, 2007, 11:11am UTC](https://forum.kirupa.com/t/help-music-player-with-javascript-interaction/240361/1 "2007-10-02T11:11:40Z")

</div>

Hi folks 🙂

I’ve been trying to build a simple music player that loops a single track with off / on controls. So far everything’s perfect except for this issue:  
[INDENT] **The player is placed in a regular html page - so when the user navigates to another page with the music player, the music starts playing from the beginning.**

The way anybody expects it to be is - **the music should pause when any link on the page is clicked and then resume from the same point in the newly loaded page.**  
[/INDENT]I’ve been trying to do this using a combination of Shared Objects in Flash (aka flash cookies) and passing variables to the movie clip using onClick() events in JavaScript. But so far there’s been no luck. _(I have, however, been successful in using flash cookies to track if the user has turned off the music)_

Are there any alternate ways of accomplishing the same effect? Have any of you done something similar in the past?

Here’s the link: [http://www.simplyarun.com/solveig](http://www.simplyarun.com/solveig)  
(PS: only the homepage and ‘Photos’ page are online - only these links work)

Thanks!
