On 5/4/06, mahuika1 <[EMAIL PROTECTED]> wrote:
> I would like to create a custom component that displays visual
> controls such as labels etc then extend that to display other controls
> beneath the previous ones.  Does any one know how I can do this or
> should I just have many small components and reuse them in other
> components?  For example..
>
> I want to: create a Doc component which contains header and footer
> details.  Then create DocA component which extends Doc to also display
> text between the header and footer.

See Peter Ent's blog entry on how to create "templates"

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

> Or: create Header and Footer components. Then create DocA which uses
> Header and Footer and displays text.

I would do it this way.

I'm assuming you're talking about MXML components. If you're writing
your component in ActionScript, then you can do pretty much anything.
Just override 'measure' and 'updateDisplayList' and change the size
and layout of the "DocA" component accordingly.


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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to