PDA

View Full Version : MXML Components/Actionscript Objects


handycam
09-24-2007, 08:33 PM
Can someone please explain or direct me to a resource explaining how to make "hybrid" MXML/Actionscript objects?

I'm not sure that's the correct term... for example I've got a reusable MXML component of 1 datagrids designed to work together. They utilize an ActionScript class for managing their day and validation methods.

How would this be "encapulated" into one item I can use throughout my application, combining the UI elements of the grids AND the proeprties and methods of the List class I made?

Many thanks. I'm trying to get more into the OOP way of thinking.

drkstr
09-26-2007, 06:19 AM
It's hard to say without knowing specifically what you're trying to do, but it sounds like you just need to create a private instance of you Actionscript class inside your custom component. Then you just need to add your component somewhere in the app. Do you have a specific problem/question you are trying to solve?

Best Regards,
...aaron