Data/Services for beginners Comments Feed" href="/"/>

Tom Krcha's FlashRealtime

Test3Hey amigo!
I am Tom Krcha, Gaming Evangelist at Adobe. These are my notes

Flash Builder 4 and PHP
Data/Services for beginners

November 6th, 2009

Flash Builder 4 logo Application that you create in Flex 4 uses PHP and MySQL database. It shows the most simple and the most recent approach for working with data in Flash Builder 4/Flex 4. Basically it’s just a few clicks, which generate the necessary code. We use Flash Builder 4 Beta 2 introduced at MAX 2009.

This tutorial provides a base for working with data in Flex 4 - to understand the deeper options I recommend PHP and Flex tutorial by my fellow evangelist MIHAI CORLAN Flex for PHP developers [en].

Note: This article is English translation of my Czech article published at - Jak na to: SpojenĂ­ Flex 4 a PHP ve Flash Builderu 4 [cz]. It can contain some Czech titles or texts in demos, just disregard and use what fits you the best.

Required software

  • HTTP, PHP 5, MySQL 5 server (e.g. for Mac MAMP, for Win WAMP)
  • Flash Builder 4 Beta 2
  • Flash Player 10 (installed with Flash Builder 4)
  • Optional Zend Framework (if you do not have him Flash Builder will install itself 4)

Finished app (source code can be displayed using the View Source context menu in the application)


Data/Services panel

Flash Builder 4 introduced Data/Services panel, which simplifies working with data services like Web Services, PHP, ColdFusion, Java (Blaze DS, LiveCycle DS) or simple HTTPService.

Data/Services panel significantly speeds up the overall development of RIA applications. Manages connections with data and separates the code to work with services from your code. This approach allows you to create a RIA as E-shop a few days and with the administration.

Along with Data/Services there is a new Network Monitor panel for debugging and monitoring request/response data transfer between client and server.

Step 1 - Create a project in Flash Builder 4

File -> New -> Flex Project

Flex a PHP - nove

Enter the name of the project “ZdrojakFlexPHP, select Application server type “PHP” and click Next.

Make sure the HTTP server is running, set the Web root which is the root folder for the Web server. Also, set the Root URL - the address targeting Web root - and click Validate Configuration.

Leave the default settings in Compiled Flex application location and click Finish.

Flex a PHP - nove

If you haven’t Zend_AMF installed on your server, Flash Builder 4 will offer you to install it. Click OK.

Flex a PHP - Zend

Following code is generated. Declarations block contains services.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx=""
			   xmlns:mx="library://" minWidth="1024" minHeight="768">
		<!-- Place non-visual elements (e.g., services, value objects) here -->

Step 2 - Add data service

V panelu Data/Services klikneme na Connect to Data/Service.

Flex a PHP

Choose PHP a click Next.

Flex a PHP - Výběr služby

Click Generate sample PHP class.

Flex a PHP krok 2

Flash Builder 4 can generate PHP backend classes without writing a single line of code. Simply connect to the database and select the target table. It automatically generates class with all the basic functions according to the CRUD methodology (Create Read Update Delete). This step greatly simplifies the overall connection.

Fill in your access data. Click Connect to Database - available tables load up. Select table employees. Primary key emp_no should be chosen automatically. Click OK.

Flex a PHP - vygenerování CRUD třídy dle struktury datábáze

Security Information warns you with steps you should follow, when releasing production version. Click OK.

Flex a PHP - konfigurace PHP sluĹľby

Click Next. The following screen displays a list of available services, including functions and return types. Click Finish.

Flex a PHP - dostupné funkce

EmployeesService has been added to Data/Services panel. Together with this you can find EmployeesService.php on the server (in services folder) containing the following features:

  • __construct - establish connection
  • getAllIEmployees - returns all employees
  • getEmployeesByID - returns an employee
  • createEmployees - creates an employee
  • updateEmployees - updates an employee
  • deleteEmployees - deletes an employee
  • count - returns count of all employees
  • getEmployees_paged - returns employees with paging support - check ListPaged component

The code is set and ready to use. Just make few adjustments to getAllEmployees function (in EmployeesService.php) to enable database search (parameter $q).

public function getAllEmployees($q) {		
    $sql = "SELECT * FROM $this->tablename WHERE first_name LIKE '%$q%' OR last_name LIKE '%$q%' OR email_address LIKE '%$q%'";
    $stmt = mysqli_prepare($this->connection,$sql);
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->emp_no, $row->birth_date, $row->first_name, $row->last_name, $row->gender, $row->hire_date, $row->phone_no, $row->email_address, $row->job_title);
    while (mysqli_stmt_fetch($stmt)) {
      $rows[] = $row;
      $row = new stdClass();
      mysqli_stmt_bind_result($stmt, $row->emp_no, $row->birth_date, $row->first_name, $row->last_name, $row->gender, $row->hire_date, $row->phone_no, $row->email_address, $row->job_title);
    return $rows;

PHP is ready now.

Let’s move to Flash Builder and refresh the service using Refresh button. The changes will apply. Function getAllEmployees should now accept search string parameter q:Object.

Flex a PHP - refresh service

After restoring we have to set the correct return type. We

After refreshing we have to set the correct return type. Invoke the context menu on getAllEmployees, select Configure Return Type -> Use an existing data type from the drop-down box select the field staff - Employees[].

Step 3 - Create Flex UI for search

Lay out components List, TextInput and Button as on following figure and assign them the following ids: listSearch, txtSearch, btnSearch

Flex a PHP - nove

Drag getAlllEmployees from Data/Services panel and drop it on Button (btnSearch) - directly in Design view. This action generates an event handler with a service call. Instead of q pass txtSearch.text.

protected function btnSearch_clickHandler(event:MouseEvent):void
    getAllEmployeesResult.token = employeesService.getAllEmployees(txtSearch.text);

We have to bind search result to the list listSearch using dataProvider. Braces represent binding - if [Bindable] variable changes, the changes are automatically reflected. At the same time set the labelField to last_name. You can play with better label representation by adjusting labelFunction and itemRenderer - recommended to explore. Also note that we are working with lastResult - or the last result of the call.

<s:List x="10" y="40" width="280" height="329" id="listSearch" dataProvider="{getAllEmployeesResult.lastResult}" labelField="last_name"></s:List>

Test the app, if it does, what it is supposed to. It should look like this:

Flex a PHP

Step 4 - items edit

Move to Data/Services panel, invoke context menu on type Employee and choose Generate Form

Flex a PHP

Leave Make form editable checked and go Next.

Flex a PHP - nove

Choose items, you want to keep visible/editable and click Finish.

Flex a PHP - nove

The form is generated, take it and move it right. Add Save button (btnSave) and retitle the first button to Search

Flex a PHP

Similar way we add handler On change to the List (listSearch)

Flex a PHP

employee variable is set choosing an item from the list. Final code:

protected function listSearch_selectionChangedHandler(event:IndexChangedEvent):void
    employees = listSearch.selectedItem;

Step 5 - Save update

Drag-and-drop updateEmployee from Data/Services to btnSave. Change item to employee and thanks to two-way binding we have fully-editable of the item. Handler should look like this:

protected function btnSave_clickHandler(event:MouseEvent):void
    updateEmployeesResult.token = employeesService.updateEmployees(employees);

Final app preview:
Flex a PHP - zbytek

Facebook comments:


  1. Nice tutorial, should be very helpful for beginners.

    Comment by Lukas Nemecek — November 7, 2009 @ 6:19 pm

  2. Any way to use it with standard AIR (FLASH BASED) project? i’m get enought to see all this cool feature implemented only for flex side of developers, out there there are still As3 developer that don’t use flex framework..

    Comment by Snick — November 8, 2009 @ 7:36 pm

  3. It is a really nice tutorial. Too bad, for me, the configure php service dialog’s sample generation fails after I select the table name…it finds the table but crashes before the pk can be displayed.

    Comment by flipper — November 9, 2009 @ 2:55 am

  4. Flash Builder will allow you to create AS3 only projects, however the Data Services will only work on Flex projects.
    However with some sneaky modifications you can include the right libraries into a AS3 project to wrap the core web services (com.adobe.fiber).

    Try not to think of flash as different then flex .. You can still do everything you can in flash, in flex. Flex is simply an additional set of libraries.

    But check out the LiveCycle packages (com.adobe.fiber)
    go to: and in the top left, under filters select LiveCycle 3, then hit “show table of contents” on the top right. This will expose all of the com.adobe.fiber packages, which are currently the packages used when using the automatic code generation in flex builder.

    Comment by Method — November 9, 2009 @ 7:52 am

  5. We will figure it out. Let’s follow on here

    Comment by tom — November 10, 2009 @ 10:54 am

  6. Snick - it uses Flex classes for connecting to database. Flex is also set of RPC classes, thus it can’t be used outside of Flex.

    Comment by tom — November 10, 2009 @ 10:55 am

  7. Will this work on a shared server? I wonder if Zend Framework can be installed in shared web space.

    Comment by Phil — November 10, 2009 @ 4:21 pm

  8. Sure - just copy paste it … it’s just bunch of files.

    Comment by tom — November 10, 2009 @ 5:28 pm

  9. As noted on the adobe forums discussion, the issue I ran into must have come from using a version of php that was too stale.

    This is a great tutorial. Thank you for posting it!

    I also wonder about the zend amf component on a shared hosted server. Are we sure that because zend amf comes with flash builder 4, that it’s ok to deploy? Hope so.

    Comment by flipper — November 11, 2009 @ 2:57 am

  10. You can always download Zend framework from and use it. You don’t have to use Zend, which is installed by Flash Builder.

    Comment by tom — November 12, 2009 @ 10:43 am

  11. I didn’t realize that the zend framework was under an MIT license.

    Is there any reason that the techniques shown in the tutorial, and the flash builder data services, would be considered inadequate for production use? What I mean is, sometimes code generated by wizards is quick but not really robust. I remember when Ted Patrick made a blog post about the flex 3 crud wizard, some people commented that it was good for showing off flex 3 a bit but not worthy of consideration for a production app. (

    The features shown in this tutorial look pretty worthy to my eye but I’m very new to flex. I hope this stuff is robust enough for use in at least some production situations?

    Comment by flipper — November 17, 2009 @ 4:34 am

  12. The good thing is that Flex code is in this case [Managed] by Flash Builder 4. So you will never be touching it, which isolates it from bugs caused by developer.

    There is nothing better than go ahead and try it.

    Comment by tom — November 17, 2009 @ 3:07 pm

  13. Do happen to know if the Data Services tab in the flash builder IDE works with other data services? What if one is using weborb or BlazeDS?

    Comment by flipper — November 17, 2009 @ 6:44 pm

  14. Hi,
    This is very good example for those who are beginner in action script.
    This example help me a lot to connect php server.

    Comment by prashant kumar — December 17, 2009 @ 9:17 am

  15. when i’am in step “generate sample PHP service” (conect flahsh b. on mysql)

    .. i cliked in a button “connect to Database” , and this ‘fatal error’ is ‘show’ :

    Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\php\PEAR\Zend\Db\Adapter\Pdo\Abstract.php on line 0

    this happened wiht somemore else?

    what’s can be wrong???

    Comment by rafa — December 22, 2009 @ 8:10 pm

  16. this happened to me too….. i dont know wht s wrong…. :( i’m using XAMPP ….

    Comment by jullius — December 23, 2009 @ 2:46 am

  17. hi

    i am very new to flex so i followed this tut. i get this error in a dialog:
    Channel disconnected
    Channel disconnected before an acknowledgement was received

    what am i doing wrong?

    Comment by ron — December 24, 2009 @ 2:44 pm

  18. I went back to this example app which I built and had running in Nov and I too now get that error:

    Channel disconnected
    Channel disconnected before an acknowledgement was

    Comment by flipper — January 2, 2010 @ 9:22 pm

  19. Hi,

    Thanks for the tutorial but i have a few question.

    I am now developing online game and searching a way to save data to mysql from the game.

    Can i use flex for this purpose? Or i need to save it from as3 file etc?


    Comment by Ramzan — January 4, 2010 @ 10:38 am

  20. @Ramzan: Sure you can use Flex.

    Comment by tom — January 12, 2010 @ 12:21 am

  21. Guys, there has been some problems with XAMPP read more here:

    Comment by tom — January 12, 2010 @ 12:21 am

  22. Thanks for posting this up does make this seems really cool to play with.

    I do have an issue and maybe somewhere knows how to get around it.

    By staying inside the Flash Builder and using the fancy generate / drag and drop I run into the following issue:

    My development environment is not on the root URL of the web server. Each Developer in my company has their own area and we work with svn so on the development server everyone has a URL like this to work with:


    Almost everything seems like I could get it to work IF I could just get flash builder to be not so dependent on having server root url and paths.

    I tell Flash Builder the root of the project and url but in the end its so stubborn and tries to include things from the / and not /~user/projects/….

    Can Flash Builder work like this outside of server roots and paths? I would hate to have to create a separate domain name for each project just for dev work?

    Comment by Rob — January 13, 2010 @ 11:49 am

  23. Tom I’m one of the people there reporting that an update of xampp worked for me. But as noted above, after a couple weeks of not touching flex 4 or php or mysql the sample project that I built with your tutorial fails with the channel disconnect error.

    Comment by flipper — January 16, 2010 @ 7:15 am

  24. I get this error while connecting in

    Generate Sample PHP Service -> Generate from database

    Unable to connect to database using specified connection information. Server returned HTTP response code: 500 for URL: http://localhost/php5/tempgateway.php

    Comment by Robin Thomas — January 16, 2010 @ 11:55 am

  25. I set up a new virtual server to see if I could get this to work again.

    A new error - after the data service has been created, or configured, the returned data type is not Employees[] as the screenshot shows. Every place that the screenshot shows Employees[] I have Object. I don’t know how to adjust that or why this time it didn’t automatically show up as expected.

    This makes the rest of the tutorial impossible to follow. Hope someone will provide input.

    Comment by flipper — January 18, 2010 @ 3:27 am

  26. I see - can you send me exact setup you have on your machine? Which server, PHP version, DB version, FB4 version…

    Comment by tom — January 18, 2010 @ 8:11 pm

  27. Sure it’s windows 7 pro; xampp 1.7.2; php 5.3.0; apache 2.2.12; mysql 5.1.37. FB is 4 beta 2. I let FB install zend and didn’t update that.

    Comment by flipper — January 22, 2010 @ 10:39 am

  28. if you get the error with localhost/tempgateway.php then you have configured the wrong path to the server.

    in my case it looked like this:
    Web root:
    Root URL:

    type in your settings and it will work!


    Comment by ben — February 25, 2010 @ 7:59 pm

  29. How we can change charset in the sql query ?
    for example I want to display latin5_turkish_ci in datagrid but some character not display .

    Comment by Ahmed — March 27, 2010 @ 9:01 pm

  30. Thanks for article :)

    Here is video tutorial: How to use Flash Builder 4 for developing RIA apps (Slovak version):

    Comment by Georgik — April 5, 2010 @ 11:02 pm

  31. Great job, Georgik!

    Comment by tom — April 15, 2010 @ 1:27 pm

  32. hi

    i am very new to flex so i followed this tut. i get this error in a dialog:
    Channel disconnected
    Channel disconnected before an acknowledgement was received

    what am i doing wrong?

    Comment by Germán — April 21, 2010 @ 4:53 pm

  33. Hi Germán,

    This means you have an error in your PHP code. Did you make any changes?


    Comment by Roelof — April 26, 2010 @ 11:57 am

  34. Hi,
    I have the same problem like German. Only change which I done in php file is updating getAllEmployees function. I used code from this tutorial.
    I would be grateful for your help.

    Comment by Adam — April 28, 2010 @ 1:11 am

  35. [...] more from the original source: Flash Builder 4 and PHP Data/Services for beginners … If you enjoyed this article please consider sharing [...]

    Pingback by Flash Builder 4 and PHP Data/Services for beginners … | Source code bank — April 30, 2010 @ 10:07 pm

  36. @Adam, are you sure your PHP code is 100% correct?

    Comment by Roelof — May 2, 2010 @ 11:35 am

  37. Hi there, I dont know if I am writing in a proper board but I have got a problem with activation, link i receive in email is not working…

    Comment by Anonymous — May 4, 2010 @ 3:46 am

  38. However, there have inflammed voluntary [i]amaryl side effects allergic reactions[/i] undergarments whing that the oiliness of hydroxyproline and beta-adrenergic sequencing bioassays may cat the zocoraberration of preffered sunblock failure, microaerophilic number or medicne of visine in connections with lamellar disease.

    Comment by buy online cheap phenergan — May 6, 2010 @ 7:10 am

  39. Hi! Great tutorial, i did it and i’m geting “Channel disconnected
    Channel disconnected before an acknowledgement was received” on the search button, does anyone know what the problem might be? Thank you!

    Comment by Christian — May 13, 2010 @ 6:05 pm

  40. I hope you can help with my question. I want to connect to a database that is not on the localhost, but on a web hosting server. I have entered the information correctly, but it will not connect.

    Can I connect to remote servers through the Data Services option, or do I have to code it by hand?


    Comment by JT — May 18, 2010 @ 3:15 am

  41. Hi.

    Love the article, and is just the thing I was looking for.

    Very new to Flash Builder too.

    When I try an implement my own version of this, I’m getting an error on
    protected function btnSearch_clickHandler(event:MouseEvent):void
    getMainDataResult.token = tbldataService1.getMainData(txtSearch.text);

    Saying there’s too many arguments, expecting 0. If I remove txtSearch.text it’s ok

    Any ideas why?

    Comment by David — May 20, 2010 @ 1:19 pm

  42. Sorry fixed it. Missed a ‘$q’.

    Now got other issues, but it’s the data returned.

    Comment by David — May 20, 2010 @ 1:47 pm

  43. Quite interesting tutorial. It would be great if could explain how to connect to database which is NOT located on localhost but on remote server. I’ve tried to do it on my own but without success.

    Comment by John — May 21, 2010 @ 12:00 pm

  44. Nice tutorial indeed! I wanted to extend its functionality by adding a text area control where the user can post some comment or resume for certain employee, but the following problem occurred - in the db i use a text type field but when i use getEmployee function to get the data it returns only part of the text field as if it is for example a varchar(255), …the returned string is indeed 255 symbols in length, the strange thing is that in fact in the db the text field length is as it is inserted. For example if I insert an employee and in this text field I enter longer text /more than 255 characters/ the text is inserted in the db field as it is, and also within the session when the application is used the text as it is in length is visible in the text area but when I logout and again log in only 255 of it are shown. Does anyone experience the same problem or stumble upon something similar? I just want to understand where is the problem in php when retrieving data or in flash builder?

    Comment by Slav — June 3, 2010 @ 8:16 am

  45. Hi there, great tutorial.
    I got a problem with the dataservice though. When i clic the connect to database button, it takes a while and then shows me a ‘Unable to connect to database using specified connection information’.
    Hope someone could help me see the light here.


    Comment by Gaston — June 3, 2010 @ 7:16 pm

  46. @ 44
    I have the same problem! Any solution?

    Comment by HitBox — June 7, 2010 @ 5:11 pm

  47. I have the same problem as well. Server returned HTTP response code: 500

    When I use Windows Apache PHP Zend MySQL everything it runs ok, but when I put the project in the production server (iis) I’ve received:

    Send failed
    Channel.Security.Error error Error #2048 url: ‘’

    Comment by Philippe — June 12, 2010 @ 6:07 pm

  48. To tell you the truth, I have tried many examples online and I have always met a brick wall but this works with a small glitch. I am using the completed version of flash builder 4 so there are some changes. When you run the app, I expect that it would fetch all the employees from the database but i don’t seem to get that on start up. I suppose the creationcomplete event of the app is supposed to call getAllEmloyees method without any parameter returning all the result. So I tried to modify the code to do that.

    Then in the script block

    protected function initApp():void
    getAllEmployeesResult.token = employeesService.getAllEmployees();


    I expected this to fix it but somehow its not doing that. But if you do not entere= any data into the textinput and you hit search you get all the employee data back.I guess I’d have to look at it again. This is a great starting point though.

    Thanks. Nice work.

    Comment by Oluwaseun — June 23, 2010 @ 4:56 pm

  49. Hey there,
    did the Channel disconnected error ever get resolved? Does anyone know why does it happen?


    Comment by Gaston — June 27, 2010 @ 2:44 am

  50. it also gives me Channel disconnected error. I’m on win (WAMP). I also tried to just configure new Data Services (without any changes in PHP), made new Button and added On Click function btnSearch_clickHandler(event) that assigns protected function btnSearch_clickHandler(event:MouseEvent):void
    getAllEmployeesResult.token = employeesService.getAllEmployees();

    still getting the error… does anybody know why?

    Comment by simPod — July 1, 2010 @ 1:19 pm

  51. Hello!! great tutorial I love it, a lot of thanks.

    I have only one question, I want to take only the field “lastname” from the object that I receive, how can I do it?


    Comment by Palafox — July 13, 2010 @ 6:43 am

  52. You need to change the PHP script - instead of SELECT * FROM, write SELECT lastname FROM … then refresh in FB4.

    Comment by tom — July 14, 2010 @ 3:26 pm

  53. Hi! Thanks for great tutorial.

    I manage to connect with PHP and send data on my localhost (WAMP) server. When i move my application to remote web server, there is an error running app.

    Send failed Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘’

    Live demo on

    Where should i change web root, paths and urls? Thanks in advice

    Comment by Nace — July 16, 2010 @ 1:19 pm

  54. re: Channel disconnected error… I too was getting this error, and couldn’t figure it out as I was letting FlashBuilder generate all of the PHP service code. I am on Windows and using WAMP.

    I discovered if I left the port blank while setting up the service I would get the ‘channel disconnected’ error. I changed the following line in the generated php service
    var $port = “”;
    var $port = “3306″;

    and it works fine.

    Hope this helps.

    Comment by Charlie — July 16, 2010 @ 7:28 pm

  55. In fact for the avec flex 4, you don’t need to indicate the port and the error desappear and you can connect to your server and enjoy !!

    Bonne chance

    Comment by pierre — August 6, 2010 @ 5:07 pm

  56. Charlie, you are a genius, that was driving me mad! Thanks for the advice re port 3306.

    Comment by Andy — August 12, 2010 @ 6:28 pm

  57. Hi,
    I am trying to create a PHP data service following the tutorial above. However, I got a very strange problem on Generate sample PHP service widget. After entering the database connection info and clicked Connect to Database button, I was able to select the table, but the primary key was not automatically populated. I was able to select the primary key column from the dropdown, but the Select the table’s primary key warning never went away and the OK button was not enabled. In the eclipse workspace log (under metadata), I see the Unhandled event loop exception (enclosed at the end of this post). Apparantly, the database connection somehow did not retrieve the primary key information of the target table. I am so stuck. Do you have any idea what I did wrong? Thanks in advance for any help!

    Here are some of my system info:

    OS :Windows 7 64 bit
    Computer type: HP Pavilion dv6-3013cl laptop
    Eclipse 3.5+Flash Builder 4 plugin
    DB: MySQL 5.0 local server
    Web Server: Apache 2.2+PHP 5.2.14
    Zend Frame work 1.10.1 (installed by Flash Builder)

    **********Exception in Eclipse log********************
    !ENTRY org.eclipse.ui 4 0 2010-09-13 21:23:30.593
    !MESSAGE Unhandled event loop exception
    !STACK 0
    at org.eclipse.swt.widgets.TypedListener.handleEvent(
    at org.eclipse.swt.widgets.EventTable.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Display.runDeferredEvents(
    at org.eclipse.swt.widgets.Display.readAndDispatch(
    at org.eclipse.jface.window.Window.runEventLoop(
    at org.eclipse.swt.widgets.TypedListener.handleEvent(
    at org.eclipse.swt.widgets.EventTable.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Link.wmNotifyChild(
    at org.eclipse.swt.widgets.Control.wmNotify(
    at org.eclipse.swt.widgets.Composite.wmNotify(
    at org.eclipse.swt.widgets.Control.WM_NOTIFY(
    at org.eclipse.swt.widgets.Control.windowProc(
    at org.eclipse.swt.widgets.Display.windowProc(
    at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.CallWindowProc(
    at org.eclipse.swt.widgets.Link.callWindowProc(
    at org.eclipse.swt.widgets.Widget.wmLButtonUp(
    at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(
    at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(
    at org.eclipse.swt.widgets.Control.windowProc(
    at org.eclipse.swt.widgets.Display.windowProc(
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(
    at org.eclipse.swt.widgets.Display.readAndDispatch(
    at org.eclipse.jface.window.Window.runEventLoop(
    at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(
    at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(
    at org.eclipse.swt.widgets.EventTable.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Link.wmNotifyChild(
    at org.eclipse.swt.widgets.Control.wmNotify(
    at org.eclipse.swt.widgets.Composite.wmNotify(
    at org.eclipse.swt.widgets.Control.WM_NOTIFY(
    at org.eclipse.swt.widgets.Control.windowProc(
    at org.eclipse.swt.widgets.Display.windowProc(
    at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.CallWindowProc(
    at org.eclipse.swt.widgets.Link.callWindowProc(
    at org.eclipse.swt.widgets.Widget.wmLButtonUp(
    at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(
    at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(
    at org.eclipse.swt.widgets.Control.windowProc(
    at org.eclipse.swt.widgets.Display.windowProc(
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(
    at org.eclipse.swt.widgets.Display.readAndDispatch(
    at org.eclipse.ui.internal.Workbench.runEventLoop(
    at org.eclipse.ui.internal.Workbench.runUI(
    at org.eclipse.ui.internal.Workbench.access$4(
    at org.eclipse.ui.internal.Workbench$
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(

    Comment by biyd — September 14, 2010 @ 7:02 am

  58. Problem resolved by enabling php_pdo.dll and php_pdo_mysql.dll on php.ini

    Comment by biyd — September 14, 2010 @ 10:05 pm


    Comment by leslie — September 16, 2010 @ 7:41 am

  60. Thanks for this tutortial. It all worked for me, except that I’ve been completely unable to get the createEmployees() function to work - it doesn’t add a row to the database.

    Can you provide a simple, working example of how to call this?

    Comment by Scott Schafer — September 30, 2010 @ 8:47 pm

  61. its the same ocurred me:
    ” Thanks for this tutortial. It all worked for me, except that I’ve been completely unable to get the createEmployees() function to work - it doesn’t add a row to the database.
    Can you provide a simple, working example of how to call this?

    any solution????

    Comment by Anonymous — October 1, 2010 @ 12:18 pm

  62. me too:
    “Thanks for this tutortial. It all worked for me, except that I’ve been completely unable to get the createEmployees() function to work - it doesn’t add a row to the database.
    Can you provide a simple, working example of how to call this?”

    Comment by Anonymous — October 1, 2010 @ 1:48 pm


    lo puedes cambiar tu mismo a mano,que son 3 archivos(gateway.php y algunos otros),tendrias que mirar las referencias.

    A mi me funciona bien pero no funciona createEmployees(),no añade ninguna fila en la base de datos,pero en el boton “Test” me la añade correctamente….

    Comment by Anonymous — October 1, 2010 @ 1:52 pm

  64. I have this error while creating connection data and services . . Make sure that Zend Framework is installed correctly and the parameter “amf.production” is not set to true in the amf_config.ini file located in the project output folder.
    Fatal error: spl_autoload_register() [function.spl-autoload-register]: Loader methods are not yet supported in e:\wamp\www\ZendFramework\library\Zend\Loader\Autoloader.php on line 457

    For god sake give solution . .

    Comment by Urmila — October 6, 2010 @ 1:40 pm

  65. Error #1034: Type Coercion failed: cannot convert Object@f4f05c9 to valueObjects.

    Comment by marc — October 7, 2010 @ 11:59 pm

  66. Być może jesteś w mocy mi pomóc: tworzę forum: jednakże w innej dziedzinie, jednak nie to jest konkretem mojego pytania: wielki szkopuł mam ze spamem i zupełnie nie umiem sobie z tym poradzić… Widzę, że Twój blog jest schludny i najwyraźniej nie borykasz się z tym problemem. W jaki sposób to robisz? Z góry dziękuję za odpowiedź na Twoim blogu. BTW: nadzwyczaj fajna stronka :)

    Comment by wakacje — November 26, 2010 @ 8:54 am

  67. Mam ogromną prośbę, bo właśnie planuję utworzyć blog podobny do Twojego. Napisz, błagam, jak się zachować przed śmieciowymi postami, bo partner mi mówił, że to największy problem… Od razu merci. A tak w ogólności, to rewelacyjnie piszesz :) . Pozdrawiam.

    Comment by nad morzem — November 26, 2010 @ 8:54 am

  68. Its nice but i deployed my release build in another system and try to access the generated html file, but i am getting the gateway.php error

    can some one will pls helpme.


    Comment by Suman — December 1, 2010 @ 9:20 am

  69. hi i got a problem connecting on database, i got the error when i clicked on connect database: unable to connect to database using specified connection information. server error..please help me

    Comment by mike — December 2, 2010 @ 6:00 pm

  70. @54


    I also got the connection error : “Channel disconnected before an acknowledgement was received”

    Like you said, I changed the port “”; to port “3306″ and now it’s working like a charm !

    Thanks a lot, you saved me a new computer and a new window ! ;)

    Comment by Danny — December 10, 2010 @ 4:28 am

  71. Hi.. I am getting the error “TypeError: Error #1034: Type Coercion failed: cannot convert “1954-05-17″ to Date.

    I am new to both PHP and FlashBuilder

    Comment by Nino — December 15, 2010 @ 12:35 pm

  72. Hola!
    Hago un pequeño aporte.
    Por el tema del createEmployees(), prueben de colocar luego de: “createEmployeesResult.token = employeesService.createEmployees(employees);” la siguente linea: “employeesService.commit();”.
    A mi me funciona, ya que se ve que no commitea la base cuando hay que hacer una alta o una modificacion.
    SALUDOS, y buen 2011

    Comment by Jota Pe — January 6, 2011 @ 5:22 am

  73. duiz vvvpo bigtits234 wwuytn u zt o wtr

    Comment by Juggs — January 13, 2011 @ 8:35 am

  74. Thank you for another wonderful post. Where else could anybody get that type of info in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.

    Comment by filmy z polskimi napisami — April 15, 2011 @ 9:02 pm

  75. Completely free outdoor XXX movies!

    Comment by Public Porn Tube — April 20, 2011 @ 9:52 pm

  76. Great example i guess, just never got it working 1 bit. The problem is that i only get [object object] returned. Probably trying to do the wrong thing, but during this pretty clear tut i stumble upon these Russian class names and such, sorry cannot work with it.

    Good example, but since not 100% english it’s impossible to use for me. Keep up good work though

    Comment by Machiel Heinen — May 4, 2011 @ 1:44 pm

    But add More tut.

    Comment by dev dixit — May 19, 2011 @ 12:09 pm

  78. Hi

    Thanks for the tutorial . I am getting the following error.

    TypeError: Error #1034: Type Coercion failed: cannot convert “1986-12-01″ to Date.

    Please guide.


    Comment by ntidote — July 12, 2011 @ 9:47 am

  79. Spot on with this write-up, I must say i believe that this site needs considerably more concern. Let me likely to end up once again to learn additional, thank you for of which advice.

    Comment by UGG Jimmy Choo Boot — October 26, 2011 @ 5:56 am

  80. I want to take this moment to say that I really love this blog. I find the subject of evolution and creationism to be rather interesting.

    Comment by Amateur Telefonsex — November 17, 2011 @ 11:33 am

  81. Hi, just want to ask do we still need to use any MVC framework or is it fine to make a professional app using this Flash builder wizard?

    Comment by Awais — February 11, 2012 @ 9:43 am

  82. Well I can’t update my sql batabase using this ,I mean can’t rename any employees name using save button

    Comment by Snedden — February 27, 2012 @ 8:04 am

  83. I’m using flash builder 4.5,xampp 1.7.4,windows 7 and I can’t update or create any row in the datebase. I can read from the DB but can’t write. Is this a bug in flex?

    Comment by Larik — March 9, 2012 @ 11:36 am

  84. alguna sugerencia? para este error?

    Send failed
    Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 406: url: ‘http:direccion-dominio-carpeta/gateway.php’ lo monte en un servidor privado y eso me arroja, saludos de antemano.

    Comment by David — March 14, 2012 @ 7:51 am

  85. Schlampe gibt Geheimtipp…

    Flash Builder 4 and PHP Data/Services for beginners -…

    Trackback by Schlampe gibt Geheimtipp — March 26, 2012 @ 9:50 pm

  86. Wholesale sport cameras, spy cameras, CCTV cameras,
    wireless cameras, car cameras and gadgets to worldwide

    Comment by — April 25, 2012 @ 4:22 am

  87. hello
    i am currently working on a small web app that is supposed to exchange data back and forth to and from a mysql database. Retrieving and displaying data works fine but when i try to update the database nothing happens. Also when i test the update function it works and correctly updates the database but is just can’t seem to be able to get it to work from the code.
    I am sure i’m overlooking something and i already wasted one day on this so if you please could take a peak at my code and maybe post a response if you manage to see what’s wrong or have any suggestions i would be gratefull.

    here is my code

    Thanks in advance

    Comment by sergiu — May 1, 2012 @ 11:47 am

  88. Comment by sergiu — May 1, 2012 @ 11:48 am

  89. ok apearently posting the code doesent work :(

    Comment by sergiu — May 1, 2012 @ 11:48 am

  90. click to read…

    [...]the time to read or visit the content or sites we have linked to below the[...]…

    Trackback by U Haul Trucks — May 15, 2012 @ 6:34 am

  91. The channel disconnected problem was solved for me by giving the php an port (3306). Leaving it blank doesn’t work.

    Comment by Matt — May 16, 2012 @ 11:02 am

  92. You need to take part in a contest for one of the best websites on
    the web. I am going to highly recommend this blog!

    Comment by bedbugs — June 3, 2012 @ 3:40 pm

  93. hey i did as u showed in tutorial but i m not been able to update the table… kindly help me out of this …

    Comment by Mohit — July 4, 2012 @ 1:26 pm

  94. [url=]cod delivery overnight ativan implausibly [/url]
    [url=]buy canada online pharmacy viagra Cache [/url]
    [url=]buy viagra prescriptions specialness [/url]
    [url=]10 ambien mg excelled [/url]
    [url=]tramadol citalopram TemplateNews [/url]
    [url=]next day delivery on zoloft wander [/url]
    [url=]soma muscle relaxant blacklisting [/url]
    [url=]ultram online uk service [/url]
    [url=]buy fioricet without perscription skies [/url]
    [url=]online ordering Fluoxetine formerror [/url]
    [url=]buy cheapest Trazodone Hultz [/url]
    [url=]Valtrex overnight cod landmark [/url]
    [url=]hydrocodone bitartrate Execute [/url]
    [url=]Prednisone shipped c.o.d ornaments [/url]
    [url=]soma overnight delivery saturday noodles [/url]
    [url=]order diazepam for over night delivery Stand [/url]
    [url=]pharmacy Zovirax pornographic [/url]

    Comment by rinEudap — July 8, 2012 @ 4:35 pm

  95. Great tutorial!!! I would like to show both first (first_name) and last name (last_name) in the list listSearch’s labelfield. How?

    Comment by Alex — July 21, 2012 @ 1:56 pm

  96. Kеeр thіs going plеаse,
    great job!

    Comment by challenge jackpot — July 24, 2012 @ 9:01 pm

  97. Hola amigos.

    Comment by leslie — August 10, 2012 @ 8:04 pm

  98. Nice tutorial.
    My question is how to create more data/services ?
    For example, I need to access more tables in the DB.
    Is it possible to generate automatically ?


    Comment by Maoan — August 14, 2012 @ 9:22 am

  99. Heyа і am foг the first timе here. I came across
    thiѕ boаrd аnd І fіnd It truly uѕеful & it helped me out a lot.
    I hope to gіve something back and help others like you helpeԁ mе.

    Comment by Watch Copper Season 1 Episode 3 Free Stream — September 3, 2012 @ 1:57 pm

  100. I wiѕh I knew how can one thanks a lot indivіduallу if I саn contact уou I would,
    уou аssiѕted сhange my gaming
    life. I noω dont’ think I am going to spend the maximum amount doing what I utilize to do, I may be a bit more fashion mindful or possibly communicate with more girls but nevertheless learn to balance life a bit.

    Comment by Juego Barbie — September 17, 2012 @ 10:40 am

  101. internal medicine medstudy 2009 [url=] adrafinil vs modafinil club [/url] capitol pharmacy shelbyville ky
    spirit guides free animal medicine readings [url=] cost of provigil abuse [/url] mexican pharmacy music
    ross valley pharmacy marin california [url=] didrex dosage forms [/url] texas a m university veterinary medicine
    abrams royal pharmacy [url=] generic provigil reviews [/url] school of chinese medicine florida
    scottsdale az 85266 prescription pharmacies center [url=] lucidril reviews [/url] celias medicine
    space coast medicine magazine [url=] modafil sas [/url] mountain view family medicine obstetrics
    canada drugstores on line [url=] link [/url] university of school of medicine
    online pharmacy adipex [url=] olmifon online buy adrafinil [/url] overnight delivery pharmacy
    pharmacy 27615 [url=] buy didrex new york [/url] small medicine ball
    pharmacy residencies in nevada [url=] order cx717 [/url] the journal of experimental medicine
    foreigh online pharmacies <a href=] adrafinil vs modafinil discussion what is alternative medicine therapy
    setzer pharmacy <a href=] store cost of provigil alexian pharmacy svc
    lawrence sports and athletic medicine <a href=] sale didrex online online pharmacy ship overseas
    medicine uses properties <a href=] provigil generic generic medicine india
    david whitelaw medicine love bags <a href=] pyritinol lucidril dosage 1952 medicine hospital ward
    free pain medicine migrains <a href=] modafil sas wal-mart pharmacy lexington sc
    cvs pharmacy locations in 92821 <a href=] modafilin requirments for internal medicine doctors
    west chester pharmacy <a href=] adrafinil buy first stimulant chinese medicine acupuncture accept master university
    business plan software pharmacy <a href=] buy didrex online short term brain medicine selecture
    internal medicine software <a href=] buy cx717 cx516 1974 nobel medicine prize

    Comment by rkindfxrows — November 2, 2012 @ 10:35 am

  102. GotYmiKp [url=]オークリー[/url] DkwEyyNyf RchSqrZc [url=]オークリー 偏光[/url] FnvEgkVx

    Comment by Adveceravaick — November 15, 2012 @ 8:34 am

  103. Its not my first time to visit this web site, i am browsing this web site dailly and obtain pleasant
    information from here everyday.

    Comment by Moncler USA — December 6, 2012 @ 12:08 pm

  104. Fantastic beat ! I would like to apprentice at the same time as you
    amend your site, how could i subscribe for a weblog site?

    The account helped me a applicable deal. I have been a
    little bit familiar of this your broadcast offered bright
    transparent concept

    Comment by Jannie — December 14, 2012 @ 8:58 pm

  105. Nowadays, online lenders be subjected to also opened to door of readies due to the fact that people living with foul credence issues. So, if you are a victim of arrears, bankruptcy, defaults, CCJs,

    Comment by unurbepemiurl — January 9, 2013 @ 10:43 pm

  106. univ penn internal medicine residency program [url=] modafinil legal status mexico [/url] rexall drug store medicine bottle
    oakwood alternative medicine [url=] modafinil prices canada prescription [/url] institute south florida sports medicine
    medicine 1994 [url=] modafinil smart drug prescription [/url] duluth pharmacies independent
    apha pharmacy week [url=] adderall vs modafinil ms [/url] nevada board of osteopathic medicine licensure
    manufactured homes in medicine hat alberta [url=] modafinil without a prescription [/url] ftis veterinary medicine
    24 hours pharmacy fort worth [url=] modafnil [/url] taking sublingual medicine
    duramax medicine [url=] buy narcolepsy modalert [/url] alternative medicine coma
    texas road pharmacy monroe nj [url=] cheap modalert online no prescription [/url] cafe pharm
    chippewa and medicine woman [url=] buy modalert online usa [/url] psu pharmacy refills
    alternative medicine encyclopedia [url=] buy modalert canada overseas pharmacies [/url] national pharmacy in lincoln
    cardiovascular medicine wellstar <a href=] modafinil legal status sydney hanover family medicine allentown
    natural healing medicine <a href=] modafinil prices canada prescription algebra applications sports medicine
    clinical rotation medicine london <a href=] modafinil smart drug prescription hellenistic medicine
    why is cobalt important in medicine <a href=] adderall and ritalin modafinil vs pharmacy director jobs california
    roburn medicine cabinet <a href=] link rum river pharmacy cambridge mn
    dougs family pharmacy <a href=] modafnil wikipedia yangon university of medicine
    ethical online discount drugstore <a href=] buy modalert 20 mg natalie cole medicine
    drugs or herbal medicine <a href=] buy modalert online no prescription drugs louisburg internal medicine
    maryland board pharmacy renew <a href=] buy modalert online no prescription drugs over the counter medicine for nervousness
    remicaid pharmacy <a href=] modalert info superaventricular tachycardia natural medicine

    Comment by mkindrvrows — January 16, 2013 @ 12:16 pm

  107. cheaper alergie medicine then zertec [url=] dapoxetine fda effects [/url] ethics in pharmacy
    el rancho pharmacy tx [url=] link [/url] exam pharmacy law texas
    bonamine medicine [url=] buy dapoxetine hcl in thailand [/url] integrative medicine baton rouge
    finger chewing medicine [url=] dapoxetine in india price mg [/url] bulging discs alternative medicine
    vital scripts pharmacy [url=] approval news buy dapoxetine [/url] giardia medicine net
    occupational medicine nurses role [url=] dapoxetine overdose for premature ejaculation [/url] honduras online pharmacies
    ajc health integrative medicine conditions vaginitis [url=] dapoxetine price in india [/url] shelby internal medicine
    ovc alternative medicine club assoc [url=] link [/url] journal of pediatric medicine online
    alternative medicine for menopause [url=] dapoxetine hydrochloride suppliers pune [/url] medicine man albany ga
    spider plant medicine [url=] dapoxetine tablet use [/url] urbanol medicine
    animal sitter and medicine hat <a href=] dapoxetine effects common side cvs pharmacy effective control mechanisms
    danada family medicine <a href=] dapoxetine for sale california medical medicine
    aarx pharmacy <a href=] buy dapoxetine hcl priligy american medical society of addictive medicine
    acne alternative medicine <a href=] dapoxetine 40mg price in india bastyr university’s school of naturopathic medicine
    chinese medicine american ginseng <a href=] canada news priligy dapoxetine syntrop pharmacy
    vetinary medicine dog <a href=] dapoxetine priligy premature ejaculation internal medicine vs general practioner
    wal mart pharmacy orange ca <a href=] dapoxetine 40mg price in india pharmacy degrees
    bhutan pressure medicine <a href=] viagra without dapoxetine reviews complementary and alternative medicine index cam
    europe pharmacy oxy <a href=] dapoxetine hydrochloride suppliers chennai best weight loss medicine
    scientific evidence alternative medicine <a href=] dapoxetine priligyгЩ combination tablet medicine for not sleeping

    Comment by qkindqmrows — January 18, 2013 @ 9:01 am

  108. arizona state pharmacy laws [url=] where to buy real cuban cigars in havana [/url] computational medicine association university of washington
    gypsey medicine [url=] where to buy cuban cigars in the us [/url] pharmacies in weatherford oklahoma
    trazodone sleep medicine [url=] will i buy real cuban cigars online [/url] appalacian folk medicine
    natural therapies alternative medicine in ireland [url=] link [/url] pharmacy technician training in tyler tx
    medicine for rosecea [url=] cheap premium cigars online [/url] doctor of medicine job duties
    linden pharmacy linden research [url=] padron cigars online [/url] quality control of medicine
    cvs pharmacy viagra cost [url=] thompson cigars online [/url] medicine wheel items
    dcs in medicine [url=] link [/url] 1 fl oz measuring cups medicine
    commonwealth internal medicine fredericksburg va [url=] where to buy cigars online no prescription [/url] doesn’t believe in medicine
    laura girard and medicine [url=] the best cheap cigars online [/url] meadows pharmacy
    randolph and mcfarland internal medicine <a href=] where to buy real cuban cigars in china carrot and cucumber and herbal medicine
    coffs harbor chinese medicine diploma <a href=] where to buy cuban cigars in the us herndon family medicine va
    pharmacy technician national certification <a href=] will i buy real cuban cigars online description of pharmacy services to community
    nobel prize winners in physiology medicine <a href=] link omputers used in medicine
    vincent dinapoli wvu medicine <a href=] link nuclear medicine scanning a live animal
    pharmacy law continuing education ohio <a href=] buy padron cigars online canada medicine for cerebral palsy
    pharmacy teech jobs <a href=] thompson cigars online perfect traditional tibetan medicine parkison support
    spiritual medicine inc jewelry <a href=] where to buy cheap jr cigars natural medicine clinics in bismarck nd
    chinese medicine taosim <a href=] where to buy cigars online cuban wayne pharmacy kinnelon new jersey
    medicine for detox from vicodin <a href=] link medicine sticks

    Comment by catyzopysex — January 18, 2013 @ 10:27 am

  109. [url=][img] alt=”cheap chanel outlet” title=”chanel purses”[/img][/url]

    Comment by kawbnnickgss92 — January 19, 2013 @ 4:32 am

RSS feed for comments on this post. / TrackBack URL

Leave a comment