Flash Builder 4.7 conditional compiling failed

I installed Flash Builder 4.7 on my windows xp machine, and tried to migrate projects from FB 4.6. However in one of my projects I use conditional compiling, but I'm getting errors.For example in FB 4.6 I have this sample code:
public class MyClass{
     CONFIG::DEBUGGING{
          import com.package.SomeClassOnlyForDebugging
     function someFunction():void{
          if (CONFIG::DEBUGGING){
               SomeClassOnlyForDebugging.create();
When I compiled it in FB 4.6 everything worked fine. However when I try to compile it in FB 4.7, then I get error on the conditional compiling only inside the function and not on the import statement. The only way I have found to overpass it is to go to Project>Properties>ActionScript Compiler and disable Enable strict type checking. But this is not a permanent solution.
Am I doing something wrong, or is there some other way to do it?

You should to do like that:
function someFunction():void
CONFIG::DEBUGGING {
     SomeClassOnlyForDebugging.create();
without if.

Similar Messages

  • Flash Builder 4.5 Plugin Error: Failed to load library.swf

    Hi,
    I am getting an error from Flash Builder that is stopping me building my app. I am running the plugin version under Springsource ToolSuite 2.6.1. It worked fine with the Prerelease version of Flash Builder 4.5.
    I have flexunit-uilistener-4.1.0-8-4.1.0.16076.swc in the directory along with the other FlexUnit swc files (which do not throw errors).
    Any suggestions ?
    Thanks!
    eclipse.buildId=2.6.1.201105041000-RELEASE
    java.version=1.6.0_24
    java.vendor=Apple Inc.
    BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
    Framework arguments:  -product com.springsource.sts.ide -product com.springsource.sts.ide -keyring /Users/Dre/.eclipse_keyring -showlocation
    Command-line arguments:  -os macosx -ws cocoa -arch x86 -product com.springsource.sts.ide -data /Users/Dre/workspace-PGS -product com.springsource.sts.ide -keyring /Users/Dre/.eclipse_keyring -showlocation
    Error
    Fri May 27 21:31:07 PDT 2011
    Design view: Failed to load library.swf from /Users/Dre/flexunit-3/flexunit-uilistener-4.1.0-8-4.1.0.16076.swc, reason=DesignAssetLoader.CompleteTimeout

    I did a workaround by adding this compiler argument:
    ${flexlib}/libs/automation/automation_agent.swc
    ...which points to that file in Flex 4.5. I can now build the app.
    Why do I need to do this now when I didn't need to do so before ?

  • Flash Builder 4.7 frequent compiler issues/restarts

    Basically Flash Builder 4.7 on Mac OSX 10.7.5 is unusable. Very frustrating.  Constant compiler issues that require frequent cleaning, closing of projects, restarts of FB, and even re-installs.  I've seen none of these issues on FB 4.6 with the same projects/code.
    The most common visible compiler errors are these two that randomly appear:
    1) An internal build error has occurred
    2) classes must not be nested
    I tried increasing memory as some have suggested, but this has no effect.
    It takes me 100 times longer to code now becuase every tiny code change cuases these errors.  Crazy!
    Before I revert back to FB 4.6, any suggestions? 
    Thanks,
    Don

    Hi!
    Close any unneeded projects in workspace.
    You can also split your large project to few libraries compiled into SWC. After compiling libraries, if not need to change often, close their projects. When such projects are closed main project compiling with just use of SWC libraries usually takes much less resources.

  • Flash builder 3 won't compile

    I have a flash builder 3 project  but I done something but it won't compile now. How can I resolve this. Tried clean project and no luck

    what are the compile errors u r getting ?

  • Flash builder 4 Verifying payload integerity : Failed with code 1

    where i install flash builder 4 on windows servers 2003 32x
    got this error
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s), 2 warning(s)
    WARNING: Payload {7E5AA19B-0B85-4f44-BA26-728851489200} Adobe Flash Player 10 ActiveX is already installed and the session payload {5EE868D6-7B6B-49ee-AF60-09B1358AFFD7} Adobe Flash Player 10 ActiveX has no upgrage/conflict relationship with it.
    WARNING: Payload {40F95A03-885A-45fb-9A14-486BEFEDDF34} Adobe Flash Player 10 Plugin is already installed and the session payload {FB7F30B6-BFBF-4d2c-9F61-B5533659ACBE} Adobe Flash Player 10 Plugin has no upgrage/conflict relationship with it.
    ERROR: Verifying payload integerity : Failed with code 1
    ERROR: Unable to get root from inChildPath
    who can help me,i'll thank you very much

    Hi,
    Please deselect the option of Flash Player in the installer before beginning the installation and see if installation is successful. (Please uninstall Flash Builder and reboot before trying to reinstall)
    If that doesn't help, please run the CS5 clean tool with option to uninstall Flash player and FB, reboot after cleaning and now reinstall FB (selecting Flash Player also)
    CS5 Clean Tool can be downloaded from http://www.adobe.com/support/contact/cs5clean.html
    Please let us know whether this helps.
    Thanks,
    Deeptika

  • Built app with Flash Builder 4.6 and compiled for iOS, now error when loading to appstore

    I built a fairly simple app using Flash Builder 4.6 and have successfully deployed it to the Android Market (after testing on my own Android device).  I have also taken that same app and compiled it for iOS and tested it on my own iPad. 
    I have then done the release build with the "Final Release for App Store Distribution" option in the release build wizard.  I have all the correct provisioning certificates in place and compiled the application to a .ipa file.
    At this point, using a MAC, I have run the Application Loader utility to upload my application to the itunesConnect portal to get it in the appstore.  I've already gone through the steps of entering the metadata, price scheme, and screenshots in the itunes connect portal, and just need to upload it for review.
    When I upload the .ipa file into the application loader, it gives me the following error:
    "iPhone/iPod Touch:  application executable contains unsupported architecture(s): arm"
    Anyone have any idea what this means and how I can fix it?  Any help is greatly appreciated!
    Thanks in advance!

    Solved it.  Just added the following in the <InfoAdditions> tag for iPhone in my app descriptor XML file:
      <key>UIRequiredDeviceCapabilities</key>
    <array>
    <string>wifi</string>
    <string>armv6</string>
    <string>armv7</string>
    </array>

  • Flash builder 4.6 : aapt tool failed - AndroidManifest.xml:33: error: Error parsing XML: not well-fo

    This is happening with a "fresh" installation of flash builder 4.6 and it's driving me crazy:  During "export release build" I get the error: "Error occurred while packaging the application: aapt tool failed: c:\users\alfonso\AppData\local\Temp[...]\AndroidManifest.xml:33: error: Error parsing XML: not well-formet (invalid token)  This happened while importing a project build into another computer.  If I create a BLANK air mobile project and I copy the application manifest on the old application EV ERYTHING WORKS FINE. As soon as I touch a single line of code in the application manifest I get the error. And also I get the error even if I UNDO the changes into the -app.xml  Any help would be really appreciated  Thanks  Alfonso Florio

    Having same issue here. In my case I'm just trying to place a local video file; hear audio, t see no video running it within Flash Builder and the ADL simulator on my Mac. It's very frustrating that everything Abobe has posted on this is targeted toward the Flash player runnung inside a damn browser... don't they realize we need a IOS solution for the 1000s of iPhones and iPads out there? Very frustrated with this.

  • Flash Builder stops giving me compile errors or warnings

    Hi,
    I've been using Flex / Flash Builder since Flex2 and I've always had this problem.  At some point in an AS project, my project just breaks down and stops giving me errors.  I then have to get my errors when publishing in the Flash IDE, and of course, I'd rather get them in FB before hand.
    I'd say this happens in 80% of my AS Projects, and the only way to fix it is to delete the project, and start a new one with the same scripts.  Clean does nothing.  Is there a hidden file I can delete when this happens perhaps, something quicker than starting a new project?
    Thanks for any help.
    P.S.  I'm on a MAC

    Hello.
    I found a solution for Flash Builder not compiling SWFs.
    1. Just remove your project from Package Explorer, widthout deleting files of course (right click on project name -> delete)
    2. Close Flash Builder.
    3. Check your process explorer if you have Flash Player running, if so, kill the process (ctrl+alt+del)
    3. Import your project to Package Explorer (right click -> import -> file system)
    4. It should work as intended now.
    If it helps you - I am very glad.
    Don't hesitate to thanks-email me

  • Flash Builder 4.5 Fails to Start

    Folks,
    I have just installed Flash builder 4.5 on a windows vista machine. When I launch the flash builder, I get the message"Failed to create Java Virtual Machine" and flash builder doesn't start. In the past, I have installed, Flex Builder 3 in the same machine earlier and used it without any issues. can some one help me!!!
    Thanks
    Tvp

    Hello guy's.
    About this error I know that comes from the ini configuration file that is in Flash Builder default folder:
    (in my case)
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\FlashBuilder.ini
    so those 4 parameters are like - how many RAM you want to use to create the Java Virtual Machine (JVM).
    My default parameters are:
    -Xms384m
    -Xmx512m
    -XX:MaxPermSize=256m
    -XX:PermSize=64m
    also I have 16GB RAM, i5 processor and x64 bit machine... so, when I duplicate those values here I get the same error like tvp_82 has.
    It seems that Xms and Xmx cannot be bigger from (Xms512m,  Xmx1024m).
    Just for a record ... there are another config files inside the "sdks" folders with the same parameters for the JVM:
    (in my case)
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\bin\jvm.config
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\bin\jvm.config
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\3.6.0\bin\jvm.config
    Inside those files there is only 1 parameter (java.args=-Xmx384m -Dsun.io.useCanonCaches=false)
    And be sure that your FlashBuilder.ini ... and those jvm.config files are with same value (like in my case - Xmx384m)
    IMPORTANT:
    Howewer I know this because when I start using Flash Builder everything works perfect until my project grows up.
    Now I am so close to my first release of my project and I cannot compile the "Release Build"... I can create only "Standard Build" and "Fast Package build"
    I get this error when I try to create IPA build for iOS devices:
    http://forums.adobe.com/thread/948366
    http://forums.adobe.com/message/4171044
    Like you see, already spent a month, but still nothing from Adobe... or just to give me directions what's happen with this error.
    So.. the errorcan be result of my project code, or by JVM small memory.
    Howewer I need to know what is the problem before I do changes in my code.
    Anyway I don't have time to recode my app... if I am not sure that - my code is the problem for this error.
    So please if you are familiar with something like this... post me.
    Thank you guy's and I think that I help you with your issue.
    Regards

  • How to Setup Flash Builder ActionScript only project for iPad?

    Hello!
    Can someone give a short guide on how to setup an ActionScript only prject in flash builder such that it can be compiled using adt and deployed to the iPad?
    i created successfully iphone games using FlashIDE and PFI.
    now I'd like to create an iPad app using Flash Builder (ActionScript only). but I fail to load the compiled IPA to the ipad, keep getting different errormessages thus i think something with my projectsetup is wrong

    Yes, in Terminal you type a single line which is made from the path to the adt application, some parameters, and paths to other documents. Here's the full list of things:
    /Location/to/AdobeAIRSDK_2.6/bin/adt
    -package
    -target ipa-test
    -provisioning-profile /Location/to/Provision.mobileprovision
    -storetype pkcs12
    -keystore /Location/to/Certificates.p12
    -storepass password
    NameOfApp.ipa ApplicationDescriptor-app.xml
    -C /Location/to/swf  NameOfApp.swf
    splashscreens
    icons
    That "-C" line is clever, it does a directory change to the folder you give it, so after the -C /location/to/swf part it will then look in that same folder for other documents, and for where to build the IPA file.

  • Amazon Kindle problem using Flash Builder 4.6

    Is there a way to specify a version of Air 2.7 using Flash Builder 4.6?  This would be handy for getting apps accepted by the Amazon App store for the Kindle.  Recently, I had an app accepted into the Amazon App store.  However, the App needs to use a version of Air that preceeds Air 3.1.  The version that I was advised to use is
    Adobe AIR v. 2.7.1.1999.
    I tried changing the 2nd line in the prog-app.xml file from:
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    to
    <application xmlns="http://ns.adobe.com/air/application/2.7">
    However, this change led to an error:
    "See details for more information.
      Namespace 2.7 in the application descriptor file should be equal or higher than the minimum version 3.1 required by Flex SDK. "
    I recall that there was a temporary workaround for a similar problem with the Blackberry tablet OS.  The Blackberry OS problem was later solved and the fix is no longer necessary.  Perhaps, we need a work around for the Amazon Kindle to force the Flash Builder 4.6 to compile a release with Air 2.7.1.xx?
    Any ideas how to make this happen?

    Hello,
    did you ever find a solution?
    thanks.

  • Building complex flash game in Flash Builder 4 - Workflow/Best Practices

    I'm investigating switching to Flash Builder 4 for building a complex game that currently lives purely inside Flash CS4.  CS4 is a pretty terrible source code editor and debugger.  It's also quite unstable.  Many crashes caused by bad behavior in the SWF will take out the entire IDE so are almost impossible to debug.  And I've heard other horror stories.  To be clear, for this project I'm not interested in the Flex API, just the IDE.
    Surprisingly, it seems Flash Builder 4 isn't really set up for this type of development.  I was hoping for an "Import FLA" option that would import my Document Class, set it as the main entry point, and figure out where other assets live and construct a new project.  What is the best workflow for developing a project like this?
    What I tried:
    -Create a new Actionscript Project in the same directory where my CS4  lives
    -Set the primary source file to match the original project's source file and location
    -Set my main FLA as "export to SWC", and added "SWC PATH" to my flash builder 4 project.
    -Compile and run.. received many errors due to references to stage instance. I changed these to GetChildByName("stagename").  Instead, should I declare them as members of the main class?  (this would mimic what flash CS4 does).
    -My project already streams in several external SWF's.  I set these to "Export SWC" to get compile-time access to classes and varaibles. This works fine in cs4, the loaded SWF's behave as if they were in the native project.  Is the same recommended with FB4?
    -Should I also be setting the primary FLA as "export to swc"?  If not, how do I reference it from flex, and how does flex know which fla it should construct the main stage with?
    Problems:
    -I'm getting a crash inside a class that is compiled in one of the external SWF's (with SWC).  I cannot see source code for the stack inside this class at all.  I CAN see member variables of the class, so symbol information exists.  And I do see the stack with correct function names.  I even see local variables and function parameters in the watch window! But no source.  Is this a known bug, or "by design"? Is there a workaround?  The class is compiled into the main project, but I still cannot see source.  If FLEX doesn't support source level debugging of SWC's, then it's pretty useless to me.   The project cannot live as a single SWF.  It needs to be streaming and modular for performance and also work flow. I can see source just fine when debugging the exact same SWC/SWF through CS4.
    -What is the expected workflow with artists/designers working on the project?  Currently they just have access to all the latest source, and to test changes they run right through flash.  Will they be required to license Flash Builder as well so they can test changes?  Or should I be distributing the main "engine" as a SWF, and having it reference other SWF files that artists can work on?  They they compile their SWF in CS4, and to test the game, they can load the SWF I distribute.
    A whitepaper on this would be awesome, since I think a lot of folks are trying to go this direction.  I spent a long time searching the web and there is quite a bit of confusion on this issue, and various hacks/tricks to make things work.  Most of the information is stale from old releases (AS2!).
    If a clean workflow I would happily adopt Flash Builder 4 as the new development tool for all the programmers.  It's a really impressive IDE with solid performance, functional intellisense, a rich and configurable interface, a responsive debugger..I could go on and on.  One request is shipping with "visual studio keyboard layout" for us C++ nerds.
    Thanks very much for reading this novel!

    Flash builder debugging is a go!  Boy, I feel a bit stupid, you nailed the problem Jason - I didn't have "Permit Debugging set".  I didn't catch it because debugging worked fine in CS4 because, well, CS4 doesn't obey this flag, even for externally loaded SWF files (I think as long as it has direct access to the SWC). Ugh.
    I can now run my entire, multi SWF, complex project through FB with minimal changes.  One question I do have:
    In order to instantiate stage instances and call the constructor of the document class, I currently load the SWF file with LoaderContext.  I'm not even exporting an SWC for the main FLA (though I may, to get better intellisense).  Is this the correct way of doing it?  Or should I be using , or some other method to pull it into flex?  They seem to do the same thing.
    The one awful part about this workflow is that since almost all of my code is currently tied to symbols, and lives in the SWF, any change i make to code must first be recompiled in CS4, then I have to switch back to FB.  I'm going to over time restructure the whole code base to remove the dependency of having library symbols derive from my own custom classes.  It's just a terrible work flow for both programmers and artists alike.  CS5 will make this better, but still not great.  Having a clean code base and abstracted away assets that hold no dependencies on the code  seems like the way to go with flash.  Realistically, in a complex project, artists/designers don't know how to correctly set up symbols to drive from classes anyway, it must be done by a programmer.  This will allow for tighter error checking and less guess work.  Any thoughts on this?
    Would love to beta test CS5 FYI seeing as it solves some of these issues.
    Date: Thu, 21 Jan 2010 15:06:07 -0700
    From: [email protected]
    To: [email protected]
    Subject: Building complex flash game in Flash Builder 4 - Workflow/Best Practices
    How are you launching the debug session from Flash Builder? Which SWF are you pointing to?
    Here's what I did:
    1) I imported your project (File > Import > General > Existing project...)
    2) Create a launch configuration (Run > Debug Configuration) as a Web Application pointing to the FlexSwcBug project
    3) In the launch config, under "URL or path to launch" I unchecked "use default" and selected the SWF you built (I assume from Flash Pro C:\Users\labuser\Documents\FLAs\FlexSwcBug\FlexSwcBugCopy\src\AdobeBugExample_M ain.swf)
    4) Running that SWF, I get a warning "SWF Not Compiled for Debugging"
    5) No problem here. I opened Flash Professional to re-publish the SWF with "Permit debugging" on
    6) Back In Flash Builder, I re-ran my launch configuration and I hit the breakpoint just fine
    It's possible that you launched the wrong SWF here. It looks like you setup DocumentClass as a runnable application. This creates a DocumentClass.swf in the bin-debug folder and by default, that's what Flash Builder will create a run config for. That's not the SWF you want.
    In AdobeBugExample_Main.swc, I don't see where classCrashExternal is defined. I see that classCrashMainExample is the class and symbol name for the blue pentagon. Flash Builder reads the SWC fine for me. I'm able to get code hinting for both classes in the SWC.
    Jason San Jose
    Quality Engineer, Flash Builder
    >

  • 3D content for iOS using Flash Builder? Possible?

    Hi,
    Is it possible to use Papervision or Away 3D using Flash Builder 4.6 and compile this succesfully for iOS?
    I have previously had lots of fun with Papervision and I am just wondering if it is possible to create 3D interface content for iOS and/or Android?
    HR

    I think Away3D (and possibly PaperVision) uses Pixel Bender shaders. They don't work on mobile devices, AFAIK. But Stage3D is supposedly coming to AIR mobile soon. That should blow the socks of any software rendering. I think Away3D will be supporting it.

  • Flash Builder fails to copy over static files in incremental compiles

    During incremental compiles, the Flash Builder fails to copy over certain static files (such as *.js and html files).  I have my own html wrapper and during incremental compiles it fails to copy over this file and also deletes the file from bin-debug/bin-release.  I have to do a clean build instead to ensure these files are copied over.

    Just tried this out on an IIS server with Flash player 10.3.181.14 - it worked.
    Are you using the release version of Flash Builder 4.5 with the release version of Flex SDK (not a prior SDK build)?
    The URL you mentioned gives me a 403 forbidden error.
    -Anirudh

  • App fails to compile with mxmlc command-line but builds fine with flash builder IDE.

    Hi,
    i have this flex app (its a flex project created from flash builder ), it compiles fine when i build it from IDE.
    it fails to compile when i do it from command line through mxmlc.
    i am invoking the mxmlc at the location <flash-builder-installation>\sdks\<flex-ver>\bin\
    the mxml file is test.mxml
    i am invoking like the following
    c:\<bin>\mxmlc test.mxml
    i dont have any dependency on any of custom swc file.
    i am getting the following type errors when i compile it from my .as file
    Error: Type was not found or was not a compile-time constant: TouchEvent
    Error: Type was not found or was not a compile-time constant: File.
    Error: Type was not found or was not a compile-time constant: FileStream
    could you please let me know what i am missing here ?
    thanks,

    Is this a AIR app or a mobile app? If you are building AIR app for desktop then you can use amxmlc instead of mxmlc.
    If its a mobile app then use mxmlc +configname=airmobile
    -Gaurav
    http://www.gauravj.com/blog

Maybe you are looking for

  • How to install Mountain Lion on New Macbook Pro from APPS

    How can I install Mountain Lion into a VM on a New Macbook Pro running YOSEMITE  from APPS I have it in my apps purchased but It tells me the system is to New to download/run it I have tried mounting my install ESD copy but it has the same Problem I

  • Powersave and open-source ATI drivers

    Hi everybody, another ATI-driver-issue here... I have a laptop with an HD3470 graphic card. Before Xorg 1.6 I used the catalyst drivers from the main repository, and I was quite happy. After the upgrade to the new Xorg i moved to open drivers, but I

  • CUCMBE3K Experience and Issues Identified

    I have created a list below of issues and experiences whilst working with the CUCMBE3K. For the purposes of this dialog, I will refer to this particular customer as “CustomerX”. Part 1: Pre-Sale Engagement Summary Following true to the Cisco PPDIOO m

  • How to output strings to an text file and excel file

    Hi guys, I am writing a simple application taht process some string inputs from user using a simple GUI. The GUI consists of a series of textfields which the user can enter names, age, addresses....etc Once they complete filling up that GUI form, the

  • Php to generate numbers spreadsheet

    there is a pear package (http://pear.php.net/package/SpreadsheetExcelWriter) that uses php to generate excel spreadsheets. could this be done with numbers? anyone have any idea what would have to change to use numbers instead of excel?