开发者

Getting a flash video on a new page load at position it was at on the last page

开发者 https://www.devze.com 2023-04-12 10:00 出处:网络
I have a an unobtrusive flash video looping in the background of a website, it is not essential to navigation - it is purely cosmetic.

I have a an unobtrusive flash video looping in the background of a website, it is not essential to navigation - it is purely cosmetic.

The flash video loops every 30 seconds.

As this video is on all pages, it jumps back to the start when a new page is loaded.

Is there an actionscript / javascript way to get it to remember the position it got to on the old page so it can start there on the new page?

I do know that this can be accomplished by loading the flash movie in a frame as well as by having the subsequent pages 开发者_如何学JAVAload the contents in AJAX but I was hoping not to go down this route.

I have seen other people ask the question and allude to the solution but they only posted that they got it to work without saying how.

Thank you.


Flash SharedObject would help you. The link below shows how to use it.

SharedObject

You have to write currentframe of video to the sharedobject, and when it show up again get sharedobject and read the value for currentframe.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号