If I try an use a DataProvider in actionscript in my flex project using FlexBuilder 3:
I get a compiler error:
Severity and Description Path Resource Location Creation Time Id
1172: Definition fl.data:DataProvider could not be found. apitester/src apitester.mxml line 10 1280939279093 3500
There are hundreds of posts on this subject, none with solution. e.g. this one http://forums.adobe.com/thread/145845 has an answer which is meaningless.
The mxml page I am developing already has a ComboBox dragged onto it, this does not magically put the DataProvider in a library or similar as implied.
Other people say this is not possible using flex builder.
Why is it so hard?
I don't work with Flash CS / use fl.*, but if the ComboBox is a mx.controls.ComboBox (or spark) then you don't need to use the DataProvider class. Use ArrayCollection instead. You can do:
or (if the data source is xml)
My guess is that the fl.* packages are not included in the FlashBuilder.
If you however want to use the fl.* classes/packages, you might to manually include those .swc s.
You could refer : http://www.moock.org/blog/archives/000253.html
On a different note, you could use ArrayCollection or other Actionscript Classes to serve as DataProviders
Hope this helps