svgmx5 Posted May 8, 2011 Share Posted May 8, 2011 I have a music player on the top part(header) of a website and i want to prevent it from restarting every time a user changes a page. the site is php/html. so how i can prevent this from happening aside from using iframes. Quote Link to comment https://forums.phpfreaks.com/topic/235825-preventing-restart-on-an-swf-embeded-file-on-page-reloadchange/ Share on other sites More sharing options...
trq Posted May 8, 2011 Share Posted May 8, 2011 There would be no way of doing this without using iFrames. Quote Link to comment https://forums.phpfreaks.com/topic/235825-preventing-restart-on-an-swf-embeded-file-on-page-reloadchange/#findComment-1212287 Share on other sites More sharing options...
spiderwell Posted May 9, 2011 Share Posted May 9, 2011 not true, with actionscript it could be done or javascript. a combination of setting a variable when the site is first visited, which when the page is reloaded or a new one served sets the movie to not play. Quote Link to comment https://forums.phpfreaks.com/topic/235825-preventing-restart-on-an-swf-embeded-file-on-page-reloadchange/#findComment-1213093 Share on other sites More sharing options...
trq Posted May 10, 2011 Share Posted May 10, 2011 not true, with actionscript it could be done or javascript. a combination of setting a variable when the site is first visited, which when the page is reloaded or a new one served sets the movie to not play. I don't think you actually read the op's post. Quote Link to comment https://forums.phpfreaks.com/topic/235825-preventing-restart-on-an-swf-embeded-file-on-page-reloadchange/#findComment-1213258 Share on other sites More sharing options...
spiderwell Posted May 10, 2011 Share Posted May 10, 2011 sure i have, perhaps I misunderstood it accessing the common object you can create a flash cookie that will only play the movie the first time the user visits the site, and it wont restart but reading it over, I see now he is more likely to want the music to be continuous in which case I refer him to your response. Quote Link to comment https://forums.phpfreaks.com/topic/235825-preventing-restart-on-an-swf-embeded-file-on-page-reloadchange/#findComment-1213321 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.