Found 2 bugs in new Flash Builder 4.7

Hello.
I've just migrated all of my large projects to the new Flash Builder 4.7 (from 4.6) and they all work well except for the 2 annoying issues:
1. I don't know why, but FB no longer allows me to create "config" packages. It says "config is a reserved word in ActionScript and cannot be used." Wtf? I had lots of projects using such names in FB 4.6 and didn't have any issues with it. Is it a new rule in FB 4.7? If so - then why it was introduced and was introduced only now? ActionScript language and FB exist not the first year... Also after i migrated existent projects i see all "config" packages have non-standard "folder" icon in the source file tree (in the package explorer panel).
2. There are strange warnings started to appear - "the import BLA-BLA-BLA is not used locally", but I am not blind - I see it is used just a little bit below in the code. What is wrong with this?
Please help as I am confused now about what to do... I waited for FB 4.7 for so long and now I think I will need to downgrade...

Hi Infeter,
For 1;
After the number of hours I have lost debugging issues where someone has inadvertently named a variable the same as a package that is on the root, so making it impossible for FB to discern whether I am talking about "aname.veryImportant" as the sub-package "veryImportant" of the package "aname" or the property "veryImportant" of the variable "aname", I welcome any and all new warnings of how a coder may inadvertently break Flash! So, if they are saying it is a reserved word, it is probably because there is a core class, variable or other such that will, at some point, bite you if you name something after it. This has always been the case with, for example "default" - default is a keyword that has real meaning for the compiler and you will not be allowed to define things as "default" because of the potential for confusion (are you issuing the "default" directive in a switch statement or are you referring to the "default" value in your class?). Given that FB has the frankly excellent "Refactor" function to allow you to easily rename packages, members and classes, I'd just be happy to rename the offending items and be glad to have saved myself several hours of painful debug later on.
For 2;
I'm surprised you're seeing this warning for classes that are not used. I've found loads that were added in automatically over the years that simply are not used. I'm loving the way I can clean out about half my import statements now. The thing to do is to comment out the imports and check that everything still works. If it does, then you're laughing, you don't need them. If it triggers errors of not being able to locate the class, then I would put together a code snippet and add it as a comment to your bug report.
G

Similar Messages

  • Flash Builder 4 and the SDK

    So any news on the building Xcelsius components in the new Flash Builder 4?  I know that we can do it with Flex Builder 3 just by ensuring we have the right Flex SDK selected, but is this still the case with the shiny new Flash Builder 4?
    Thanks in advance!

    Thanks Matt for the error message.  Found a bug report for the issue with adobe.  Turns out Flash Builder 4 will not support Flex 2 SDK
    [https://bugs.adobe.com/jira/browse/FB-15688]
    Which means that we can't compile within the IDE, but can compile outside using the command line.  This will be adding yet another layer to the development process
    Matt, any news on when Flex 3 will be supported in the SDK?  With the release of Flex 4 i'd imagine it's coming up.

  • How do I rebuild a Flex 3.0/SDK 3.2 application in Flash Builder 4.7?

    I am trying to rebuild an old Adobe Flex/Air app.  The original developer is gone and we don't have the development environment he used available to us to do the rebuild.  As best I can see, this is an Adobe Flex SDK 3.2 application rebuilt in Flex Builder 3.0.   I've been able to get the project imported to Flash Builder 4.7 and set the SDK to use the 3.2 SDK and get a build, but all of my controls have the "Trial Version" water mark. 
    How can I get rid of this watermark?  Do I need a license for SDK 3.2 in addition to my Flash Builder 4.7 license?
    I've tried also to "upgrade" the proejct to 4.6 SDK in 3.0 Compatibility mode, but I am getting lots of errors at runtime for null object.
    I found this thread: http://forums.adobe.com/thread/441869
    But I don't know if that means I need to have an Adobe Flex 3.2 license key?  or will my new Flash Builder 4.7 key work?
    I'm new to Flex/Air and I'm just trying to get this old project rebuilt.  Any suggestions will be appreciated.

    Update - I have updated the license.properties file and added the compiler switch but still no luck.  Our Flash Builder 4.7 is fully licensed so I guess I need to know where to buy a Flex Builder 3 license key.  Is anyone from Adobe here?  Maybe someone can help me out please?

  • AIR Update framework with Flash Builder

    Hi,
    I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same give in the example i mentioned above.
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Flash Builder and Adobe AIR update framework

    Hi,
    I posted this in AIR forum , but thought it happens with new flash builder and flex 4 beta , i should do here also
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same given in the updater example i mentioned in the link above. Only difference is i am using spark framework. The appUpater.initialize() never seem to work and keeps throwing an exception. Any alternatives so suggestions ?
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Flash Builder 4 (not beta) for Air 2

    Hi,
    having worked with the Flash Builder 4 Beta 2 for a while on a project that targets the Air 2 platform, I tried to import my Flex project into the new Flash Builder 4.
    Unfortunately things seem to be handled differently compared to the beta release: Overlaying the Adobe AIR SDK for use with the Flex SDK (http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes#How_to_overlay_the_Adobe_AIR_SDK_ for_use_with_the_Flex_SDK) does not seem to work, or am I missing something?
    For example, I get error messages like 'Could not resolve <mx:Canvas> to a component implementation.'. OK, I tried what FB would do when I create a new Flex project, and found that the namespace for mx components had changed from xmlns:mx="library://ns.adobe.com/flex/halo" to xmlns:mx="library://ns.adobe.com/flex/mx". But applying this change to my project didn't get me much further....
    Is there a readme for people like me who just want to move from the FB 4 Beta 2 to the new FB 4 with their Air 2 projects??
    Thanks to all of you in advance
    Roland

    1) Make sure you project is pointing to the right SDK after you imported
    2) Make sure that SDK name is in your preferences Flash Builder > Installed Flex SDKs and it points to the right location
    Sounds like you're overlaying AIR 2 over SDK 4.0.0 correct? There was an issue in Beta 2 about this http://blogs.adobe.com/jasonsj/2010/02/workaround_for_using_the_latest_nightly_sdk_40_buil ds_with_flash_builder_beta_2.html. In the final relase of Flash Builder 4, you no longer need to apply this fix.
    If that's not the issue, an easy way to debug is to look at the "Referenced Libraries" in Package Explorer and verify (1) the right SWCs are there and (2) you can expand the SWCs and see all the classes that should be there.
    Jason San Jose
    Software Engineer, Flash Builder

  • Flash Builder Loop while pre-launch check

    Hi all,
    I've just installed a new Flash Builder instance with Coldfusion builder plugin + some other cool features (Subversive, Taskstop...).
    I've imported an exisisting project and everything seems to load properly after fixed privileges issues ( for Coldfusion builder and MXML design view).
    But still one bigger problem... When i try to launch my project, the progress bar freeze at 6% performing pre-launch check).
    There is no error output, so i can't send you any log :S
    Don't find any solution on google and it seems that i'm the only guy facing this one
    Is there anybody here that can help me ?
    Thanks a lot !
    Francois

    Mmmmhhh... I've finally found how to resolve this issue... but still have issue related to code highlight for Coldfusion files...
    Here are the steps i follow to :
    1. i've installed Flash Builder 4 as Administrator
    2. I've installed ColdFusion Builder as plugin and as Administrator.
    3. Right click on Flash Builder .exe and in shortcut -> advanced -> checked the as administrator launch
    4. Right click on Flash Builder .exe and in compatibility -> checked "execute as admin".
    Now Flash builder launch correctly and i can launch my applications without problems...
    Weird.. but it works for me...
    Still have to understand why coldfusion file aren't correctly highlighted...
    chuss !

  • Flash Builder 4 - Turn on Smart Guides?

    Hello,
    Simply trying to lay out content in design view with new Flash Builder 4 - but the smart guides that used to be in Flex 2 and 3 are not there??
    I can't align text properly (vertically and horizontally) anymore.  The guides show up but only with reference to a contaniner - not with reference to other objects (text, buttons etc)
    Can anyone help!!?
    thanks

    Hi Leon,
    Can you describe the theme-changing behavior you are seeing?  Is there an error dialog about theme compilation failing?  If so, it most likely has not been updated to support the CSS namespace requirements and/or it suffers from lingering Fx-rename issues.  Are these themes that you may have downloaded from the web?  Does switching to the wireframe theme work for you?
    Please file a bug detailing the steps to reproduce your issues:  http://bugs.adobe.com/flex/
    Thanks,
    Rob Brambley
    Developer, Flash Builder

  • 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.7 + OSX 10.10 = :-(

    Problem Description:
    When attempting to use a Flash Builder File Dialogue Box under OSX 10.10 Yosemite will immediately crash the application. This bug now renders Flash Builder 100% useless on OSX 10.10!
    Steps to Reproduce:
    1. Open Flash Builder 4.7 on OSX 10.10 Yosemite
    2. Attempt to use any File Dialogue Box, such as "Browse.." etc
    Actual Result:
    The application immediately crashes.
    Expected Result:
    You should be able to conduct the action, such as loading a Flex Project, adding an SDK etc.
    Any Workarounds:
    None
    ** It appears that the issue could possibly be related to Java**
    See: OS X Yosemite (10.10) BETA Known Issues - IS&T Contributions - Hermes
    **Flash Builder 4.7 requires legacy Java SE 6

    You could try and install a recent version of Eclipse and install the FB plugin.
    Also, have a look at this article to see if this helps.

  • I need help migrating an existing project from Flash Professional CS6 to Flash Builder 4.6.

    I have followed tutorials...instructions on the web...all I get are unsolvable errors.
    I have a large Air application that compiles fine and works in Flash. However I would like to take advantage of the as3xls api which does not work in Flash Professional (for no reason in particular the internet just tells me it won't work because Flash Professional cannot access some part of the Flex framework).
    So I want to make my project work in Flash Builder. However, when I attempt to reference my document class, flash builder gives me an error telling me the package path com.andrewbefus.ModelMapper no longer works. It does this no matter how I select the folder to reference my document class. If I change the path to nothing...Flash Builder is happy with my document class and unhappy with every other class I have made.
    Then I decided to make a new Flash Builder ActionScript file and simply replace the ModelMapper.as document class that Flash Builder created with my completed ModelMapper.as. After some messing around with paths and directories, I got Flash Builder to be happy with my program structure but then all hell broke loose on almost every single Class outside the Flash Builder framework. One by one I attempted to tell Flash Builder where to go to get my components, fl.motion classes, and my custom classes but Flash Builder refused to recognise them unless I reference the folder containing the files, and then proceeded to tell me that the project path of every single class needed to be changed. I imagine if I spend the rest of my day mucking around with this something else will come up.
    I went looking for a tutorial explaining how to migrate a Flash Professional project over to Flash Builder. The closest thing I could come up with told me to just select my fla. file by going Project<Flash Professional<Create project using Fla file... which worked great except refused to compile my project as a desktop application for no sane reason - giving no option to select my project when I attempted to create a new Run Configuration.
    One frustration after another....

    I've also followed all the instructions here:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Still no luck...
    L.

  • Flash builder 4.7 lags on big files

    Hi
    I starts using new Flash Builder 4.7 three days ago.
    I have file that contain 5000 strings of code. And when I open this file and starts edit it - flash builder starts terrible lags! I can print only 3-4 chars per minute...
    There was not such problem in FB 4.6
    How can i fix it?

    Hi,
    Please provide few more info.
    1. What is your machine config?
    2. What exactly is the content of file? Can you provider us a sample?
    3. How big is your project? Is it flex or ActionScript project?
    4. Do you see any improvement if you turn off "Report problems when typing" in Preferences->Flash Builder->Editors ?

  • Flash Builder 4.5.1 Creating iOS Mobile App creates components not Spark views

    Hi
    I have Flash Builder 4.5.1 on Windows 7 using SDK 4.5.1.
    Following many of the Hello World video tutorials (including what's on Adobe TV's website) I create a new Mobile based Application in Flash Builder. I set it up to be a View Based Application targeting iOS and iPhone (although the problem is for any iOS device).
    I follow all the instructions and yet the MXML that's created at the end is component based and not targeting Spark Views. This floors running or viewing the app! Code for both Application class and View is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <components:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                         xmlns:s="library://ns.adobe.com/flex/spark" xmlns:components="spark.components.*" firstView="views.MyMobileProjectHomeView" applicationDPI="240">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </components:ViewNavigatorApplication>
    <?xml version="1.0" encoding="utf-8"?>
    <components:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark" xmlns:components="spark.components.*" title="HomeView">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </components:View>
    I have no idea why Flash Builder is creating code that's namespaced to components and not the spark framework.
    The code that's created in the course is below and yet if I import their project and try and view in Design view Flash Builder tells me 'An unknown item is declared as the root of your MXML document. Switch to source mode to correct it.':
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.HelloWorldHomeView" applicationDPI="240">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:ViewNavigatorApplication>
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Label text="Hello World"/>
    </s:View>
    Please help
    Many thanks in advance
    David

    Here's the solution:
    The problem did not exist on an installation of Flash Builder on a spare MacBookPro.
    On my main computer (the one with the Flash Builder issue) I uninstalled and reinstalled Flash Builder 4.5 (then updated to 4.5.1). Creating an iOS Mobile Application now creates the correct code.
    I have no idea why it was creating dodgy code.
    The only difference with the new Flash Builder install is that SourceMate 3.0 is not installed yet. Perhaps something had gone wrong in the Adobe Updater when going from 4.5 to 4.5.1, who know...all speculation...anyhow it works now!

  • Flash builder & getChildByName

    Hi  *,
         I recently started a new flash builder project in which I included some former actionscript 3 class I developed for flex 3.
    Two of this classes make use of the function getChildByName() to retrieve 3 button contained in a Hbox (now HGroup) and then apply to this button some bindings and some action.
    One thing I noticed while developing the rest of the application is that the name you give to a component is then referenced as the Id property in actionscript.
    I'm using the spark components and I read the adobe reference regarding children handling and it says that the getChildByName method is not available when working with spark components.
    I bypassed this problem using the getChildAt, but I would like to use something closer to getChildByName (<dream>Since the componets name is the ID property I wished there was something like javascript getElementById but no luck</dream>)
    Anyone has some advisment on this?
    Thanks so much 4 the attention
    Bye
    Luke

    The recommendation is to use "id" or store a list of components and search
    them.

  • Arabic Text in TextInput in Flash Builder 4.5.1

    Hello,
    I am currently developing a mobile application that is supposed to work on both Android and iOS devices. I am supposed to display arabic text and also to take arabic text input from the user. While I was trying to display simple output and input components I faced a problem with the TextInput. Please note the following:
    -The TextInput component displays the arabic text in reversed order and the characters are disjoint.
    -The label component does not have this problem and it accepts and displays the arabic text correctly.
    -An embedded font was added
    -The problem exists on both IPad and Galaxy Tab however the IPad displays the text correctly while typing (before loosing the focus on the TextInput). On the other hand, the Galaxy Tab displays the text in a wrong way both while typing and on focus out. However, the suggested words (above the keyboard in the Galaxy tab) are shown correctly.
    Please check the snapshots below.
    From Ipad:
    Thank you.

    Here's the solution:
    The problem did not exist on an installation of Flash Builder on a spare MacBookPro.
    On my main computer (the one with the Flash Builder issue) I uninstalled and reinstalled Flash Builder 4.5 (then updated to 4.5.1). Creating an iOS Mobile Application now creates the correct code.
    I have no idea why it was creating dodgy code.
    The only difference with the new Flash Builder install is that SourceMate 3.0 is not installed yet. Perhaps something had gone wrong in the Adobe Updater when going from 4.5 to 4.5.1, who know...all speculation...anyhow it works now!

Maybe you are looking for