Building from flex builder vs ant task

I have a flex application written using flex builder. When I
build it and run it using flex builder, or create an air file from
flex builder and run that, then my application works just fine.
However, I would like people without copies of flexBuilder
installed to be able to build my application, so I am using the
flex ant task (flex-mxmlc) to build my application. As far as I can
tell I have the same configuration, and the same libraries included
in the ant task. However, when I run the air file generated by the
ant task nothing happens. If you look in the task manager, you can
see that the application is running, but the main window for the
application never appears.
I tried running the swf through a debug version of flash to
get some log output, and I am getting a bunch of exceptions, the
first of which is:
VerifyError: Error #1014: Class flash.display::NativeWindow
could not be found.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
at
mx.managers::SystemManager/preloader_initProgressHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
It seems like it might not be finding the main flex library
(flexlib.swc), is that where that class would be? In my ant task I
have an include-libraries tag that points to that file.
Anyone have any ideas?

I experienced a similar problem (although the class that
could not be found was different for me). Googling around I found
someone who had a similar problem and claimed that using the
flexlib.swc library was the culprit.
The root of the problem is that the Flex SDK that comes
bundled with the Flex Builder has libraries (under frameworks/libs)
that are NOT included in plain free Flex SDK that you and I are
presumably using on our build machines.
When flexlib.swc is linked in, it causes certain classes to
be required at runtime. Apparently when you compile these classes
are linked in if available, but when they are not the compilation
still succeeds. Only you get a VerifyError when you run the thing.
What worked for me was to copy all the additional .swc files
found in my Flex Builder SDK's frameworks/libs directory to the
same directory on my build machine. Also you will need to copy the
additional files under frameworks/locale/en_US.
Rebuild and clear your browser's cache and it should then
work.

Similar Messages

  • Design view not working after importing project from Flex Builder

    After importing a project from Flex Builder to Flash Builder I am no longer able to see anything in the design view. I am using the flex 4.5 sdk.
    Any idea how I can get this design view working? I heard it could have something to do with the metadata directory but am slightly lost here?...
    Adam

    Could you please provide more information as to what exactly are you importing. Also does Design View not lauch at all or does it give errors. Would it be possible for you to share the logs.
    Meanwhile you can try cleaning the workspace and importing again to see if that solves the issue.

  • Issues migrating from Flex Builder 3 to Flash Builder 4.5

    Migrating from Flex Builder 3 (SDK 3.5) to Flash Builder 4.5 (SDK 4.5). Using Flex 3 compatibility mode. Flash Player 10.2. MX only components set.
    Issue 1. A DataGridColumn error per:  Description Resource Path Location Type
    Declaration of style 'direction' conflicts with previous declaration in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\libs\mx\mx.swc(mx.controls.dataGridClasses:DataGridColumn). SPT_GUI  Unknown Flex Problem
    Issue 2. Using Cairngorm 2. Have a class 'Bindable] public class GuiModel implements ModelLocator'. Now getInstance() is not defined per: private var model : GuiModel = GuiModel .getInstance(). Does Cairngorm 3 have to be used with Flash Builder 4.5?
    What has to be done to resolve these issues?

    Issue 2: Have you defined the static variable to hold the instance of the model locator? Also, have you defined a static method to return the model locator's instance?

  • Upgrade from Flex Builder 3.1 to Flash Builder 4.5

    I have several project in Flex Builder 3.1 now.
    What is the best way to move them in Flash Builder 4.5? Can I just use the workspace from Flex Builder 3.1 in Flash Builder 4.5?
    Is Flex 4.5 backward compatible at API level?

    You should always have separate workspaces for separate versions of Flash Builder.
    Flex 3 and Flex 4 have some large differences.  You will probably want to spend some time reading about migrating by searching on Google.  Here is a good place to start: http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html

  • AIR apps won't launch from flex builder

    Hi,
    I am currently working on my first AIR app inside of Flex
    Builder 3. For some reason, when I try to launch, profile, or debug
    the app, it does it's normal "Loading.." message in the
    bottom-right corner, but will never launch. The loading message
    just disappears and the app never shows up. I do have the AIR
    runtime installed. I receive this message when trying to profile
    the application:
    Process terminated without establishing connection to
    debugger.
    Command:
    "C:\Program Files\Adobe\Flex Builder
    3\sdks\3.0.0\bin\adl.exe" "C:\Personal\Freelance
    Projects\MyBoatData_Prototype\bin-debug\MyBoatData-app.xml"
    "C:\Personal\Freelance Projects\MyBoatData_Prototype\bin-debug"
    Output from command:
    invocation forwarded to primary instance
    Can anyone help?

    If you are using mx:Application, you need to set visible as
    true in the app.xml file.
    Also make sure that no instance of adl is already running. If
    so kill that instance via task manager.
    Thanks,
    Gaurav

  • AIR app won't launch from flex builder

    Hi,
    I am currently working on my first AIR app inside of Flex
    Builder 3. For some reason, when I try to launch, profile, or debug
    the app, it does it's normal "Loading.." message in the
    bottom-right corner, but will never launch. The loading message
    just disappears and the app never shows up. I do have the AIR
    runtime installed. I receive this message when trying to profile
    the application:
    Process terminated without establishing connection to
    debugger.
    Command:
    "C:\Program Files\Adobe\Flex Builder
    3\sdks\3.0.0\bin\adl.exe" "C:\Personal\Freelance
    Projects\MyBoatData_Prototype\bin-debug\MyBoatData-app.xml"
    "C:\Personal\Freelance Projects\MyBoatData_Prototype\bin-debug"
    Output from command:
    invocation forwarded to primary instance
    Can anyone help?

    You might have the ADL open already and had a bug, so it's
    not going to show the new application.
    You need to manually close ADL first before you try debugging
    another time. If you're on a PC, use Task Manager ->
    Processes... and end ADL.EXE
    Then try running the app again... it should sort it
    out.

  • Execute batch command from flex builder

    When I click the "Run" button in Flex builder 3, I would like to execute a batch file.  It seems like in the Run settings, it only likes html and flash files. Other file types open in a flash environment  Anyone know of a workaround?

    Have a look at External Tools and see if that does what you want.
    On the main menu bar in Flex Builder there's an "External Tools" icon, click its arrow and select -> Open External Tools Dialog..
    Or from the menu, select "Run" -> "External Tools" -> "Open External Tools Dialog..."
    You can add a new configuration there and do all kinds of stuff (like creating docs using ASDoc, etc..)

  • How to migrate a flex app from Flex Builder 3 to Flash Builder 4.7

    Hello,
    I have written an extensive application using Flex Builder 3. I have maintained the app for several years using FB3. In the mean time I have created several mobile apps using Flash Builder 4.7. So I am very familiar with the the new framework. However, my client has requested some big changes to the app. I figured this would be a great opportunity to migrate the app to FB4.7. I would like to keep the mx structure for the time being. So, are there any good documents concerning this migration path? What SDK should I use. Should I start using the Apache Flex SDK?
    Thanks,
    --randu

    Hello Raja,
    Thanks. Your reply has been very helpful.
    For deploying the Flex app, as a web on NW 04S, I did the following:
    - Created a web project and included the following files as web-content. These files were created using the Flex builder or in the Flex development perspective of NWDI - CE, you can find them in the "bin" folder of your Flex project.
       - AC_OETags.js
       - your-app.html
       - your-app.swf
       - history.htm
       - history.js
       - history.swf
       - playerProductInstall.swf
       - crossdomain.xml - This file is important, if our Flex app wants data from the server.
        ( I made the simplest possible crossdomain.xml containing
           <allow-access-from domain="*" secure = "false"/>
      -  Declare "your-app.htm" as the welcome file in web.xml
      -  Package, this .war after building this web project in an Enterprise application project and build it.
      Now, you have the .ear made, which is deployable on your NW Web AS.
    Apart from this, another thing which is important to be included in your Flex mxml code is the following:
    ( Thanks to Abesh for this........ )
    - You have to tell the Flex app, in the action script, as to from where should the Flash engine pick the crossdomain.xml ( in case you are accessing the server for data from your app)
    You might have noticed, we packaged the crossdomain.xml along with our other web content in the .war.
    So mention, something like this in your action script.
    Security.loadPolicyFile("http://<hostname>:<http-port>/<context-root fo your web app>/crossdomain.xml");
    The code will work like a charm.
    Hope this helps everyone.
    Thanks guys.
    Best Regards, Gagan.

  • Upgrade from Flex Builder 3 Professional to Flash Builder 4 Standard?

    Hi,
    I currently own a license to Flex Builder 3 Professional, and I would like to upgrade to Flash Builder 4 Standard. I do not need the extra features included in Flash Builder 4 Premium, and it costs three times as much as the Standard upgrade.
    However, none of the upgrade pages say if my particular upgrade path is possible or not. I talked to a sales rep on the phone, and he thought it would be fine, but didn't know for sure. Can anyone give me the official word if it is possible to upgrade from FB3 Pro to FB4 Standard?

    Hi,
    I don't think that "downgrades" from FB3 Pro to FB4 Standard are officially supported. You might be able to negotiate with a Sales Rep to make an exception for you though, for a discounted price on a non-upgrade version of FB4 Standard.
    Alternatively, if you have any interest in CS5 Web Premium (or have any Adobe products qualifying for a CS5 upgrade), FB4 Standard is included with that Suite now.
    -Chris

  • License migration from Flex Builder 3 to Flex Builder 4

    I am ready to purchase a license for Flex Builder but am hesitant to do so.  It appears that Flex Builder 3 is available now with Flex Builder 4 coming within some time period.  If I buy a Flex Builder 3 license now will I be entitled to Flex Builder 4?   If not, should I wait for FB 4 to become available?  What is the anticipated ship date of that product?
    Neil

    From our FAQ
    Q: If I purchase Flex Builder 3, am I eligible for an upgrade to Flash Builder 4?
    A: Adobe has not yet announced the ship date of Flash Builder 4. To be eligible for a free of charge upgrade to Flash Builder 4, you will need to purchase maintenance along with your purchase of Flex Builder. You can purchase maintenance with your Flex Builder 3 Standard purchase for an additional $99 US which makes you eligible for a free-of-charge copy of Flash Builder 4 Standard edition when it ships. You can purchase maintenance with your Flex Builder 3 Pro purchase for an additional $299 US. To purchase maintenance, you will need to buy through an Adobe reseller. In the US, please contact CDW at 800-800-4239.

  • Querying local sqllite db from flex builder

    Is there any support in flexbuilder 3 (beta 2) to query a
    local air db? If I go into the database development perspective it
    doesn't have a sqllite connection profile option. thanks

    Hi,
    Flex Builder 3 (Beta 2) does not have support for sqllite.
    Thanks,
    -Catalin

  • Migrate from flex builder 2

    Hi All,
    I have an app in flex builder 2... I just download de beta 3.
    How can I migrate to this new version?
    Any problems in migration?
    Can I continue working and put my app in production while we
    wait the final
    version?
    Tks
    JFB

    Never mine I got it... just replace the path of the WEB-INF
    folder and
    works.
    Rgds
    JFB
    "JFB" <[email protected]> wrote in message
    news:fj1v2j$620$[email protected]..
    >I did the migration us you recomend.
    > Now shows an error.
    > Severity and Description Path Resource Location Creation
    Time Id
    > unable to open
    'C:\Inetpub\wwwroot\WEB-INF\flex\services-config.xml'
    > EstimatorInFlex Unknown 1196718839003 0
    >
    > I checked and is not WEB-INF folder there, how can I
    fixed this error?
    >
    > Tks
    >
    >
    >
    > "sharonma" <[email protected]> wrote in
    message
    > news:find97$cu5$[email protected]..
    >> Hi JFB,
    >>
    >> You should be able to just import your FB2 project
    to the FB3 beta build.
    >> If
    >> you're still a bit nervous about it, I think it
    maybe a good idea to make
    >> a
    >> copy of your FB2 project before doing so.
    >>
    >> If you encounter any migration problems, please file
    a bug in our public
    >> bug
    >> system:
    >>
    http://bugs.adobe.com/flex
    >>
    >>
    >> thanks,
    >> Sharon
    >>
    >
    >

  • Error When Attempting to add a builder in Flex Builder 3

    Hi All,
    When I attempt to add a builder to my flex project, I get a "Internal Error: Unable to Save Launch Configuration" message. I was wondering if anyone knew how to fix this problem. A screenshot below. Also, there does not appear to be any error message written to the .log file in the .metadata folder.

    Hi,
    From your description, it seems that the address
    sales@[domain].com has been used in another mailbox. I recommend you use the following cmdlet to find out which mailbox is using this address.
    Get-recipient | Where {$_.EmailAddresses -match "[email protected]"} | select Identity, DisplayName, RecipientType. The mailbox which is using this address will show up in the result.
    Hope this can be helpful to you.
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Amy Wang
    TechNet Community Support

  • Webservice call ends in Verify error during after decoding ( after update to Flex builder 3 /Flex builder 2.01 hotfix 3)

    Hi all,
    I like to ask if someone has ever get or heard from this
    error (or may help me to discuss how would be the best way to fix
    it). Also please note that the error didn´t occure when I used
    Flexbuilder 2.01 Hotfix 2 and the Flashplayer 9.0.47.
    The error just occured in myapp when I make a webservice call
    which response message includes a array of parameters.
    There is one workaround in the WSDL definition of the
    parameters, cause the WSDL contains at this place a <choice>
    tag, which is just partial supported by FLEX. The workaround for
    this is to use an own wsdl for the flex client where the including
    tags use attributes for minOccurs="0" maxOccurs="1" .
    The console window from FB3 shows (beneath some hundred stack
    entries) the following error:
    VerifyError: Error #1068: iwp.myapp.searchform.MySearchForm
    and iwp.myapp.searchform.MySearchForm cannot be reconciled.
    at
    iwp.myapp.searchform::MySearchForm/getSearchFormResultHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\flex\sdk\frameworks\ projects\rpc\src\mx\rpc\AbstractOperation.as:196
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\flex\sdk\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:198
    at
    mx.rpc::Responder/result()[E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.a s:48]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Asy ncRequest.as:81]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\flex\sdk\frameworks\projects\rpc\src\ mx\messaging\channels\DirectHTTPChannel.as:387]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    I really appreciated if somone could help me with this or has
    an idea how I can go on.
    ( one Question Is there a way to get the "open source"
    sourcecode before FB3 is released?)
    best regards
    kcell

    Hi all,
    today I found the reason for the crash, whcih occure when my
    app called the webservice function in the new flashplayer 9.0.115).
    The reason was that in the ResultHandler-function of the
    webservice call there were nested "switch" conditions used and in
    two of the "case" branches a "break;" missed. So the problem could
    easily be fixed, but I just want to inform people if the got a
    similar problem they should try to start the problem with "empty"
    Result/Fault Handler functions.
    ( the old version (9.0.47) seems to be more robust against a
    missing "break;" , but for sure have other leaks and of course
    features)
    so kepp on flexing ;)
    best regards,
    kcell

  • How does the ActionScript API, Eclipse IDE, Flex SDK, Cygwin & Flex Builder all communicate??

    Whats up Everyone! As you might've immediately recognized from the title of this thread I'm new to developing apps with Flex.....
    If I've succesfully set up my development environment (Flex SDK, Eclipse IDE, JAVA SDK, Apache Ant, Flash Player, etc.....) & checked out the source code using Subversion, can I start developing my app using the ActionScript 3 API using Eclipse? & how do those different SDK's & programs communicate? How should they be setup?

    If you're willing to buy into the FlexBuilder way of doing things, that's probably the way to go. In this case, you don't really need to worry about anything except FlexBuilder (at least for a while). I don't really have any experience in setting up a project with a server component (I always set 'server type' to 'None' and configure this manually), but other than that, the experience has been (fairly) smooth, and I'm someone who's pretty heavily biased towards the command line. FlexBuilder takes care of most of the Flex compiler options, tracking different SDK versions (I have three different ones installed), offers code completion and navigation tools, etc.
    To get some of the terms straight (I'm not sure how familiar you are with these, since you just threw them out there--pardon me if I'm being patronizing):
    * the ActionScript API: the function and class definitions built into Flash Player (fl.*) and the Flex standard library (mx.*)
    * Eclipse: a Java IDE, the core of FlexBuilder
    * Flex SDK: the Flex standard library, the mxml and compc flex compilers, some ant tasks for build automation, etc.
    * Cygwin: this does not really have anything to do with Flex specifically, as far as I'm aware--it's a *nix emulation layer for Windows
    * FlexBuilder: the Flex IDE from Adobe, built as a plug-in to Eclipse
    FlexBuilder is available in standalone (i.e., pre-bundled with Eclipse) and plug-in versions. Both versions include the SDK. If you're just starting out, I would suggest a FlexBuilder standalone trial, and follows some tutorials out there (or, really, just chose "new Flex project" and explore). In this case, you don't really have to worry about installing or configuring anything else to get started.
    Note also that for the upcoming Flex 4, FlexBuilder has been renamed Flash Builder (but I would stick with Flex 3.4 or 3.2 right now unless you really likethe bleeding edge).

Maybe you are looking for

  • SQL Loader and whitespace issues

    Hello users, I've got an issue that I know is breaking based on a comments field, which allows nearly every type of character in it. Long story short, I'm trying to upload an Access table, turned to .csv file into Oracle via SQL Loader. I'm able to d

  • Regarding  error in the INTEGRATION ENGINE URL

    hai guys pls go thru this question carefully,. when i click on INTEGRATION ENGINE  and  BUSINESS PROCESS ENGINE IN RWB ,integration engine is in yellow colour status instead of green colour and th result of SELF TEST IN RWB is: Is WEBSERVICE security

  • PO Print Output Message Automatically Without Maintaing Condition Record

    Hi Team, User have the Requirement When Any New Vendor Create in SAP System Automatically Printout When they Create PO Without Maintaining Condition Record throgh T-Code MN04.It Possible throgh Config Side or Need to Take help of ABAP Team. Please he

  • Content server and Images

    Hi... we've found some odd behaviour with content server and I'm wondering if anyone else has had similar experience. Our installation is spread accross a number of servers, we have a front end portal/image server with Content Server installed on one

  • Control presence - function change with platform

    Hi Folks, I have a form with two controls that have the Object Presence set to Visible (Screen Only). The controls do not print in Acrobat 9 Pro or with Reader X, but they print in Acrobat Standard 9 and Reader 9. This is the case whether the form is