View Full Version : using HTML's "page.html#name" in flash?

White Leviahan
06-03-2002, 10:22 PM
I have a site i am working on with sub-links in the flash menu where each link is linked to different parts of a page using:

<a NAME="name1">text</A>

and then i am using:

on (release) {
getURL("page.html#name1", "Iframe-being-targeted");

as the link. the problem is, it doesn't bring you to the name1 area, none of the links do, it brings you to the top of the page.

Any idea on why? and how can i get this to work?

I tested to make sure i was doing this correctly html wise by making a link right under the flash menu:

<a href="page.html#name1" Target="Iframe-being-targeted">link test</a>

and it worked fine!

06-03-2002, 11:37 PM

Read that technote and the suggest Javascript workaround.

White Leviahan
06-04-2002, 03:04 AM
Thx for the link! that helped alot... weird that is doesn't work with IE 5.5 on Win98 :\


I ended up just using the GETURL to call a JS function that called the anchor (a little like the "http://www.macromedia.com/support/flash/ts/documents/named_anchors.htm" site told as a solution):

on (release) {

and in my HTML i put:

<SCRIPT LANGUAGE="javascript">
function t(x) {
var link = "page.html#" + x;
window.iframe_name.location.href = link;

thx for your help!

::::END UPDATE::::

06-04-2002, 03:09 AM
That technote was really good! Man, you can't stop learning stuff with Flash!!! :)