[flexcoders] The pass the parameter or reference the component (which better?)

2006-10-03 Thread sinacapho
Dear all, i have some question about passing parameter. For example , i have a user data object which stored the information of the user. When i have some custom component which may use this object, which method is better? a) Pass it in the object (for example) xx:Component

[flexcoders] The pass the parameter or reference the component (which better?)

2006-10-03 Thread Bjorn Schultheiss
It seems that you first example is the considered best practice at the moment create an explicit setter on your component and pass in the data object that way Regards, Bjorn Schultheiss From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sinacaphoSent: