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 ComponentsWow, 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:Creating Advanced Components: http://www.macromedia.com/support/documentation/en/flex/1_5/createcomponents/index.htmlFlex Component Basics - two part articleStephen
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
- 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 the Yahoo! Terms of Service.
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 the Yahoo! Terms of Service.

