So in flash you have the following actionscript on a button:
on (release) {
getURL("pagename.htm#ancho
}
Am I correct? This causes a known problem with flash.
Macromedia has this to say about it: "Named anchors will work correctly if the SWF is in the same frame as the anchor."
Macromedia also writes: "One possible workaround is to call JavaScript functions using the getURL action."
See the complete technote with the workaround in detail here:
http://www.macromedia.com/
Another workaround that you can try is this:
on (release) {
getURL("pagename.htm"+unes
}
This only works online! Offline it does nothing. Possibly the reloading problem still occurs with this solution. Javascript would be a better one.
Main Topics
Browse All Topics





by: koozillaPosted on 2005-10-05 at 10:45:01ID: 15024002
here's the code that i have in the frameset:
<frameset rows="83,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="header.htm" name="topFrame" scrolling="NO" noresize >
<frame src="/myPage.asp" scrolling="NO" name="mainFrame">
</frameset>
in the flash code, i have:
on (release) {
gotoAndStop("anchor1");
}
from what i can see, the biggest problem is that the frameset just says, "index.html" on the address bar (for ALL pages at ALL times) and, hence, doesn't reference the anchor tag in the address bar in flash... however, it works correctly when putting it into a regular HTML page, with no frameset.
Question #2 - (if we can get Q #1 fixed) is there a way that is non-sequential to control the "back" button when doing this? Ex. i have 5 named anchors and if i choose the 5th anchor (first), then hit back, it'll run thru the remaining 4 anchors....