AS3 - Core classes not being imported
- Started
- Last post
- 4 Responses
- Fariska
I'm coding an app.
Here is the code: http://pastebin.com/m340ff7e2And the compiler throws 2 weird errors:
"1172: Definition fl.data:DataProvider could not be found.
- ornj0
add the component you are using to your library?
- Fariska0
uhm... i'll try
- ornj0
In the documentation they mention adding components to your library but I'm pretty sure this is a required step to use anything in the fl.* packages.
Documentation for AS3 is a shit show unfortunately... have to figure out most of this garbage through trial and error so there may be a better explanation of this some where or I could be completely off base.
- acescence0
if you import dataprovider to an fla, it will only work if you are using a dataprovider component in the fla.
to use it in an .as file, the dataprovider classes need to be added to your classpath.