how to make flash page scroll to top?
I have an AS2 site where all the pages are different lenghts and have navigation at the top and the bottom.
When you click on the bottom navigation on one of the longer pages in order to get to another shorter page, you land on the same place where the bottom navigation was on the page before; ie you land at the bottom of the page.
How can I get around this so that every time you land on a ne开发者_如何学JAVAw page it has scrolled to the top?
Thanks!!
JavaScript:
window.scroll( 0, 0 );
Or give the object tag an id as an anchor, and link to it.
navigateToURL( new URLRequest( '#top' ) );
精彩评论