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

My first post hello world AIR app :-)
i can get a native window to do the minimise to taskbar but what i have is an irregular shaped app with transparent background and systemChrome set to none - the minimise to taskbar doesn't seem to work.

can anyone verify if you can do it - if so any pointers ?
hi guys

I have this code

public class PersonGrid extends VBox  
public var lookUp : PersonLookup = new PersonLookup() ;      

public function PersonGrid()

if (lookUp && lookUp.collection) {
Swiz.dispatchEvent(new ScreenEvent(ScreenEvent.PERSON_LOOKUP, Constants.DEFAULT_LOOKUP));

[Mediate(event="ScreenEvent.PERSON_LOOKUP_DATA_RECEIVED", properties="data")]
public function populateLookUp( data:Object ):void{
if (lookUp) {
lookUp.collection = data as ArrayCollection;

public function setData(data:Object):void {


Currently setData(data) is called first and then populateLookUp() is called next.
My requirment is i want to check ONLY after populateLookUp() is called i want to call loadData();
Any idea how i can do that?      
A refresh of an image from a remote server can be achieved with html.loader or StageWebView and a timer function. Then the refresh comes after each timer period. But how to load the first image before the first timer has started? Without that there is an awkward delay until the first timer refresh takes place!

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            <!-- Place non-visual elements (e.g., services, value objects) here -->
                  import flash.media.StageWebView;
                  import flash.geom.Rectangle;
                  var webView:StageWebView = new StageWebView();
                  public function StageWebViewExample() {
                        webView.stage = this.stage;
                        webView.viewPort = new Rectangle( 10, 10, stage.stageWidth, stage.stageHeight);
                  private function init():void{                        
                        var timer:Timer = new Timer(1000);
I have a database that needs to be updated periodically. My employer wants to keep a base instance of it in MS Access, and update one in a local SQLite table.

I've been able to grab all of the data out of the MS Access table (into XML), but when I try to insert it into the SQLite table, I get the error that there are too many terms in the compound select statement.

I know that SQLite limit compound select inserts to 500, but this database is over 150,000 rows. I'm at a loss for how to get the data moved over.

Anyone have any thoughts?

Here is the code that I was trying to use:
var sqlItem:String="INSERT INTO items (itemID,barcode,desc,brandNum,size,units,multQty,multPrice,price,brand,cat01,catSub,cost,srp,lastPriceChangeDate,lastScanDate,addDate,chgDate) ";
for each(var i:XML in itemList.item){
    sqlItem=sqlItem+"SELECT "+
    " UNION ";

Open in new window


plz find the attachments of sample image and code.

Plz modify the code accordingly.

I'm trying to setup a skin that will be used for all TitleWindow DropDownList fields. I have everything working except for the Drop Down List font size. I would like to make the Font Size a 8.

I've attached an image of how the DropDownList currently looks.

Drop Down List

DropDownList Field

<s:DropDownList id="CB_C1" x="268" y="58" width="200"
	skinClass="skin.skinTWDropDownList" enabled="{varLookupUniqueID==''}"
	prompt="Select an account..." change="checkAddCategory()"
	selectedIndex="0" tabIndex="3">
		<s:XMLListCollection source="{categories}"/>

Open in new window

DropDownList Skin

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

    Copyright 2008 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.
<!--- The default skin class for the Spark DropDownList component. 
      The skin for the anchor button for a DropDownList component 
      is defined by the DropDownListButtonSkin class.  
      <p>In a custom skin class that uses transitions, set the 
      <code>itemDestructionPolicy</code> property to <code>none</code>
      for the PopUpAnchor defined by the popUp property.</p>      
      @see spark.components.DropDownList        
      @see spark.skins.spark.DropDownListButtonSkin

Open in new window

I want to create a desktop app / dashboard - i guess it would be similar to tweetdeck.
I'm going to use the sqlite backend - but basically whenever there is an update - i want a little pop up to notify the user (if the app is running) ...

I am trying to view the date of birth that i retrieve from a MySQL database,
For Eg.

The DOB in the DB is: 30/12/1984
But when I retrieve the date from the DB to view it on my flex page it shows me the prior date 29/12/1984.

I am bit confused about this phenomena as it happens for a few records......

Thanks In Advance,
Savio Coelho.
I am using Flash Builder 4.6 to create flex 4 and ActionScript 3.0. This process creates a number of files for one webpage.

history folder

When my firefox browser first loads a page that has a flash upload form I created, the page shows a load bar for 30 seconds before the page displays the form. Every visit to the page after that displays the form near instantly.

When I visit other websites for the first time that have flash content, the pages don't take 30 seconds.

What could be the cause of this? Thanks.
I have a calendar which i toggle between the view of Day Week and month using ViewStack
I want to delete the previous view objects or unused memory when i am in an other view
all the views are custom components, which are loading several child objects at a time.
when i navigate frm day to month view the objects of the child view are still persisted.
I used removechild() method, but its not actually deleting the obj, but keeoing its reference.
which method is used to delete the unsused objs explicitally.
i'm going through this (in an attempt to my boss to justify using Flash Builder) -

and i'm hitting a hurdle with

	protected function piechart1_itemClickHandler(event:ChartItemEvent):void
				// TODO Auto-generated method stub
				responderSales.token = companyService.getAllCompanySales(event.hitData.item.region);
				var myArr:Array = [];
				myArr[event.hitData.chartItem.index] = 0.2;
				series.perWedgeExplodeRadius = myArr;

Open in new window

Access of undefined property series - but I have this

                  <mx:PieSeries displayName="Series 1" nameField="region" field="totals"/>

what's it complaining about?

 I am building a small mobile app using the Adobe Flash Builder Launch Pad tool which generates sample code for you.  

So what I've done is had it create a simple database example.

What THAT! does is, you enter some string value into an input field and click a button and when you do,  a bunch of SQL is executed that creates a table (if it does not exist), inserts the record into a local table and then automatically retrieves that inserted value and loads it as the dataProvider to a list component.

Works great!

HOWEVER!!!....when experimenting with that...I want to pull the data from the local .db it creates/inserts into and load that value into a string,  perhaps the ".text" property of an inputText field.

So I've tried a bunch of different things to do this.  I've tried clicking on the list item it automtically adds to and retrieving the .selectedItem  valiue.

I've tried storing the SQL-retrieved value into an ArrayCollection and then retrieving the value at  using  ArrayCollectionName.getItemAt(0).toString();

No matter what I do, it comes back into my String  variable as  [Object object]

This makes sense if you look at the bottom of this page where it shows what happens when you cast an Object to a String:  http://tinyurl.com/24cbhxt .

But there should be SOME WAY! for me to pull the value the user entered, which was written to the local .db, and put it into a String variable.  Right?  This seems like a very basic thing to do and in fact I…
Is there any way to list an app's local shared objects?  I know you can't list them all because of security, but I'm only interested in the objects that were created by my own app.
I have seen some posts on here close to this topic but nothing that has resolved my issue thus far.
I have a simple flex app that is pretty much a data grid that is populated by a list of xml files that is given by a php file on the server. Using firebug I have tracked the issue down to one location and that is where flash is trying to load the xml url to be parsed into the data grid.
The thing works on our QA but when it is in prod it it has issues. Part of the issue is that the location where the xml files need to be read are not web accessable meaning you can't type a url in a browser to view it, whereas on the qa you can, either way I made the URLs relative but it's still adding a domain to the front of it, example:

flash is fed this url to look for the xml file "../../../placemenxml/someFile.xml"
yet firebug is showing that flash is looking for "http://our.servername.com/placementxml/someFile.xml"

so where is the stupid "http://our.servername.com/" coming from?
I've tried adding <param name="base" value="."/> in the html page and that changes nothing for QA, the QA still has it's servername appended to the front as well.

fire bug says this as a response: "The requested URL /placementxml/someFile.xml was not found on this server", does this mean the relative "../../../" is not being applied? how can I make this work?
I have a user database setup in mysql and I want to list all username in my flash application, make the username click-able so I can retrieve each user information upon click on it.

I successfully got to display the list of all usersname using PHP, but I am not clear how to achieve my goal.

Any tips? (I am not strong on PHP)
How can I set a bridge between my flash key pressing function to a html form?

I'm looking at creating an application that will have a fairly complex UI (and must be nicely designed) that can potentially run on an ios device (Probably IPad2). The application will take user input and post this data to an inhouse web service and display returned information on screen.

I'm fairly certain that adobe air and flex would be a good way of doing this but want to check that it fills all the boxes?

- Powerful enough visually - Yes
- Able to run on ios - Yes (and can be easily run on other platforms i believe)
- Can easily call web services - I'm not sure about this exact process but i have seen other services being called. Can somebody expand on this point?
- Allows device state management - I think so
- Complexity - I have no experience with any adobe product so would need to estimate the complexity.
- Able to work on an internal network - this doesn't really fit under adobe i assume, but i am unsure whether ios apps can access internal network resources?

Has anybody any experience in ios dev with/without adobe air? Anybody care to add any insights?

Thanks in advance
I want to Develop a Calendar in Flex as this that http://flex-calendar.com/demo/#
Need Same functionality as in the(link) example,  i am not understanding how to proceed on it, i should start from scratch...
If possible can you guide me how to start wrking on it...
My project was done previously in flash builder 4.0 and the sdk used is 4.1  . now in my organization I am using flash builder 4.5.

Ploblem is i am not able to see the design view.

It is saying Design mode not supported . incompaitable sdk version.

I am using 4.1 sdk in FB 4.5.

If anyone know how to resolve it please let me know.
I have code that looks something like this

import flash.events.*;

//Blah blah, some code here

class StyleEventDispatcher extends EventDispatcher
  //etc etc

And I am getting the error: The definition of base class EventDispatcher was not found.

Since the EventDispatcher is supposed to be in flash.events, why is it telling me this? This is my first flex project so do I need to do something to tell it where the flash package is? Shouldn't it be there by default?

I inherited a SWF file with no source code, just the SWF file. I have paid versions of Sothink SWF Decompiler 7 and Adobe Flash Builder 4.6.

I can open the SWF file and see all the code. I can even find the place where the code is broken and think I know how to fix it. Sothink supposedly can edit the files right there but the edit button is always greyed out. The save as... works but just makes a copy of the broken SWF file. I've tried exporting as FLEX and as FLA and exporting the resources all into a folder but I get errors in Flash Builder when I try to open the files.

Anyone have experience doing anything like this and can tell me what I am missing?
I have a swf file which is exported from InDesign, but for some reason the string format is hard to search on.

I've tried using the search function I have with other swf files not exported from InDesign, and it works fine. Just to know if its possible to convert my swf into an earlier version of swf, so that mayb my search function will work..

I am using a MovieClip Component to load a swf file

I need to know how I can move the screen left or right when the user zooms in.

Dgofman: I am not using scroller because when I did usability testing, users did not like the fact that the page was bouncing around...

My code is as follows:

public function onSwipe(event:TransformGestureEvent):void{
				if ( event.offsetY == -1 ) {
					currentPage = pdfContent.currentFrame + 1;
				else if ( event.offsetY == 1 ) 
					currentPage = pdfContent.currentFrame - 1;
				else if ( event.offsetX == -1 ) 
				else if ( event.offsetX == 1 ) 

protected function pdfHolder_gestureZoomHandler(event:TransformGestureEvent):void
				var zoomFactor:Number = .1;
				if(pdfContent.scaleX < 2){
					pdfContent.scaleX += zoomFactor;
					pdfContent.scaleY += zoomFactor;
				if (pdfContent.scaleX > 1){
					pdfContent.scaleX -= zoomFactor;
					pdfContent.scaleY -= zoomFactor;

<mx:UIComponent id="pdfHolder" y="0" width="100%" height="100%"

Open in new window


I'm very new to flex and don't have a clue where to start. I have no coding knowledge.  

I'm using flex 4.5.

I need  to create a simple  Flex/Flash Builder application showing a true and false question using actionscript.

In my flex mobile app, I have a swf file that contains some hyperlinks. When the user clicks the hyperlinks, user is directed to the browser.

When the user returns to the app again, the swf file is loaded on page 1 as opposed to the page user left from. Similarly when the user goes from one tab to the next, instead of coming back to the same page it goes to the beginning

How do I set a global variable to keep track of which page was last viewed in the swf file?

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