How to jump to anchor in HTML

This is a problem:

I want to have a flash movie on my web page, it will have some buttons with animations.
Is there posiblle to jump somewhere in the same web page (anchor) if I press button in flash.
How can I make button like that.
:frowning: :frowning:

Same way you would in HTML. Just put the code within a getURL tag.

Thanks but I havent done that in HTML yet so please would you explane it to me.

First create your anchor in the HTML page where you want to jump to.

<A NAME="jumpHere"></A>

Now use a URL to jump to that area…

on (release){
getURL("#jumpHere");
}

Untested of course, but I don’t see why it wouldn’t work, a getURL serves just as well as the A tag in HTML.

I will try it, thanks.

No problem :slight_smile:

It doesn’t work, it just reloads the page .
Try ti.
:frowning: :frowning:

I think you have to use the full url…

in other words:

I think…

Rev:elderly:

That might be it, but Rev, when you do that, there is no slash before the # so it would be

Yes now it works but not in the way I need.
When I klick on the published movie it opens the html page and jumps on the anchor.
But if I open the page in which I have embeded the swf it only reloads the same page and dont jump to anchor, puf pant.
:*(

Hmmmm, no clue then :-\

thanks lostinbeta…

I am soooo lazy with my HTML… :evil: my bad

Rev:elderly:


getURL("java**script:location.href=location.pathname + \"#top\";void(0);");

top, or whatever your anchor name is