This content has been marked as final. Show 5 replies
Just to see whether I get you:
You want to make a button in a Flash movie do the same thing a HTML link to an anchor does, so you want the HTML page to scroll to another place (probably scrolling away your Flash movie), right?
You don't want to scroll inside the Flash movie, right?
Ok, if that's the case you do the same thing as in HTML, just embed that link into a getURL call, i.e. let's say you have a HTML anchor called "test", your HTML page is called "www.site.com/index.html", then you would simply write the following actionscript on your button:
Wolf, thanks for hitting me up.
Um after researching it more I used the wrong terminoligy to explain what I wanted to do. Sorry. What I want to do is to make Flashesque type Anchors. The whole window would will be flash, but how do I get the IE scrollbar to react accordingly? Here's an example of someone who already has done it. I've emailed and then haven't written back. http://www.fantasy-interactive.com In the bottom right hand corner of the boxes there's a return arrow that shoots you back up to the top of the screen like a HTML Anchor. How would I go about duplicating that kind of effect?
Ok, now it's clear what you want.
window.scrollTo(0,0); for instance moves the content to the top right corner again.
You can even put that into a simple link, for instance, if you use the text below, your browser window will scroll back by 600 points (a little less than a page full) if you click:
As to the site you give, it really doesn't scroll that way, it moves to a different page INSIDE the flash movie.
The browser's default behaviour is to scroll back to 0,0 when a new page is loaded, and this site uses this automatic behaviour. Normally the browser doesn't recognize when Flash changes the "page", and therefore normally this doesn't happen. That's why normally you also can't use the browser's back and forward buttons.
But this site uses Flash anchors that "inform" the browser of the "page change", you see if you click one of the buttons and then use the browser's back button.
Flash anchors are a difficult subject, I can shed a little bit of light on it, because I've used them myself, but never got to work them flawlessly. It doesn't work on that site either. Just try to bookmark one of the sub-pages, then close and re-open the browser window and try to return to your bookmark.
Interesting subject though...
Thanks Wolf. I'll put what you said in to action and I'll let you know how I make out.