Friday, May 06, 2005
I have been using the DataSet Component for the first time over the past week and I soon ran into trouble when I was trying to match up two DataSet properties using DataSet.find() so I thought I'd better write it down in case I forget next time!First of all when using Actionscript only you must ensure as with any component that you first drag an instance of the DataSet component to the stage and delete it in order to have the component available in your library.
Next ensure you import the DataSet in your class: import mx.data.components.DataSet;
This alone will get you started but if you wish to use DataSet.find() you better read this TechNote from Macromedia. In short just by adding the following code to my class everything worked correctly:
var m:mx.data.types.Str;
var n:mx.data.types.Num;
Jon 10:53 AM Permalink

