textFieldObject Focus???

  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Posts: 23

Post 3+ Months Ago

I am trying to get a certain text field to have a flashing cursor when page is loaded or refreshed. Like Google, when you first get there, the input box is blinking.
It's simple I've seen it before, but I can't remember and I have no idea how to look for it.
Anybody know??
t :?:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Say the var you have set for the textfield is called test and this textfield is in the main timeline you would place this in the main timeline.
Code: [ Select ]
_root.onLoad = function(){
    Selection.setFocus("_root.test");
}
  1. _root.onLoad = function(){
  2.     Selection.setFocus("_root.test");
  3. }


If the textfield is in a movieclip named container you would place this instead.
Code: [ Select ]
_root.onLoad = function(){
    Selection.setFocus("_root.container.test");
}
  1. _root.onLoad = function(){
  2.     Selection.setFocus("_root.container.test");
  3. }

NOTE: The Selection keyword must stay in place.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

what's the filesize of your footer joebert?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

UNFLUX wrote:
what's the filesize of your footer joebert?


What footer ?
My sig? approx. 2.1-2.2 KB with a max of 1 KB being sent and loaded for the poll.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

i saw earlier - i had missed your thread in general earlier. no worries. :D
  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Posts: 23

Post 3+ Months Ago

Thanks Joebert,
Almost there. The cursor now appears to blink in the correct box upon load, but ONLY if:
I click the swf anywhere with the mouse while it is loading in the browser;
I hit the tab key while it is loading in the browser;
or test movie within flash only.
The browser seems to take the focus away from the swf if you goto the address or refresh.
This is on Mac MIE 5 or Safari on OSX.
Thanks again!
t

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.