RE: [flexcoders] Component inheritance -how to add new children to an already inherited component

2006-03-31 Thread Chris Reynolds





You can do it with AS3 or mxml but maybe start with 
the latter. 
 
myLogin.mxml:
 

user password stuff here

 
myExtraLogin.mxml:
 

new stuff here.

 
As for lack of documentation, you obviously haven't found 
the zillion page pdfs. The forests don't stand a chance!


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of iuliubSent: 
Friday, March 31, 2006 9:12 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Component inheritance 
-how to add new children to an already inherited component
Okay...so the new Flex and AS3.0 are revolutionary.However 
the available documentation is scarce.Does anyone know how to add 
children to an inherited component? Let's say , for example , I have al 
login component, that inherits from a TitleWindow.Furthermore, I 
want a more complex login panel, that have several additional text fields, 
and I want it to inherit from my initial login component.Couldn't do 
it by now.Anyone, I would be grateful!Iuliu





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Component inheritance -how to add new children to an already inherited component

2006-03-31 Thread Manish Jethani
On 3/31/06, iuliub <[EMAIL PROTECTED]> wrote:

> Does anyone know how to add children to an inherited component?
> Let's say , for example , I have al login component, that inherits
> from a TitleWindow.
>
> Furthermore, I want a more complex login panel, that have several
> additional text fields, and I want it to inherit from my initial login
> component.

One idea:

 
 
  
  
 

 
 
  
  
  
  
 

Combined with the DefaultProperty trick [1]

[1]: http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.cfm

Manish


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/