This content has been marked as final. Show 4 replies
this is very frustrating because if you open the swf file i'll work fine but if you open it in the browser works when you refresh and if you publish the file dont works, but thats what i know so far hope some one else solve this if this have a solution
not very helpfull just wanna comment
sorry for my english
this line works, but only if the Flash movie has focus. It won't work when the focus is elsewhere, e.g. when a html page with the movie is loaded, the focus is somewhere else, outside Flash, so it's not blinking. Click inside the Flash movie and it blinks.
Because there is no autofocus-Flash-method (none that I know of), you might have to force the user to click somewhere inside the Flash movie, e.g. with a "continue" or "start" button. Once the movie got the focus, the cursor will blink in the textfield.
The only solution I have is to insert a button that has to be pressed, so that the focus is in the movie.
You can try a simple test: open a new Flash movie, and insert in frame 1 a stop() command and a button that goes to frame 2 onRelease. In frame 2, place the textfield and the Selection.setFocus line. When you test it, the cursor should blink after the button was pressed.
So there has to be some interaction with the movie before the setFocus will work. I don't know of another way.