3 Replies Latest reply on Mar 13, 2009 2:39 AM by

    Whats wrong with this?

      Hi,

      I have this import statement defined within the actionscript block: import.fl.data.DataProvider
      In a function I have created a new variable as follows: var dp:DataProvider = new DataProvider();
      I get this error message: 1046: Type was not found or was not a compile-time constant: DataProvider

      Any clues? Are there any other import statements I should be using? I am using Flex Builder 3. All I am trying to do is create a new DataProvider which I will populate with XML data which will then act as the source (dataProvider) for a dataGrid I want to use.

      Thanks