Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : setFocus() question


gregkane
12/28/2004 9:41:01 PM
I sure I'm doing something very dumb, but I just can't get setFocus to work.
I've tried the help example and the setFocus does not work in that instance,
except where it is called from a click event. In my test, all I have is a
simple text field with an instance name of 'myText', it has a few paragrahs of
text in it. Here is the code: sFocus(); function sFocus():Void {
Selection.setFocus('myText'); Selection.setSelection(5, 10); } No luck. Can
someone help me out? Thanks! Greg
juankpro
12/28/2004 9:47:38 PM
gregkane
12/28/2004 10:03:00 PM
Thanks for the response, but 'myText' is an object on the stage. It's not being
called from outside. Another thread on this forum is mentioning possible
issues with Flash MX Pro 2004. Do you have the standard version or pro
version? Thanks! Greg
juankpro
12/28/2004 10:19:46 PM
gregkane
12/28/2004 11:07:14 PM
I have version 7.2 as well, I just thought there may be a difference in how this function is handled between the professional version vs. the standard version.

AddThis Social Bookmark Button