MXML is just a nice easy way to create an instance of a class. Flex will compile the MXML into ActionScript and then compile that into bytecode for the Flash Player to run.
When you instantiate the object in MXML, the parameters will either be public variables of the class or will be set via setters. For example, if you look at the Panel class you can see that the title is set via a setter (To see the Panel class in Flex Builder, click on the <mx:Panel...> MXML and hit F3). You can then find the function: public function set title(value:String):void HTH Steve --- In [email protected], "Keith Hughitt" <keith.hugh...@...> wrote: > > Hi Valdhor, > > Thanks for the suggestion, that is a very good idea and something I hadn't > thought of. I'll certainly try that out, however, I'm still uncertain as to > how to pass in / accept data in custom AS classes. For instance, when I > specify things as MXML parameters, are they available in the class > constructors, or are they set sometime after the constructor is called via > setters? > > Thanks, > Keith > > --- In [email protected], "valdhor" <valdhorlists@> wrote: > > > > Why are you trying to bind a datagrid? That is a display object. > > > > A far better way is to pass in the arraycollection the datagrid is based > > on. Then just create the datagrid in your custom component. >

