Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / August 2005



Tip: Looking for answers? Try searching our database.

Manually kill focus?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bwm_razel - 31 Aug 2005 13:33 GMT
I'm working on a way to set the focus to an invisible button, then run a
function off the button using onSetFocus. However, after that runs and all, I
want to kill the focus, but there is no Selection.killFocus command. There is
an onKillFocus command for buttons and textfields, but it doesn't seem like
there is a way to simply say Selection.killFocus("my_btn");
Is there a way to do this that I'm overlooking? Or am I out of luck?
bwm_razel - 31 Aug 2005 13:50 GMT
ACtually my code isn't even working for what I was talking about...can someone
help with this code perhaps?

_focusrect = false;
Selection.setFocus(my_btn);

my_btn.onSetFocus = function() {
    trace ("THE BUTTON HAS FOCUS YOU MORON");
}

stop();

The trace isn't even working...I don't know why :S
mandingo - 01 Sep 2005 00:04 GMT
does your button have the ability to receive focus?

Include it in your tabIndex and then apart from that, I have never had success
in setting focus direct to a button on start... getting it on tab is not a
problem...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.