Apache Flex

Apache Flex is a highly productive, open source application framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and devices (including smartphones, tablets and television). It provides a modern, standards-based language and programming model that supports common design patterns suitable for developers from many backgrounds. Flex applications can be deployed to the Adobe Player in the browser, Adobe AIR on desktop and mobile devices or to native Android, iOS, Windows or Mac applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello guys,

i need necessary that the column widths are proportional to the size of data.
is to do this in Flex?
I have built an Air/Flex app that connects to a web server using ColdFusion and SQL. At the moment admin users can see who and what time a client has logged in by querying the database for this login information. What I really need is to be able to see live who is connected. What would be the most efficient and easy way of doing this?


Can any one provide me sample code for real time currency converter from other currency to USD in flex.


I need to have horizontal scrollbar in AdvancedDatagrid next to the freezed columns.

Consider I have 15 columns.First 5 columns I have freezed(fixed) and the remaining 10 columns I am un freezing. Here I want to show horizontal scrollbar next to the freezed columns so that i can scroll down to see rest of the columns which were not visible earlier.
Using lockedColumnCount propery i have freezed upto 5 columns.

Could you please provide me some sample code.

Hello guys, I am having some problems with this, I am using stagewebviewbridge, the problem is that when I reload the stage (navigator.pushView) I get Error #1009, here is my code (it works fine on first load) at the line with addChild.
			import es.xperiments.media.StageWebViewBridge;
			import es.xperiments.media.StageWebViewBridgeEvent;
			import es.xperiments.media.StageWebViewDisk;
			import es.xperiments.media.StageWebviewDiskEvent;
			import flash.media.StageWebView;
			import mx.events.FlexEvent;
			protected var webView:StageWebViewBridge;
			private var _stageComponentHeight:Number;
			private var _stageComponentWidth:Number;
			private var _pageWidth:Number;
			private var _pageHeight:Number;
			public var tracetxt:String;
			protected function view1_addedToStageHandler(event:Event):void
				StageWebViewDisk.setDebugMode( true );
				// if we need debug mode assign it before initializaton
				// StageWebViewDisk Events. First time app launches it proceses the filesystem
				// As it can take some time, depending of the filesize of the included files
				// we provide 2 events to know when process start/finish
				StageWebViewDisk.addEventListener(StageWebviewDiskEvent.START_DISK_PARSING, onDiskCacheStart);

Open in new window

The boss threw me a new one today:  Take this site somebody 2 developers ago created, set it on a new server, and change the contact info.

Cool ... except, it's in Flash.  I have both the SWF and the FLA files.

I don't have a budget for Adobe CS5.  All I need to change is a stupid phone number!

What can I use to edit the FLA and recompile the SWF?  Or is that even the right approach?  I downloaded FlashDevelop, but then read it won't open FLA files.

I need to set initial value in text field like this calleeInput.text = application.hisusername;
For now this value shows only when you connect, disconnect and than connect again.
This value is from html, flash parameters.
Where do I need to put calleeInput.text = application.hisusername; to set this value as soon as this field shows?

<?xml version="1.0" encoding="utf-8"?>

	Copyright 2008-2011 Adobe Systems Incorporated
	All Rights Reserved.

	NOTICE: Adobe permits you to use, modify, and distribute this file
	in accordance with the terms of the license agreement accompanying it.
	Author: Jozsef Vass
<!-- Adobe labs limit width to 520 pixels. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()" backgroundColor="0xffffff" width="520" height="630">
			import flash.events.SampleDataEvent;
			import mx.charts.chartClasses.StackedSeries;
			import mx.collections.ArrayList;
			import mx.formatters.DateFormatter;
			import mx.core.FlexGlobals;
			import mx.controls.Alert;
			import mx.utils.StringUtil;
			// rtmfp server address (Adobe Cirrus or FMS)
			//[Bindable] private var connectUrl:String = "rtmfp://operamundo.ch:1935/peer2peer-chat";
			[Bindable] private var connectUrl:String = "rtmfp://p2p.rtmfp.net/b2ab58603fbd9fb7827128c0-5fa83c739c8f/";


Open in new window

which adobe product

can create checks to pay sales people a commission for providing referrals.

I have never used this product but I know a business that says that they previously have joined a $150 a month service for many months to pay their sales people for getting customers to their video membership website
Referencing this thread: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_27650814.html

I have a similar issue: inherited SWF without source from previous contractor who lost on recompete. Company purchased Sothink and decompiled SWF to both FLA and Flex. I created a new Flex project in Flash Builder Premium, but can't get this to compile. Decompiled FLA is also not useful. Lots of AS3 files. What is the secret sauce to recovering SWF in a usable format in Flash Premium Builder? I tried compiling directly in Flex but no joy. Can someone provide a step-by-step for using Premium Builder and/or Flex from DOS with decompiled Sothink source files? Many thanks.
Hello, here is my problem explained with an image:
problem with positionYou can see when selecting my second button it makes a scroll-text-resize area, that should not be there.
Here is my code:
<mx:ToggleButtonBar id="mapTypeToggleButtonBar" right="5" top="5" horizontalGap="0" selectedIndex="1" fontSize="10" toggleOnClick="false" dataProvider="{mapTypeViewStack}" />
	<mx:ViewStack id="mapTypeViewStack" y="{mapTypeToggleButtonBar.y + mapTypeToggleButtonBar.height}" width="{mapTypeToggleButtonBar.width}" x="{mapTypeToggleButtonBar.x}">
		<mx:Canvas id="mapView" label="Map" width="100%" height="100%" x="{mapTypeToggleButtonBar.x}">
			<s:RadioButton id="mapTerrain" label="Terrain" fontSize="10" x="{getmapTypeToggleButtonBarSelectedButtonX(mapTypeToggleButtonBar.selectedIndex)}"/>
		<mx:Canvas id="satelliteView" label="Satellite" width="100%" height="100%">
			<s:RadioButton id="satelliteLabels" fontSize="10" label="Labels" x="{getmapTypeToggleButtonBarSelectedButtonX(mapTypeToggleButtonBar.selectedIndex)}"/>

Open in new window

			public function getmapTypeToggleButtonBarSelectedButtonX(value:int) : int
				var i:int;
				var st:int = mapTypeToggleButtonBar.selectedIndex;
				var hold:int;
				for (i = 0; i < st; i++)
						hold += mapTypeToggleButtonBar.getChildAt(mapTypeToggleButtonBar.selectedIndex).width;
				return hold

Open in new window

How can I fix this, or is there a simpler way?

Thank you in advance.

Can anyone tell me how to show horrizontal scrollbar for AdvancedDatagrid next to freezed columns.

Please provide me some sample example.

Is there a way to simulate TouchEvent on AIR ?

I am developping a mobile game: TOUCHEvents work fine when I run the game on mobile.

I would like to test/debug on AIR : is there a way to test it on AIR ?

I am trying to achieve a simple throw effect in as3:

I put my finger on the screen and then swipe it as if I throw an object.
The goal is to simulate a ball movement according to the swipe (direction, speed)

What getsure should I use ?
I tried TransformGestureEvent.GESTURE_SWIPE
But this just give me the direction (left right, top, bottom) and no velocity or force or speed.

Which are the options for developing on iPad?

Story: An IOS application was being developed for the iPad but the developer left and there is a hard time finding another one. The application being developed is still at its beginnings. Adobe Flex has great tools for developing great UX so we thought whether this is the way to go and deploy the Flex application on iPad. We have some developers on Flex. Also there are other libraries to write cross platform code which compile to IOS (eg: http://xamarin.com/).

I would like some insights from experts which are experienced with IOS and iPad as developers or consultants and do know about Flex and other options.

We need to choose how to develop in the next years so this is an important decision.
I used the following snippet to create a wrapper in FlashBuilder for an html/php application.

<mx:HTML id="myBrowser" location="" 
       width="100%" height="100%" />

Open in new window

I have a local server running to serve the PHP pages. The problem I have is that the html pages display perfectly except the ones that have PHP code in them. Is there something I'm doing wrong? I'm using FlashBuilder 4.6
I am very new to flex...

I have an .swf file. I do not have any other code etc related to that swf file....

Using Flash Decompiler (Trillix by Eltima Software) I found that has some actionscript files which is using  google library

I want to extract complete code/project from that swf, Then i want to import the new google maps library and recompile using that new google maps library and generate a new swf file. how do i do that ?

Please let me know ...

thanks a lot
My goal is to automate, using client-side scripting only, an existing, Flash-based, web-hosted, user interface.

A few caveats to the project:

•      The user interface is behind a network, so I cannot provide a working example, only examples of its functionality
•      Any  automating of the user interface must be executed client side
•      I cannot make a request to  the developer to upload anything server side to assist automating functions of the user interface
•      Access to the user interface requires a user name and password
•      I would prefer to use JavaScript  or XML to carry out the automation
•      I am open to the possibility of using existing, retail software, or free-lance work, if the price is reasonable.
-      Anything above $100 would be too expensive

The attached mock-up (fbui-mockup.jpg) details the procedure and steps of one of the tasks to automate:

1.      Under the "ITEM" column, "ITEM3" is selected
2.      Once "ITEM3" is selected, the item’s available assets are listed
a.      In this instance, it is a text-based asset
        b.      “ASSET 1”
3.      Once the “ASSET” is selected, its corresponding properties to edit become available
a.      In the mock-up example, we will be editing “Asset 1 Text Example 2”
4.      To edit “Asset 1 Text Example 2,” it must be selected
5.      Once selected, you must click the “CHANGE” button at the bottom, which sends you to another screen inside the column to edit the text associated with “Asset 1 Text Example 2”
        a.      Once there, the user …
i have a 4 folders of code which  i need to configure as a website..it is kind of .net + flex website
The folders are -
1. One folder with Visual Studio Project (.csproj) which has files with extension .asmx, .asmx.cs .cs files
2. One folders with files with extensions .DS_STORE, .swf, xmls
3. One folders with files with extensions .html, .js & .swf files . This folder has the home page  homepage.html ....
4. One folders PDF and TIFF Files (just used to  show on the website)

What do i need to establish that website on IIS 7.5 on windows server 8 box

please help

thanks a lot

I'm building an Actionscript 3.0 application that allows the user to create vector based graphics. (Shape drawing, text, clipart uploads, etc). Once these graphics are complete, I want to be able to save them and bring them into Adobe Illustrator or CorelDraw or any other Vector based art program for editing.

What is the best practice for this?
I am trying to create a combobox with a checkbox for each item, but when i click the checkbox it does not change it's state.

I am using the follow code :

for the itemRenderer ( ComboCheckBoxBusesItemRenderer ):

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
            import BaseSelectionItem;

            protected function checkbox1_clickHandler( event : MouseEvent ) : void


    <s:HGroup width="100%" gap="3">
        <s:CheckBox selected="{ ( data as BaseSelectionItem ).selected }" click="checkbox1_clickHandler(event)" />
        <s:Label text="{ ( data as BaseSelectionItem ).label }"/>       


Open in new window

for the model :

    public class BaseSelectionItem extends Object
        public var selected : Boolean = false;

        public var label    : String  = "";

        public function BaseSelectionItem( selected : Boolean, label : String,  )

            this.selected = selected;
            this.label    = label;


Open in new window

and - the combo inside the application

<s:ComboBox id="comboSearch" width="130" 
                dataProvider="{ selectedDataProvider }" labelField="label" itemRenderer="ComboCheckBoxBusesItemRenderer" />

Open in new window

My issue is that the check box inside the renderer never gets selected.
I have adobe products (CS5, F=B4.5 & 4.6) installed in both my iMac and Mac Air.  I have noted that after installing these products on my Mac Air, I was no longer able to access Adobe URL by name (ie.www.adobe.com)  from my Mac Air; it would return the message "The requested URL is not found on this server.  Apache/2.3.22(unnix) DAV/2 Server at www.adobe.com Port 80.  I have to circumvent it by keing in IP instead (ie.  

I believe the name www.adobe.com has beeb defaulted to local host during Adobe products installation without my knowledge, however, I have no clue where the default setting is.  I have also compared local host files of both my iMac and Mac Air and there are identical.  Any clue on where the setting has been cahanged?
I need to retreive a tif image from mysql database and display it onto the front end which is Flash.
Hello experts,

I am trying for quite a while to detect where exactly does Adobe Flash player store the selected camera/microphone while broadcasting audio/video data to certain websites.

I have learned about the .SOL files in locations like:
    -- location_1: %UserProfileDir%\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\
    -- location_2: %UserProfileDir%\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\#

But neither of them keep data about the camera/microphone that was selected.

I've also looked into registry, but no luck finding what I need.

Many thanks,
I have a DataGrid with a ComboBox as an ItemRenderer for one of my columns. When the user selects a row, I want to get the ComboBox's selected value for the selected row on clicking Submit.The datagrid has many columns and user has to select one value for each row.How to find out the selected value of the combo-box??

Here is my code:

<mx:DataGrid id="namesgrid" width="834" height="354" dataProvider="{List}"
                  resizableColumns="true" draggableColumns="true"
                  doubleClick="onGridClick()" doubleClickEnabled="true" x="0" y="0">
                        <mx:DataGridColumn id="bid" headerText="BName" dataField="branchdesc" width="100"/>
                        <mx:DataGridColumn id="poid" headerText="P-ID" dataField="proddesc" width="100"/>
                        <mx:DataGridColumn id="acid" headerText="No" dataField="accountno" width="80"/>
                        <mx:DataGridColumn id="nac" headerText="Name" dataField="mainpersonname" width="275"/>
                        <mx:DataGridColumn id="art" headerText="Type" dataField="recordtype" width="200"/>      
                <mx:DataGridColumn id="cmbtaskstatus" headerText="Status Change *" width="200"
                       editable="true" editorDataField="value">
                                  <mx:ComboBox color="#000000">

When i open any document of my mine with Adobe X reader - there is a small side bar of functions or information which is on the right hand side, I want to remove that if possibe - is there anyway that side bar can be used??

Please see attached document to see what i mean.....

Apache Flex

Apache Flex is a highly productive, open source application framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and devices (including smartphones, tablets and television). It provides a modern, standards-based language and programming model that supports common design patterns suitable for developers from many backgrounds. Flex applications can be deployed to the Adobe Player in the browser, Adobe AIR on desktop and mobile devices or to native Android, iOS, Windows or Mac applications.

Top Experts In
Apache Flex