Thanks, I forgot, I'm a silly little boy :).

Tim 

--- In [email protected], Alex Harui <[EMAIL PROTECTED]> wrote:
>
> addChild(FRM)
> 
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of timgerr
> Sent: Tuesday, September 09, 2008 9:30 PM
> To: [email protected]
> Subject: [flexcoders] Question about launching a form from a MXML
component.
> 
> 
> Hello all,
> I have this MXML component called users.mxml, here is what it looks
like:
> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="366"
> height="208">
> <mx:Form id="nuNewUserForm" x="36" height="198">
> <mx:FormItem label="User Name" required="true">
> <mx:TextInput id="username" toolTip="Less than 16 characters"
> invalid="IsValid('username',false)" valid="IsValid('username',true)"/>
> </mx:FormItem>
> <mx:FormItem label="First Name" required="true">
> <mx:TextInput id="firstname" maxChars="25" toolTip="Less than 25
> characters"
> invalid="IsValid('fistname',false)" valid="IsValid('fistname',true)"/>
> </mx:FormItem>
> <mx:FormItem label="Last Name" required="true">
> <mx:TextInput id="lastname" maxChars="25" toolTip="Less than 25
> characters"
> invalid="IsValid('lastname',false)" valid="IsValid('lastname',true)"/>
> </mx:FormItem>
> <mx:FormItem label="Email" required="true">
> <mx:TextInput id="email" maxChars="100" toolTip="Less than 100
> characters"
> invalid="IsValid('email',false)" valid="IsValid('email',true)"/>
> </mx:FormItem>
> <mx:Label id="NewUserDateLabel" text="{newUserDate}"/>
> <mx:Button id="NewUserSubmit" enabled="true" label="Submit"
> click="Submit()"/>
> </mx:Form>
> </mx:Canvas>
> 
> I then want to add it to Master.MXML
> so I do this :
> 
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="MasterInit()">
> <mx:Script>
> <![CDATA[
> 
> import comp.users.*;
> private function MasterInit():void
> {
> var FRM:Users= new Users();
> 
> ]]>
> </mx:Script>
> 
> </mx:Application>
> 
> Once the MasterInit() is called, what do I have to do in order to get
> the form from Usersto show?
> 
> Thanks,
> Timgerr
>


Reply via email to