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
componentA
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" width="400" height="300">
</mx:Canvas>
ControlA
<?xml version="1.0" encoding="utf-8"?>
<components:componentA xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" width="400" height="300">
</components:componentA>
To further test it, I have made another library project with same package structure using pure AS3, and it compiled without errors

It might be this happens and other errors if you forget to Run Flash Builder 4.5 Buritto and startup the other version FB4.
It uses the same project listings and that can be confusing since you're not expecting the old version to be aware of new Buritto (MobileApplications) projects you added (thinking) only to the BETA version installed elseware no doubt.
Well it might not be your problem but worthy of noting for other's I'm sure.
Otherwise you've double checked you're using SDK 4.5 Hero with it too! right?

Similar Messages

  • Can't create Flash Pro projects in Flash Builder

    In the most basic of Flash Pro/Flash Builder Projects, I get this error when I compile.
    My .fla is just in a folder...Please help. It will not publish at all.
    These are the contents of the flashExport.jsfl file:
    function testMovie( flaURI, projectName, clearErrors )
         var doc = fl.openDocument(flaURI);
         if(doc != null && doc.canTestMovie())
              doc.testMovie("flashbuilder-4.0", true, clearErrors);
              finishExport(projectName);
    function debugMovie( flaURI, projectName, clearErrors )
         var doc = fl.openDocument(flaURI);
         if(doc != null && doc.canTestMovie())
              doc.debugMovie("flashbuilder-4.0", true, clearErrors);
              finishExport(projectName);
    function publishMovie( flaURIArray, incremental, outputURIArray, profileURIArray, projectName )
         if(incremental)
              if(flaURIArray.length == outputURIArray.length && outputURIArray.length == profileURIArray.length )
                   for(var i = 0; i < flaURIArray.length; i++)
                        var outputURI = outputURIArray[i];
                        if(outputURI != null && outputURI.length > 0)
                             var pubProfileStr = fl.exportPublishProfileString(flaURIArray[i]);
                             if(pubProfileStr != null && pubProfileStr.length > 0)
                                  // first fix up the SWF export location                         
                                  var swfLocationURI = outputURIArray[i] + ".swf";
                                  var swfLocation = FLfile.uriToPlatformPath(swfLocationURI);
                                  var newFlashFileName = "<flashFileName>" + swfLocation + "</flashFileName>";
                                  pubProfileStr = pubProfileStr.replace(/<flashFileName>.+<\/flashFileName>/i, newFlashFileName);
                                  // fix up the HTML export location
                                  var htmlLocationURI = outputURIArray[i] + ".html";
                                  var htmlLocation = FLfile.uriToPlatformPath(htmlLocationURI);
                                  var newHtmlFileName = "<htmlFileName>" + htmlLocation + "</htmlFileName>";
                                  pubProfileStr = pubProfileStr.replace(/<htmlFileName>.+<\/htmlFileName>/i, newHtmlFileName);
                                  // fix up the Permit Debugging setting
                                  pubProfileStr = pubProfileStr.replace(/<DebuggingPermitted>.+<\/DebuggingPermitted>/i, "<DebuggingPermitted>1</DebuggingPermitted>");
                                  // fix up default flags
                                  pubProfileStr = pubProfileStr.replace(/<defaultNames>.+<\/defaultNames>/i, "<defaultNames>0</defaultNames>");
                                  pubProfileStr = pubProfileStr.replace(/<flashDefaultName>.+<\/flashDefaultName>/i, "<flashDefaultName>0</flashDefaultName>");
                                  pubProfileStr = pubProfileStr.replace(/<htmlDefaultName>.+<\/htmlDefaultName>/i, "<htmlDefaultName>0</htmlDefaultName>");
                                  // and fix up the profile name attribute, and add the xml decl header
                                  // we know the first instance of "name=" has to be the profile name - the other usages are
                                  // within the rest of the tree
                                  pubProfileStr = pubProfileStr.replace(/<flash_profile.+>/i, "<?xml version=\"1.0\"?>\n<flash_profile version=\"1.0\" name=\"FlashBuilder-Debug\">");
                                  // now save the new profile in the .settings folder
                                  FLfile.write(profileURIArray[i], pubProfileStr);
         fl.publishDocument("", "", flaURIArray, profileURIArray);
         // once the publish is complete, save out the errors and let Builder know (this will only occur when
         // projectName is non-null. so in the Test/Debug Movie case, the finishExport call here won't do anything,
         // and the one in testMovie/debugMovie will.
         finishExport(projectName);
    function finishExport(projectName)
         if (projectName == null || projectName.length == 0)
              return;
         var errorsXMLURI = fl.configURI + "ActionScript 3.0/FlashBuilderInfo.txt";
         var errorsXMLPath = FLfile.uriToPlatformPath(errorsXMLURI);
         var errorsPanel = fl.compilerErrors;
         errorsPanel.save(errorsXMLURI, false, false, true, false);
         fl.queueBridgeTalkScript('flashbuilder-4.0', "fb.loadCompilerErrors('" + errorsXMLPath + "', '" + projectName + "');");
    function toggleBreakpoint( filename, lineNumber, enable )
         fl.toggleBreakpoint(filename, lineNumber, enable);
    function getAppConfig()
         var appConfig = fl.applicationURI + "Common/Configuration/";
         // do a little reformatting to get the slashes right, plus
         // we want an OS path
         appConfig = FLfile.uriToPlatformPath(appConfig);
         fl.queueBridgeTalkScript('flashbuilder-4.0', "fb.setAppConfig('" + appConfig + "');");
    function getFLABuildPaths(projectName, targetFlaURI, flaURIArray)
         var sourcePath = new String();
         var libPath = new String();
         var script = "fb.setFLABuildPaths(" + projectName + ", " + targetFlaURI;
         for(var i = 0; i < flaURIArray.length; i++)
              var flaURI = flaURIArray[i];
              sourcePath = fl.getCompilerPath(flaURI, "source", false, true);
              libPath = fl.getCompilerPath(flaURI, "library", false, true, true);
              script += ", " + flaURI + ", " + sourcePath + ", " + libPath;
         script += ");";
         fl.queueBridgeTalkScript('flashbuilder-4.0', script);

    I have the same issue. My project is super simple. All the files are in the same directory. The doc class and the .fla have the same name. The project publishes without a hitch in Flash Professional CC. When I try to add the project to Flash Builder 4.7 it give me:
    Exception in BridgeTalk call
    Function: getFLABuildPaths
    Error message: Error. Cannot find the file ....
    I have checked the path to the .fla twice and scrutinized the spellings and they are correct. It is pointing right to the correctly named .fla, but for some reason it fails. I'll post if I find out something usefull.

  • AS3 Project in Flash Builder

    Hi I am an experienced AS3 developer working on a Mac, been working in the CS4 IDE and using Textmate for html, PHP etc. I am very keen to use Flash Builder IDE to build my AS3 projects. I have been able to create actionscript projects but when I try to incorporate FLA and the library assets in FLAs I get stuck.The way I want to work is to use CS4  for creating graphics, timeline animation, so when I run the project it compiles the fla and scripts as if I was in CS4 ide.
    So my question: Is there any good tutorials or sites that can guide me thru setting up an Actionscript project in Flash Builder and manipulation of stage, timeline and library assets from an FLA?

    Firstly flashbuilder doesn't use a timeline, it can use assets in a CS4 compiled flash file, but knows nothing about the fla format. A good starting point would probably be to down load the tour deflex which has a lot of  flex examples with the source.
    http://www.adobe.com/devnet/flex/tourdeflex/
    there is also the cookbook page
    http://www.adobe.com/devnet/logged_in/esullivan_cookbook_20.html
    this is a great site for resources when you run into problems
    http://blog.flexexamples.com/
    Adobe also have a lot of video tutorials which are great to get an idea of just how Builder works.
    David.

  • Using mx components in Action Script project in Flash Builder

    Hi
    I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
    The as file looks like this:
    package
        import flash.display.Sprite;
        import mx.controls.Button;
        public class as_test_project extends Sprite
            public function as_test_project()
                var btn:Button = new Button();
                btn.label = "test";
                addChild(btn);
    I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
    I still get errors like :
    Description    Resource    Path    Location    Type
    Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem
    Have then tried added various Bundles folders like
    C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
    to the source path and library path, but I still get the errors.
    WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
    If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?

    Thank you for your quick reply.
    But how then can I obtain the fl.controls components and use them in an Action
    Script project in Flash Builder 4?
    I don't have CS3 or CS4 (the flash authoring tool) installed.
    Is there an SWC somewhere to be downloaded?

  • Java projects in Flash Builder

    Hi all,
    I previously used Flex Builder 3 on Vista x64.   Inside Flex Builder 3, I had both flex projects and java projects.  I needed both because I use BlazeDS and kept the java code in a separate project.  I would only like 1 development environment.
    I recently upgraded to Windows 7 x64 and went ahead and upgraded my Flex Builder 3 to Flash Builder 4.
    It was a simple measure to import my flex projects into Flash Builder 4.
    When I tried to import the Flex 3 java projects into Flash Builder 4, Flash Builder responded with:
      " The folder does not contain a valid Flash Builder Project."
    Short of installing Eclipse, a 32bit version of java, and using the Flash Builder Plugin, is there a way to get my java projects to import and compile in Flash Builder 4 while running on Windows 7 x64?
    Thanks in advance for any thoughts,
    - Steve
    P.S.  I may have had to import something special to get it to work in Flex Builder 3, I just can't remember.

    If you're trying to compile Java projects in FB4, you'll need to add eclipse's Java Development Tools (JDT).
    You can add the JDT this way:
    - quit FB4, and launch with "Run as Administrator" from the context (right-click) menu
    - from the Help menu choose "Install New Software..."
    - in the resulting dialog click "Add", and enter a name of your choosing such as "Galileo Updates" in the Name field
    - enter this URL into the Location field:
    http://download.eclipse.org/releases/galileo/
    - hit OK and then browse the available Galileo Updates
    - select Programming Languages > Eclipse Java Development Tools
    - continue on with the usual Update workflow, and after finishing it will prompt you to relaunch automatically.
    Allow FB4 to relaunch, and you should now have the JDT available for compiling Java projects.
    -Chris

  • Importing Flex 2 projects in Flash Builder 4.5

    I have a decent amount of Flash/ActionScript experience, but I'm brand new to both Flex and Flash Builder... so apologies for asking a potentially stupid question.
    I just received a Flex project from a client, and I assumed I'd be able to work on it with my recent install of Flash Builder 4.5
    But when I go to File > Import Flash Builder Project and navigate to the Project folder, I just get a warning that says:
    “The folder does not contain a valid Flash Builder Project.”
    I think this project might have originally been developed in Flex 2. Am I doing something wrong, or is it normal to not be able to import older Flex projects into Flash Builder? If Flash Builder can't import old Flex projects, what's the recommended workaround?

    dont import it, do it from scratch in fb4

  • Can I develop CF projects using Flash Builder 4.5 for PHP?

    I currently develop CF projects using Flash Builder 4.5.  I am considering purchasing Flash Builder 4.5 for PHP.  Will I still be able to work on my CF projects using FB for PHP?

    Because in the installation instructions for FB for PHP it says that you have to uninstall the current installation of FB which I have several CF projects that I use regularly.  I hate to uninstall if it turns out that I can't transport my current projects into FB for PHP. 
    Oh that sux!  It's just an Eclipse plug-in, and one can have installed multiple installs of Eclipse OK, so I wonder why they're said this?
    OK, because I give suck advice, I'll D/L it and install it on a spare machine and take a look.  FB usually has a CF perspective does it?  So what you need to know is whether FB for PHP still has the CF perspective?
    Or are you asking whether you can install CFB (or CFEclipse) as a plug-in to FB for PHP, like one can with FB?
    Sorry about the bad advice.
    Adam

  • Draw line in Action Script project in Flash Builder (Gumbo).

    Hi
    I am working on drawing tool application and want to draw line and rectangle in Action Script project in Flash Builder (Gumbo). Please guide and help me with an example.
    Thanks
    Rangrajan.

    This should be helpful http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7dd9.html

  • Convert Flex Builder 3 project to Flash Builder 4.5

    My boss asked me to convert the Flex project to Flash Builder so that they can see what's going on on Tablet.
    I used this video http://tv.adobe.com/watch/adc-presents/sneak-peek-of-mobile-application-development-with-f lex-and-flash-builder/
    as my reference but found out it is not that easy.
    I have problem exporting it and the Flex codes start with <mx: Application > and when I created a Flex mobile project, the codes start with <s: Aplication >
    I don't know if I have to create a Flex mobile project.
    If I already have an existing Flex project, how can I convert it to Flash Builder 4.5 and can view on Tablet?
    Thanks a lot.

    you might google "migrating from Flex 3 to Flex 4".  there are a few articles and videos about it...
    http://www.adobe.com/devnet/flex/articles/flexbuilder3_to_flashbuilder4.html
    It is easy, but can be time consuming to move from mx to spark.
    If your boss just wants to see his web app on a Tablet, I'd first suggest using the tablet's Browser.  As long as it supports Flash 10.1+ (not iOS), you should be fine, assuming your UI fits in the typically 1024x600+ resolution screen.  If so, It is easier to convert a Flex 3 web app to a Flex 4 web app, than it is to convert it to a mobile app.
    If he wants it on a iPad, then you are forced to create a Mobile Project.
    Hope this helps.
    Don

  • Create library (swc) in Flash Builder 4 / Flex Project (not in a Library Project)

    I want to create a swc file to use it in an other project. I can't use the Flash 4 Library Project to do this, because in a Library Project I
    haven't the possibility to use data/services, which I need for my library. After click on "data / services" I get the message "This view is only for Flex-Projects available".
    Has anyone a solution for my problem?
    Thanks for your help.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Converting Air Project to Web Project in Flash Builder 4

    I have an Air project that I need to convert to a web project to post online.  I've looked online with no luck so far, but perhaps someone can point me in the right direction.
    The closest thing I see to being what I want is if I go to Properties > Run/Debug Settings.  In there I tried going to New > Web Application but when I browse for Project it comes up empty, and so is the "Application file" dropdown.  I tried screwing around int he Source tab in the same window but it doesn't seem to help much.
    Other things that look close to what I want but don't work are when I right click my project, there's a "Add/Change project type" but all options are greyed out and I don't see anything web related in the options anyway.
    Also there's Properties > Targeted Runtimes, but there's nothing there I can do.
    Then in Properties > Flex Compiler I have "Generate accessible SWF file" checked.  But when I try to use that file it won't work in the browser flash player.
    So... is there an easy way to convert an Air project to a Web project?
    Thanks!

    I'm glad (but at the same time sad) someone has had the exact same problem I had.
    I've tried a few things (though none successful).
    - creating a flash pro project from the fb project
    - creating an AS3 project from the as3 mobile project (which runs on air). now this one I thought would work, and it does in Flash Player, however, when I try to run it with the generated html file, all I get is a string of errors.
    Here is something that does work.
    If you create an AIR project in Flash Pro (I've only tried this in CS5.5), when you publish the project, it will generate the swf and html files and the html file works and the swf runs great. Unfortunately you have to start that way (which sucks for programmers that want the benefits of Flash Builder). I haven't found anything to properly convert it yet.
    I hope this is some insight, even a year later.

  • How to easily get an Adobe Flash CS5.5 Professional project into Flash Builder 4.5?

    Hey all,
    I am new and trying to do the following, can you please guide/help me do it:
    I have a video chat application that is done on Adobe Flash CS5.5. I had the problem of "echo" so I wanted to use "getEnhancedMicrophone()". When I replaced "getMicrophone()" with "getEnhancedMicrophone()", Adobe Flash CS5.5 Professional didn't recognize it. I knew I need Flex, so I installed Flash Builder. And then got lost. What I simply want is just import my "FLA" file (or if I need to convert it to something else using a specific tool, let me know.. I have Adobe Flash CS5.5 Professional and can install other required applications if needed) done on Adobe CS5.5, into Flash Builder, and then "support Flex" so that I compile with the flash-version argument required.
    I am totally new to MXML and Flash Builder, and even Flex. I don't know how to import a FLA and add "Flex" libraries into it simply to make "getEnhancedMicrophone()" work without the need to recreate the whole thing on Flash Builder. Can you guide me please? The output is for a web SWF file, not a desktop application.
    Thanks!

    I have the same problem here. I'm trying to do a stick animation on cs6, but to be more precise, i need to actually draw with a larger brush size. I suggest using the pen tool with the smooth option on. You can't see exactly where the stroke will be, but its better than nothing, and it more or less acts like the brush anyway.

  • New to flash. I import a flash professional project into flash builder but don't see a design mode

    in flash builder to place object onto!!!
    I can see design mode if I import a catalyst project, as well an mxml file, but not with flash professional. Any help?

    in flash builder to place object onto!!!
    I can see design mode if I import a catalyst project, as well an mxml file, but not with flash professional. Any help?

  • Cannot compile arduino project

    Hi guys,
    I'm trying to work with arduino IDE, but I cannot compile even Blink example. I'm always seeing following error:
    /usr/share/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: cannot find -lm
    Any ideas how I can fix it?

    Worked also for my Asus laptop!
    CoolGenie wrote:
    This works for me too. Thanks!
    kircul wrote:
    Solution was found in discussion in package arduino.
    In short words:
    You need to install package avr-gcc
    Replace build-in avr-gcc compiler by same from package installed on previous step:
    # cd /usr/share/arduino/hardware/tools/avr/bin
    # mv ./avr-gcc ./avr-gcc-backup
    # ln -s /usr/bin/avr-gcc ./
    It works for me.

  • Deployed Android project using Flash Builder Burrito not working on mobiles

    Hi,
    I have created a simple "Hello World" Application using Flash Builder Burrito SDK. I have tested the result in the emulator it is working great.
    After that i deployed the application using "Export Release Build Option" and entered valid certificate details and created the .apk file. I copied the .apk file into the device and i run the application. Iam unable to run the app. I have tried these in 3 android supported devices and in each of these i am getting different error messages. I have mentioned the device in which i have tested and the error message i got while i tried to install the app (.apk file)
    HTC Desire - "Error while parsing the package of the application"
    Samsung Galaxy Tab - "Error while parsing the package of the application"
    LG Optimus one (LG P500) - "Application not installed"
    I have created a New Mobile Project in the flash SDK and added simple label "HELLO WORLD" in the view section.
    Before deploying i have installed Adobe AIR 2.5 in the device.
    Whether iam missing any of the steps to deploy correctly in the device. If so, please let me know. Also i need to know whether any restrictions are there for applications developed using Flash Burrito Preview Release. (whether by default all android mobile version more than 2.1 will support it?)
    Also when i try to install "Tour De Mobile Flex" apk in LG Optimus, it is saying "Device not supported" message.
    How do i overcome these problems to run the apk file without any problems.
    If you need any other detail please let me know, i will explain it in detail.
    Thanks in Advance,
    Srinivasan.C

    Ok, this is an old post but i still needed a couple of hours to find a solution, so here we go:
    - Most likely you have TWO executable build targets in your project (two mxml that you can launch). If so, go to the Project settings > Flex Applications and remove the one you don't need so you only have one.
    - My case was a bit complex though - i was using an ANE and Coldfucion server. In this case change the Output folder in the Project Properties > Flex Server > Output folder to something like "temp" instead of "C:..." generated by Flex Builder. The Android device gets confused by a "C:" reference but still can understand a local "temp" folder
    I hope i have saved your day

Maybe you are looking for