On Nov 26, 2007 11:17 PM, iimzodar <[EMAIL PROTECTED]> wrote:

>  I created an eletectric arc effects a while ago in flash AS2 and just
>  converted it to a flex component. I would love any input from the
>  community :)

One style point you might want to consider is exposing some of the
initialization parameters as properties on the component so that they
can be specified as MXML tag attributes rather than requiring the
client user to define a Script block to invoke a method on it.  You
would then override the createChildren() method (if you are not doing
so already) and read these property values to configure the
ElectricArc component.

You could then consider making the properties bindable.  This would
make it very easy for client users of your component to change the
parameters at runtime, again without having to invoke methods on your
component.  For example, it seems that sliders could be used to good
effect for some kinds of parameters, or parameters could change in
response to other events.  Bindings remove a lot of
event-listening/registering code and are one of the best features of
programming in Flex.

e

Reply via email to