<HTML ><HEAD ><TITLE >SWFTextField</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Ming functions for Flash" HREF="ref.ming.html"><LINK REL="PREVIOUS" TITLE="SWFTextField->setrightMargin" HREF="function.swftextfield.setrightmargin.html"><LINK REL="NEXT" TITLE="Miscellaneous functions" HREF="ref.misc.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.swftextfield.setrightmargin.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="ref.misc.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.swftextfield" ></A >SWFTextField</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN55167" ></A ><P > (PHP 4 >= 4.0.5)</P >SWFTextField -- Creates a text field object</DIV ><DIV CLASS="refsect1" ><A NAME="AEN55170" ></A ><H2 >Description</H2 >new <B CLASS="methodname" >swftextfield</B > ( [int flags])<BR ></BR ><DIV CLASS="warning" ><P ></P ><TABLE CLASS="warning" BORDER="1" WIDTH="100%" ><TR ><TD ALIGN="CENTER" ><B >Warning</B ></TD ></TR ><TR ><TD ALIGN="LEFT" ><P >This function is <SPAN CLASS="emphasis" ><I CLASS="emphasis" >EXPERIMENTAL</I ></SPAN >. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.</P ></TD ></TR ></TABLE ></DIV ><P > <B CLASS="function" >swftextfield()</B > creates a new text field object. Text Fields are less flexible than <A HREF="function.swftext.html" ><B CLASS="function" >swftext()</B ></A > objects- they can't be rotated, scaled non-proportionally, or skewed, but they can be used as form entries, and they can use browser-defined fonts. </P ><P > The optional flags change the text field's behavior. It has the following possibles values : <P ></P ><UL ><LI ><P > SWFTEXTFIELD_DRAWBOX draws the outline of the textfield </P ></LI ><LI ><P > SWFTEXTFIELD_HASLENGTH </P ></LI ><LI ><P > SWFTEXTFIELD_HTML allows text markup using HTML-tags </P ></LI ><LI ><P > SWFTEXTFIELD_MULTILINE allows multiple lines </P ></LI ><LI ><P > SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editable </P ></LI ><LI ><P > SWFTEXTFIELD_NOSELECT makes the field non-selectable </P ></LI ><LI ><P > SWFTEXTFIELD_PASSWORD obscures the data entry </P ></LI ><LI ><P > SWFTEXTFIELD_WORDWRAP allows text to wrap </P ></LI ></UL > Flags are combined with the bitwise <A HREF="language.operators.bitwise.html" >OR</A > operation. For example, <TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" ><?php $t = newSWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT); ?></PRE ></TD ></TR ></TABLE > creates a totally useless non-editable password field. </P ><P > SWFTextField has the following methods : <B CLASS="function" >swftextfield->setfont()</B >, <B CLASS="function" >swftextfield->setbounds()</B >, <B CLASS="function" >swftextfield->align()</B >, <B CLASS="function" >swftextfield->setheight()</B >, <B CLASS="function" >swftextfield->setleftmargin()</B >, <B CLASS="function" >swftextfield->setrightmargin()</B >, <B CLASS="function" >swftextfield->setmargins()</B >, <B CLASS="function" >swftextfield->setindentation()</B >, <B CLASS="function" >swftextfield->setlinespacing()</B >, <B CLASS="function" >swftextfield->setcolor()</B >, <B CLASS="function" >swftextfield->setname()</B > and <B CLASS="function" >swftextfield->addstring()</B >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.swftextfield.setrightmargin.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="ref.misc.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >SWFTextField->setrightMargin</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ming.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Miscellaneous functions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >