0 Replies Latest reply on Mar 21, 2010 6:10 AM by Ali_Hasan

    Cannot compile Library project in Flash builder 4: Unable to locate specified base class


      I am migrating from Flex builder 3 to Flash builder 4, during that process I found that Flash builder could'nt compile Flex Library projects which contains components in the form of mxml files. Compiler throws "Unable to locate specified base class".


      I have narrowed it down to by creating a flex library project named test library, below its screenshot with its package structure



      ControlA is based on componentA
      when i compile this project, mxml compiler throws this error
      Unable to locate specified base class 'components.componentA' for component class 'ControlA'.
      I cannot upload project code because file uploads are disabled on this forum so I am going to paste the code for both componentA and controlA
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" width="400" height="300">



      <?xml version="1.0" encoding="utf-8"?>
      <components:componentA xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" width="400" height="300">


      To further test it, I have made another library project with same package structure using pure AS3, and it compiled without errors