• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

cant import DataProvider in flex builder3.

New Here ,
Aug 04, 2010 Aug 04, 2010

Copy link to clipboard

Copied

If I try an use a DataProvider in actionscript in my flex project using FlexBuilder 3:

<mx:Script>
   <![CDATA[

     import fl.data.DataProvider;

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?

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 04, 2010 Aug 04, 2010

Copy link to clipboard

Copied

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:

new ArrayCollection(myArray)

or (if the data source is xml)

new XMLListCollection(xml)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 10, 2010 Aug 10, 2010

Copy link to clipboard

Copied

LATEST

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

balakrishnan v

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines