Hi, sorry for my poor english.

I'm trying to use Flash with anchor points in the html. I have this tag at
the top of the body: <a name="top"></a>. In the swf i have a button, and i
need to go to the top of the html when i push that button. I've tried this
scripts:
onRelease(){
    getURL("#top");
}
It doesn't works. I tried this too:
onRelease(){
    getURL("javascript:location.href='#top'");
}
But in IE instead of going to the top of the page it calls to a page called
"javascript:location.href='#top'" :-/
So i tried this way: i put a javascript function in the html:
function goup(){
  location.href="#top";
}
And this script in the button:
onRelease(){
    getURL("javascript:goup()");
}
Now it seems to work perfectly in Firefox, but when i try it on IE, it works
twice but fails at the third time! I mean:
1.The page loads for the first time: (page.html). I press the button.
2.The page goes to the top: (page.html#top). I press the button.
3.The page goes to the top: (page.html#top). I press the button.
4.The page changes to a blank page (javascript:goup()).

It always fails at the third click!. It's nonsense! You can see the real
example in this url:
http://www.ivi-concept.net/projects/magic/microsite.html
The link is the one where mickey leans against, at the bottom of the page.

Thanks


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to