"Elementary, my dear Watson".

Create a directory named "flexlib" inside your src directory. Inside
that directory create a new directory named "controls". Place the
PromptingTextInput.as file inside this directory.

To use the control, first add the namespace to the component you wish to
use it with (Or the Application)...

xmlns:flexlibcontrols="flexlib.controls.*"

Secondly, instantiate the control in MXML...

<flexlibcontrols:PromptingTextInput prompt="Prompt Goes Here"/>

So, a full application example could look like:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute"
     xmlns:flexlibcontrols="flexlib.controls.*">
     <flexlibcontrols:PromptingTextInput prompt="Prompt Goes Here"/>
</mx:Application>


HTH




Steve


--- In [email protected], Angelo Anolin <angelo_ano...@...>
wrote:
>
> Hi FlexCoders,
>
> I have been browsing out the Flexlib in Google Code and I am thinking
of using just some of the controls, particularly the Propt TextInput
control.
>
> I have downloaded the ZIP file and have extracted the same.
>
> As I am using more of the command line compiler in Vista, how do I use
only the PromptingTextInput control?  I have already extracted the file
PromptingTextInput.as.
>
> How would I reference it in my MXML and just use the control?
>
> Thanks.
>
> Rgds,
>
> Angelo
>

Reply via email to