Flex Builder 2 Deployment Examples

Hello,
I'm a newbie and am wondering if anyone can point me to
examples for deploying Flex 2 apps to a public web server.
I am wanting to start with the simplest case, with no server
side scripting or database connectivity and then add that later.
Specifically, I was wanting to know if I simply need to copy
my project folder up to the server via FTP and that should work. I
think I read that there is a wrapper that has to be
generated/created but after doing that, is that all I
"theoretically" need to do??
Thanks,
Bob

After you compile your file. Flex 2 should produce a .swf and
html files. Theoretically all you have to do is upload those 2
files to your server and that will produce the most basic web app.
Those two files should be normally located in the bin folder in
your project

Similar Messages

  • How to use Flex builder with blazeds and JBoss

    Following the instructions it is pretty easy to set up a project to work with the turnkey tomcat. However, I am having problems with JBoss because the app has to be deployed as a .war file. I can create a war file manually and depoly it no problem. How do I get flex builder to deploy to a war file? I want to be able to debug in flex builder and run at the click of a button.

    Hi,<br /> I am trying to configure BlazeDS with JBOSS Application Server.<br /> I have downloaded BlazeDS binary version - blazeds_bin_3-0-0-544.zip from Adobe. But in the installation steps, it says that copy blazeds.war, samples.war and console.war into <JBOSS_HOME>/server/default/deploy folder. But in this zip, it contains only blazeds.war file only. I have copied it to <JBOSS_HOME>/server/default/deploy folder.<br /><br />I have restarted JBoss. I didn't get any error. But when i give <br /> http://localhost:8080/blazeds ... i am always getting "Page not found 404" error.<br /><br />Please help me, if you have detailed steps to configure BlazeDS on JBoss.<br /><br />Thanks for your time.

  • How to Build and Deploy Flex application in EP6

    Hi All,
    Can anyone tell how to build and deploy Flex application in EP6.
    I want to build a normal application in flex and present it through iviews. How do I configure my Iiview to have flex component running in Portal Environment.
    Thanks
    Deepak

    A good book to start with is Enterprise JavaBeans by Monson-Haefel (O'Reilly press). It covers deployment of EJBs on J2EE servers. Also check out sites specific to your server, sometimes they have specific requirements (like Weblogic).

  • How to integrate a flex build in a web application running on jBoss 5.1

    Hi,
    I have two flex builds for a messaging application that I have to integrate with my web application running on Jboss 5.1 . I have tried hot deploying the builds into the default deploy folder of Jboss,but that approach doesn't seem to work(maybe because I may need to make war out of the flex builds). Can someone tell me an approach of how to accomplish this. Can I leverage BLAZEDS for this purpose.
    Thanks
    Rohit Kumar

    Hi,
    Go through Re: Web Dynpro and Smart Forms.
    Regards,
    Satyajit.

  • Widget creation on Flex builder and related problems - need some help

    Hi all.
    I am trying to create a widget like application and it seems
    I have made a mistake. As you know, desktop widgets are like small
    stickers, they do not appear on taskbar and can be hidden or
    docked.
    The problem is that I created an AIR application using Flex
    Builder 3 Beta and now I cannot find how to make that application
    behave like custom-shaped window. My app appears on Windows taskbar
    and I don't want it. When I drag the window (which is a custom
    shape) it shows that nasty dragging rectangle around it.
    As far as I found out (and tried it) I need to use cod like:
    var initOptions:NativeWindowInitOptions = new
    NativeWindowInitOptions();
    initOptions.systemChrome = NativeWindowSystemChrome.NONE;
    initOptions.type = NativeWindowType.UTILITY;
    to hide my window from the taskbar. But it seems I cannot use
    such a code for class mx:Application. Or can I (would be grateful
    for some idea)?
    The main question is:
    if I want to migrate my app to that NativeWindow based
    solution - then NativeWindow is not an mx class and I cannot find
    how I will use Flex Builder Design mode to arrange my GUI elements.
    Is it somehow possible to wrap my mx:Application inside
    NativeWindow and do not have to migrate the design from mxml files
    to pure ActionScript?
    The second issue - if I want to use some kind of subforms -
    like widget settings window - when I move that window with the
    mouse, it is being clipped to the region of my Application. Does
    that again mean that I need to use NativeWindow for creating such a
    "Widget settings" dialog window?
    Thanks for any ideas (and especially for useful links and
    examples :-) )

    Hi all.
    I am trying to create a widget like application and it seems
    I have made a mistake. As you know, desktop widgets are like small
    stickers, they do not appear on taskbar and can be hidden or
    docked.
    The problem is that I created an AIR application using Flex
    Builder 3 Beta and now I cannot find how to make that application
    behave like custom-shaped window. My app appears on Windows taskbar
    and I don't want it. When I drag the window (which is a custom
    shape) it shows that nasty dragging rectangle around it.
    As far as I found out (and tried it) I need to use cod like:
    var initOptions:NativeWindowInitOptions = new
    NativeWindowInitOptions();
    initOptions.systemChrome = NativeWindowSystemChrome.NONE;
    initOptions.type = NativeWindowType.UTILITY;
    to hide my window from the taskbar. But it seems I cannot use
    such a code for class mx:Application. Or can I (would be grateful
    for some idea)?
    The main question is:
    if I want to migrate my app to that NativeWindow based
    solution - then NativeWindow is not an mx class and I cannot find
    how I will use Flex Builder Design mode to arrange my GUI elements.
    Is it somehow possible to wrap my mx:Application inside
    NativeWindow and do not have to migrate the design from mxml files
    to pure ActionScript?
    The second issue - if I want to use some kind of subforms -
    like widget settings window - when I move that window with the
    mouse, it is being clipped to the region of my Application. Does
    that again mean that I need to use NativeWindow for creating such a
    "Widget settings" dialog window?
    Thanks for any ideas (and especially for useful links and
    examples :-) )

  • Error: The folder does not contain a valid Flex Builder Project.

    HI All,
    My first Post here. I am new to Flex Hardly 10 days old. I
    want to open the flexstore project in flex builder 3 and could not
    able to do so.
    What I did: file->import->.... got the error msg as
    "The folder does not contain a valid Flex Builder Project".
    also tried file->import->general->..... same error
    msg.
    I need your Help guys
    I downloaded the sample project from
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Thanks in Advance
    SAS
    Text

    "shakeb66" <[email protected]> wrote in
    message
    news:gknbn8$av9$[email protected]..
    > HI All,
    > My first Post here. I am new to Flex Hardly 10 days old.
    I want to open
    > the
    > flexstore project in flex builder 3 and could not able
    to do so.
    > What I did: file->import->.... got the error msg
    as "The folder does not
    > contain a valid Flex Builder Project".
    > also tried file->import->general->..... same
    error msg.
    > I need your Help guys
    > I downloaded the sample project from
    >
    >
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Try creating a new Flex project and dragging the files from
    the zip into the
    src folder. You may find that you need to rearrange things a
    bit, depending
    on how they set up the project, but this should get you
    started.
    HTH;
    Amy

  • Flash CS3 fl.* package cannot be used in Flex Builder 3

    Hi,
    I was very disappointed to find out that one cannot import
    the fl.* package, which is available for flash CS3. I found a work
    around by creating swc file and importing them, however it's
    disappointing that flash CS3 would have such a major advantage over
    Flex Builder 3 when building an Action Script 3.0 Application.
    Best, E

    I've looked over that sample.
    Part of the problem is that I don't have access to
    mx.effects. I think this is because that example is a Flex 3
    Project and has a MXML file attributed to it. I opened a Flex 3
    project and was able to access mx.effects - but my project is
    different in that it's an ActionScript project - meaning, I opened
    an ActionScript project in Flex Builder 3. Apperantly the
    ActionScript projects don't have access to mx.effects.Tween. And
    niether do they have access to fl.transitions.Tween. It's strange -
    and I'm trying to find a way to access them by connecting the build
    path to the Tween classes somehow.
    My project preferences already have the fl.* folders in the
    build path. It just still doesn't seem to work.

  • How to put an image in a data grid in Flex Builder 2

    Hi All,
    I need to populate a data grid with some text data received
    from a web service and, in a particular column of the datagrid, I
    have to put an image depending of a specific data returned me by
    the web service.
    It seems that there is the possibility to add an image in
    data grid column with the cellRenderer properties, but this
    property is available only for ActionScript 3.
    I'm developing an application in Flex Builder 2 that run
    ActionScript 2 and cellRenderer properties is not available. Is it
    right?
    If no, I will can use this cellRenderer properties in my
    application. Please, can you show me an example?
    If yes, there is a way to insert an image in datagridcolumn
    with ActionScript 2?
    Thank you very much
    Regards

    Flex Builder 2 uses Actionscript 3.
    You will need to write a renderer for for this column.
    There are a lot of examples of datagrids with images in them.
    here is one from the livedocs
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=cellrenderer_072_28.html

  • Flex Ant SDK giving compile warnings not present in Flex Builder

    We have a project when  we complie from Flash Builder 4 it compiles as expected with no errors. However when we do an ANT build on a build machine with no Flash Builder installed, the same code (checked out from SVN) and same Flex SDK we have started to get an error: "Error: Access of possibly undefined property labelName through a reference with static type ..."
    If I Run As the ant build from inside eclipse it builds fine and no errors (I verified the SDKs are the same). I can "work around" this by using show-actionscript-warnings="false" in the build.xml file, I'd rather not have to do this.
    The error labelName property in the component that is referenced in the error is indeed marked public and it is [Bindable]. In fact the component that it says this error is associated with hasn't changed in a couple months.
    Some other info that might be of interest on our system that builds the deploy version:
    1. Our build box is running mac os x (10.5.6), Processor: 2GHz Intel Core 2 Duo, Memory: 2GB
    2. Flex SDK 4.1A
    3. Java version 1.5.0_13
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
    JavaHotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
    4. Ant -version: Apache Ant version 1.7.0 compiled on February 29 2008
    Any ideas as to what could be causing this "phantom" error in our module? How to fix? Hints or other avenues to pursue?
    Thanks,
    Mike Weiland

    So it turns out I need to overlay the latest SDK into the Flash Builder directory completely, not just the files I was messing with before.
    In flex builder, go to the directory where the SDKs are installed.
    On my system this is
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks
    On a Mac, it might be
    /Applications/Adobe Flash Builder 4.5/sdks
    There should be a 3.6.0, 4.5.0 and a 4.5.1 present.
    Make a copy of the 4.5.1 directory.
    Download the AdobeAIRSDK from
    Windows -  http://airdownload.adobe.com/air/win/download/latest/AdobeAIRSDK.zip
    Mac - not sure what the link is.
    Unzip this file, then overlay the contents into the 4.5.1 directory. There are 8 directories, and 2 files. The target 4.5.1 has 10 directories, and 7 files (on my system)
    In Flash Builder, project properties need to be tweaked.
    The Flex Compiler tab - Check [Use a specific SDK:], and pick Flex 4.5.1 in the dropdown.
    And in the Additional compiler arguments add
    -swf-version=12
    In your code, to use the AEC, pick the Enhanced Microphone, as in
    microphone = Microphone.getEnhancedMicrophone();
    Now if only I could figure out what all the settings do and which one's I need to tweak for our environment... loads of experimenting.
    Mark.

  • Getting started with Flex Builder, BlazeDS and Eclipse

    Hi,
    I'm a java developer looking at RIA for the first time. I'm really excited about BlazeDS and object remoting, but I can't get a working dev environment together. I'm assuming I should use Flex Builder for the client code, Eclipse Europa for the java webapp code, and deploy from both IDEs into the BlazeDS-equipped turnkey-Tomcat. I haven't found a tutorial explaining how to deploy a new webapp with this setup.
    The turnkey-Tomcat sample app works fine. Trouble starts when I try to create  a new project in Flex Builder. I don't understand the 'debug' deployment that Flex Builder does. Why are there 2 versions of my app, the regular and the debug versions? What is exactly the project structure that I'm supposed to have in Tomcat?
    The specific error I encounter when trying to deploy a new Flex project is this:
    [MessagingError message='Destination 'productService' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']
    I do have a default channel configured for my environment in services-config:
    And I do have a valid destination configured in remoting-config (I'm mostly interested in object remoting):
                test.ProductService
    Here's the client code:
    What am I doing wrong? Where can I get help on these specific topics? Also, does anyone have an Ant build file that would automate this sort of deployment?
    Thanks!

    Hi Peter,<br />I don't have problems passing JavaBeans to Flex. For collections, I used DataGrid, it displayed my collection seamlessly, except I don't get column headers, just a column index number. For receiving a single JavaBean, I had a little more trouble, until I tried to display it with a DataGrid: it displayed a single row that represented my data, with each java property name used as a column header, and object attributes were displayed as 'object'. These 2 experiences led me to these conclusions:<br />- for the collection, Flex converted each element into an ordered list of attributes<br />- for the single bean, Flex converted it into a hierarchy of Maps of attributes<br /><br />I didn't create a Flex value object. Flex is doing it automatically,very much like in JavaScript/JSON: dynamic objects.<br /><br />Here's the remote object markup:<br /><br /><!-- We target the remote Java object through BlazeDS gateway: --><br />     <mx:RemoteObject id="myRemoteObject" destination="productService" <br />                          fault="Alert.show(event.fault.faultString, 'Error');"><br />          <mx:method name="getProductsCount" result="setProductsCount(event)"><br />               <mx:arguments><br />                    <arg1>{productSC}</arg1><br />               </mx:arguments><br />          </mx:method><br />          <mx:method name="getProducts"><br />          <!-- search params are wrapped in a model, ProductSC (will be converted to a Map on <br />                the server side by BlazeDS): --><br />               <mx:arguments><br />                    <arg1>{productSC}</arg1><br />                    <!-- This works because we declared these to be Bindable: --><br />                    <arg2>{pager.pageSize}</arg2><br />                    <arg3>{pager.currentPage}</arg3><br />               </mx:arguments><br />          </mx:method><br />          <mx:method name="getProduct" result="goToView()"><br />          <!--<mx:method name="getProduct">--><br />               <mx:arguments><br />                    <arg1>{selectedRecordId}</arg1><br />               </mx:arguments><br />          </mx:method><br />     </mx:RemoteObject><br /><br />And here's the dataGrid that displays the bean collection:<br /><br /><mx:DataGrid id="myDataGrid" <br />                               dataProvider="{myRemoteObject.getProducts.lastResult}" <br />                               change="selectRecord();"<br />                               width="100%" height="100%" ><br />               </mx:DataGrid><br /><br />Let me know how it goes, I'd be glad to assist if I can.<br />Miguel

  • Custom Components and Properties in Flex Builder Design View

    How do I create a custom component with custom properties
    that renders well in Flex Builder design view?
    This is a simple HelloWorld example of what I am trying
    below. Here is the HelloWorld.mxml file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="500" height="500">
    <mx:Script><![CDATA[
    [Bindable]
    public var message:String;
    ]]></mx:Script>
    <mx:Label x="100" y="100" text="{message}" />
    </mx:Canvas>
    And then when I use it in another mxml file, the design view
    does not show the label with the 'Hello World' value - instead it
    just shows {message} in design view where the label is located.
    When I run it as a compiled app in flash, the 'Hello World' is
    displayed correctly:
    -- HelloWorldTest.mxml --
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:views="mypackage.*" width="500" height="500">
    <views:SimpleLine message="Hello World."/>
    </mx:Canvas>

    design view does not do any variable assignments or function
    evaluations, so you won't be able to see it even if you don't use a
    custom component.

  • Can't install Flex Builder 2 plugin in Eclipse 3.3/Europa

    [I hope Adobe reads these forums. I tried to submit this as a
    customer service request, but the customer service request form
    kept telling my I had to enter my First Name, Last Name, and Email
    address, even though I _had_ entered them!]
    I can't seem to install the Flex Builder 2 plugin in Eclipse
    3.3/Europa. I had it installed fine in 3.2/Callisto. I uninstalled
    it from there, installed Europa, then tried to install the plugin.
    After I selected the Eclipse folder, I got the error:
    "Please choose an existing Eclipse folder (3.1 or greater) to
    be updated. This folder must contain eclipse.exe and the standard
    folder named "configuration"."
    All three conditions (3.1 or greater, eclipse.exe and
    configuration) hold in my case, so I don't know what the real
    problem is.

    Actually it's quite simple. But you have to be warned. This
    doesn't guarantee a bug free Eclipse setup and it isn't supported
    by Adobe in any way. It is how-ever your only shot at getting
    Eclipse with Flex Builder 2 AND php-development support, as Zend
    has stopped deploying the php-development-requirement for Eclipse
    3.2 (or at least I haven't found it in their archives.)
    Flex Builder 2 simply checks for some files to see if the
    directory you want to install to exist, so it recognizes the
    directory as an Eclipse 3.1+ directory. Eclipse 3.3 however misses
    the file startup.jar. If you simply copy startup.jar from an
    Eclipse 3.2 directory into the 3.3 directory, Flex Builder 2 will
    install in the 3.3 directory.
    Again. This is not supported in any way by Adobe.
    For more info, Google on: eclipse-3.3 Flex-builder-2
    startup.jar
    http://www.google.com/search?hl=en&q=eclipse-3.3+Flex-builder-2+startup.jar
    Kind regards.
    PS. I would still like to have an Adobe Representative answer
    the simple question: Is Adobe or is Adobe not working on getting
    Flex Builder 2 to work on Eclipse 3.3? A simple yes or no will
    suffice.

  • Flex Builder 4.5 Premium license not working for automation - anything else to try?

    So I'm getting the message when I try to record/run a test that the "License not present.  With the trial verison only limited replays are allowed."  I have a valid license key for Flash Builder 4.5 premium edition.  I have read many forums on this subject but none of them help me.  I compile my project either using Flash Builder 4.5 or an ant script invoking mxmlc.  I have modified my flex-config.xml to include "flashbuilder45", and my given serial number with and without dashes (and other combinations).  I do not have a license.properties file.  I'm not sure what else I can do.  I have already reinstalled Flash Builder 4.5.  I am now trying Flash Builder 4.6 with the same results.  This serial number is a group one good for 5 boxes.  My next step is to request a replacement serial number from Adobe, since I can't think of anything else that could be wrong with my setup.

    1.  It is a premium which I can see when I view "My Products" on this adobe site.  I can enable Network monitor and when I do my application hangs (I've read a bit on how to get this working properly, but I don't need it)
    2. It is an FB serial number.  Here is what it is under My Products:
    Serial Number: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
    Application or font: Flash Builder Prem
    Version: 4.5
    Platform: Multiple Platforms
    Date: June 7, 2011
    3. Yes I have.  I have uncommented
    <licenses>
          <license>
             <product>product</product>
             <serial-number>serial-num</serial-number>
          </license>
       </licenses>
    which sits one level down within <flex-config/>
    Under product I have tried "flashbuilder45", "flashbuilder4", "flashbuilder46", and even "flexbuilderXX" a few times.  Under my serial number I have entered the serial number as shown in My Products - I have tried tried it with dashes, and without.
    I found this post
    http://stackoverflow.com/questions/6993096/how-to-properly-define-the-flashbuilder-4-5-pre mium-license-for-a-maven-flexmojo
    which says "the serial-number element is NOT the license number that we got from Adobe (and that we use when installing the Flash Builder tooling) but it is a derived form of that license number that can be found for example in the license.properties file of a developer that has Flash Builder installed".  However I have read conflicting reports about this.  At any rate I do not have a license.properties file, which I assume was discounted after flex builder 3.x.
    4. Yes, using FlashBuilder and my ant script.  I have also cleaned my browser's cache.  The problem persists.

  • License not present.  With the trial version only limited replays are allowed -- Flex builder 4.5 Premium eclipse plugin with SDK 3.5

    Hi ,
    We are using Flex SDK 3.5 and using eclipse to build the war in order to make it automation compatible , Right now we tried with Premium version of Flex Builder 4.5 eclipse plugging to build and make application automation capable. But we are facing issues in terms of license , After deploying the automation compatible build we are getting error message "License not present.  With the trial version only limited replays are allowed".
    Previously we are using Flex Builder 4.0 and everything was working fine .
    Is Flex Builder 4.5 doesn't support SDK 3.5 ?
    Please help .
    Thanks in advance
    Thanks and Regards
    Sunil Kumar

    with trial version (FB basic) you can record/replay only 30
    script lines. You need to buy FB pro license to remove this
    restriction

  • Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?

    Hi,
    I'm trying to set up a Flex environment with:
    Flex Builder 3 Beta 3 stand alone
    WTP (from eclipse update manager)
    LCDS 2.5 (with JRun)
    JBoss 4.2.2GA
    At this moment I successful installed everything (but not set up). I added WTP at Flex Builder3 (with the eclipse update manager). I copied the two flex-tomcat files in jboss.
    Then in Flex Builder 3 I created a new Flex Project. In the wizard first window, I selected J2EE, Livecycle and WTP. Then in the next window I need to configurate the J2EE server.
    I couldn't find any information/tutorial for this window? Is there a tutorial for this?
    This window ask me:
    Target Runtime: I created a new one for JBoss 4.2.2 (during this process flex builder asked me to add a project but actually I'm creating this project so I hadn't any project to add (??)).
    ContextRoot: name of the project I'm creating (default). Is it good?
    Content Folder: the default is "WebContent". Is it good?
    Flex War File: What is that? Where do I find it?
    Thanks a lot,
    Jerome

    The settings you mention all sound fine, but the I believe the Flex War file may be what you referred to as the flex-tomcat files (specifically the one should be called flex.war from the install folder).
    You don't need to deploy the flex.war file to JBoss manually, when you create a project, you just select the file in the wizard and it is extracted and used as a template for the new project. In fact, it may cause a port conflict with your project if you do deploy manually it (unless you tweak some of the config files), so it's probably worth removing it from the deploy folder if you did put it there. The other file, flex-admin.war, can stay without causing issue.
    The closest to a tutorial that I am aware of is if you search "New Flex Project" in the help system, it talks about what each of the options should be when creating LCDS projects.

Maybe you are looking for

  • Printing problem with 11.0.02

    I have been sent 2 pdf files. I have windows 7.  Both files open, both can be saved.  One I can print but the other when I try to print by any means just flashes off the screen and Adobe Reader shuts down.  Some times I get a message that Adobe has a

  • Linking Purchase Orders to Consumption Orders

    Hi MM Gurus, I have the following requirement, Currently the stock of item A is Zero. Now User 1 places a PM Order requesting 5 units of A. Later User 2 places a PM Order requesting 8 units of A. But the first order has a higher priority. A purchase

  • Need a Advice for move from  peoplesoft to SAP BI

    Hi Experts, I am working as a peoplesoft Technical consultant in a MNC past 2 yrs . I want to change my domain to SAP BI. I need a suggestion. SAP BI Training already completed. But in my it's not possible for change so please advice how i will highl

  • Check Browser Compatibilty  Problem with CS5.5

    Hi, I am having problems with the Check Browser Compatibilty function, it seems to pick up the issues in an HTML file but ignores errors in CSS files. I have run the check on CS4 and it work fine. Example of the File @charset "utf-8"; /* CSS Document

  • FP2000 status light stays lit red can not communicate

    I just tried to update the software on a FP2000 not the status light stays read and can not communicate. any ideas. Solved! Go to Solution.