AS3 Component source definitions are not, by default, located within the
classpath of your FLA. They are available in the
<lang>\Configuration\Component Source\ActionScript 3.0
folder of your Flash CS3 instalation directory, however the components
themselves rely on pre-compiled versions of those classes in what is known
as the ComponentShim. This asset can be found in your library when you add
a component to your library or screen from the components panel. Its
located within the Component Assets > _private folder. Without this asset
in your library, you will not have access to the component classes. And if
you want to reference a component dynamically, it will need to be added to
your library before you publish your SWF. The ComponentShim only contains
the core AS classes, not the actual components which also rely on other
graphics and movie clips which need to be in your library before a
components can be used in your SWF
"PalacaJoe" <firstname.lastname@example.org> wrote in message
> If I open a new Flash (AS3) file in Flash CS3 Professional and try to
> DataProvider (import fl.data.DataProvider;), I consistantly receive a
> error (1172: Definition fl.data:DataProvider could not be found). Does
> know what the problem is?
I have the same problem. The "answer" is absolutely meaningless and about as much use as a quote from the bible. It may or may not be true, but doesnt help solve the problem.
So how does one go about getting the DataProvider to be importable?
"This asset can be found in your library when you add a component to your library or screen from the components panel".
So how do you add a component to your library?
Ive added a "combobox" to my screen from the component panel, and that didnt help, so the second part of the above quote appears not to be true.
There is no option in Flex Builder 3 to add anything to a library, only to add a new library via project->properties->Flex Build Path->Library Path.
Anyone figured this out?
(if you have an as3 issue, you should be posting in the as3 forum.)
Try dragging a DataGrid component to your library and import these classes:
This will sort your problem