Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : Action Script for Browser Button Problem



m_flash
2/27/2006 9:48:20 PM
I scripted a back and forward flash browser button..they work
fine...EXCEPT>..>>.when I use them on my website I have to click 2x to get the
buttons to move back or forward...ahhh!....here is the script I
used....below....any suggestions?? Is there another script that works better?

on (release) {
getURL("javascript:history.back()", "_self");
}

on (release) {
getURL("javascript:history.forward()", "_self");
}


psykopath
2/28/2006 12:41:46 AM
Does it always need two clicks, or just the first time you try clicking the
buttons? What browser are you using?

The problem might be that the first click is giving focus to the swf and the
second click actually clicks the button.
mruf
2/28/2006 12:58:05 AM
Hi Psy,
I have to click 2x ...using IExplorer 6.x ...you may be right! How do I fix
this if the first click is giving focus to the swf ?? Thanks so much for
helping me with this...it's driving me crazy! lol!

psykopath
2/28/2006 1:03:23 AM
If that actually is the problem then having to noyl click twice once probably
wouldnt annoy most users, otherwise you could have a javascript run when the
page is laoded that gives focus to your flash file. If you took this approach
you would have to get someone elses help (maybe even go to a javascript forum),
as I'm haven't done anything involving focus with javascript.
AddThis Social Bookmark Button