Title: Message
It is essentially a matter of preference. There are no performance differences that I know of.
 
I generally recommend creating components in MXML because it makes several things easier, such as creating internal subcomponents, laying them out, and assigning event handlers to them. For example, if I was creating a LoginPanel, I would certainly do it in MXML.
 
Can you explain what is "a bit messy" about MXML components?
 
- Gordon
-----Original Message-----
From: Matthew Shirey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 9:33 AM
To: [email protected]
Subject: Re: [flexcoders] ActionScript Components

Wow, that's a great article.  It seems that custom components in ActionScript can get quite complex.  Is it really the recommended way to create custom components if you can?  Creating them as mxml + as files has been pretty easy up to this point, even if it is a bit messy.  Is this more a matter of preference or are there actual performance and possibly maintenance reasons for using pure ActionScript for creating components?
 
-- Matthew

 
On Apr 6, 2005 8:27 AM, Stephen Gilson <[EMAIL PROTECTED]> wrote:
There are articles on the Macromedia web site that you can use:
 
 
Flex Component Basics - two part article   
 
Stephen
 


From: Matthew Shirey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 05, 2005 8:09 PM
To: [email protected]
Subject: [flexcoders] ActionScript Components

 
Might someone point me in the direction of some good docs/examples of creating components using ActionScript.  I have the RIA book and chapter 10 has some information, but its disappointingly sparse.  Mostly I am interested in how to create a composite component.  A component containing many other components.  The examples I have seen so far simply extend a given component and alter its behavior.  Right now I am creating all of my components in MXML with a separate file for their ActionScript.  It's starting to get a bit messy for complex components.  Any kind of a boot in the right direction would be helpful.  Thanks!
 
-- Matthew


Yahoo! Groups Links



Yahoo! Groups Links

Reply via email to