textFieldObject Focus???

  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 21, 2003
  • Posts: 23
  • Status: Offline

Post May 1st, 2004, 10:39 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 1st, 2004, 10:39 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post May 1st, 2004, 11:45 pm

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.
Strong with this one, the sudo is.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post May 2nd, 2004, 10:26 am

what's the filesize of your footer joebert?
UNFLUX.FOTO
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post May 2nd, 2004, 8:36 pm

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.
Strong with this one, the sudo is.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post May 2nd, 2004, 9:03 pm

i saw earlier - i had missed your thread in general earlier. no worries. :D
UNFLUX.FOTO
  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 21, 2003
  • Posts: 23
  • Status: Offline

Post May 3rd, 2004, 7:51 am

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 36 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.