Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Set Focus

Set Focus

2004-02-26       - By Ryan Mayer

 Back
Reply:     1     2     3     4     5     6     7  

Hello all,

I have a form and I'm trying to set the focus on the first input field after
the form loads without much success.  I've tried using:

text.setFocus(codeword_input);

and...  

codeword_input.setFocus();

Which aren't working for me.  Any ideas on what I'm doing wrong?

Thanks for your time,



?
 Ryan Mayer
 Visual Communications Specialist
 The Focus Corporation Ltd.
 "One of Canada's 50 Best Managed Companies"
 Suite 1000, 9925-109 Street
 Edmonton, Alberta, Canada  T5K 2J8
 Main: (780) 466-6555  (ext. 7140)
 Fax: (780) 468-6175
 www.focus.ca <http://www.focus.ca/>





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>Set Focus</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello all, </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a form and I'm trying to set the focus on
the first input field after the form loads without much success.&nbsp; I've
tried using:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">text.setFocus(codeword_input);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">and...&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">codeword_input.setFocus();</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Which aren't working for me.&nbsp; Any ideas on
what I'm doing wrong?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks for your time,</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">? </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT> <FONT SIZE=2 FACE="Arial">Ryan
Mayer</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; Visual Communications Specialist</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; The Focus Corporation Ltd.</FONT>

<BR><B><FONT COLOR="#000000" SIZE=2 FACE="Arial">&nbsp; &quot;One of Canada's<I
> 50 Best</I> Managed Companies&quot;</FONT></B>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&nbsp; Suite 1000, 9925-109
Street </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&nbsp; Edmonton, Alberta, Canada
&nbsp; T5K 2J8</FONT></SPAN>

<BR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Arial">&nbsp; Main: (780) 466-6555
&nbsp; (ext. 7140)</FONT></SPAN>

<BR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Arial">&nbsp; Fax: (780) 468-6175<
/FONT></SPAN>

<BR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Arial">&nbsp; </FONT></SPAN><A HREF=
"http://www.focus.ca/"><SPAN LANG="en-ca"><U><FONT COLOR="#0000FF" SIZE=2 FACE=
"Arial">www.focus.ca</FONT></U></SPAN></A><SPAN LANG="en-ca"></SPAN>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>