Flash Bulder + MySQL, PHP - channel disconnected before an acknowledgement

Hi, I tried a few basics with Flash Builder and PHP MySQL. I walked through this tutorial http://www.flashrealtime.com/flash-builder-4-and-php-data-services/ but when I added a function btnSearch_clickHandler and launched the project in the browser to test it, it gave me this error:

disconnected.png

I don't know why this is happening. I followed the step by step tutorial. The only difference is that I use Windows 7 with WAMP and Tomas use MacOS with MAMP

I downloaded my project http://www.mediafire.com/file/6ri44igt1hbssrf/phpConnect.zip , can someone take a look please? Thank you

Even if you use Wamp is the same thing, I want to remind you that you must use port 3306 for the configuration of the connection inside your Flex IDE.

Message edited by Aldo Marsilio www.flashbackstage.com

Post edited by: aldo marsilio

Tags: Flash Builder

Similar Questions

  • bootstrap + mysql + php: a robust solution for an educational dashboard?

    Hello. We're just starting to work on a dashboard for educational purposes. We need to show progress data tables m, notes etc...

    A bit like the following tables:

    http://www.Dreambox.com/district-reports

    We downloaded a model based on bootstrap. It's all pretty easy except for the integration of data. Before we used flash datagrids and sought also to flex components that are very easy to use. The questions are:

    1 can we get the same plug-in 'power' for our grids of data/tables of data "ready made" bootstrap ins.

    2. in order to reproduce the datadrid in flash we use in bootstrap - ajax datatable or a j query plug in.

    3. how connect us the mysql, php + datagrid. It would be very similar to an AS3, php + mysql solution?

    Basically, is "bootstrap" html5 + CSS a strong and viable solution to the production of an education dashboard.

    I use the term plugin because I do not think that you call components or widgets.

    You should also know that it will be on a company level and there should be about 10,000 active users - not at the same time of course. We will hire a freelancer or part tim staff to implement and maintain, but we need to know what way to go first.

    Big enough questions maybe, just trying to find my way and a study on what I'm supposed to study on the spot. I'm on Lynda.com, which is OK, but I need the guy creating these things to give me advice and point us in the right direction.

    Congratulations in advance.

    Basically, is "bootstrap" html5 + CSS a strong and viable solution to the production of an education dashboard.

    Hello

    Much depends on your knowledge of html, css, php, MySQL, and exactly what are the requirements are for the dashboard.

    Bootstap I always found more trouble than it should be, as the code is extremely swollen, and he's trying to cover all the bases without excelling in any one.

    That said, the data tables that you mention are very easy to implement using html, as the data tables have been a part of the original purpose of web pages, so the inclusion and the manipulation of these data using css and javascript is well documented, as well as the use of php/mysql "get/update / delete / include ' data (no different to using php/mysql in flash for the databases).

    Without a lot more information. about requirements, a detailed assessment is not possible. This position would also beyond the normal for this and most of the forums. However if you have any specific questions on implementation using Dw, I'm sure many on this forum would be willing to help.

    PZ

  • Channel disconnected error with the remote server

    I created the Mobile Flex and PHP project that works very well with a local server (MAMP on Mac). Basically, it reads the data to get MySQL and displays the map Google. Now, I'm moving from a local server to a remote server.

    But when I run my application on emulater, I get the error "channel disconnected - disconnected prior to receipt of the acknowledgement of receipt."

    I Googled what this error is and found a web site that described on this error. According to the web site, the error is probably due to a PHP syntax error and use Network Monitor to debug it.

    However, the problem is that after I activated the network monitor and run my application on the emulator, nothing appears on the monitor network. My first question is if I should use Network Monitor to debug this error of channel disconnectef? The second question is negative, how can I debug this error? Any help would be appreciated.

    I finally understood what I was doing wrong. I followed the insturction of davidflexto http://forums.adobe.com/thread/875709 and didn't I have to set host = 'localhost:8889' in my php that connects to my remote mysql server. It's delicate sicen is remote server, you set host = your domain name, but that's not true. Like davidflex said you need to set host = ' local: 8889 "since your gateway.php is also running on the remote server.

    I fell for several weeks and hope that someone else get stuck like I did it for several weeks.

  • Send variables from flash AS2 to php mySQL

    Hi I have a question to adobe. So I finally created a system to connect / register with php and mysql and flash as2. That works, and here's the link:lumosityentertainment.hostei.com/PhPLoginSystem.swf

    But I have a question. How to send variables from flash as2 to my mySQL database? And then how to load their MySQL to flash as2? Also when variables get edited or changed as if I had 6 gold and then now I have 7 but how do send flash that updated data in my database? I know you use php and other things but I have examples of easy php and codes as2? I'm a beginner in php, but I know a decent amount of AS2. I searched all over google and adobe for the answer forums, but none of them really helped. I am currently working on a flash game on my site and I'm doing so that players can save as their gold, armor, weapons etc and then load them by logging into their account.  Here is my game that I currently use cookies to save the data:

    lumosityentertainment.enjin.com/playfantasydreams

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    receiveLV.onData = function(src:String) {}

    trace (SRC);  or be it for debugging

    }

    sendLV.somedata = somedata;

    sendLV.someotherdata = someotherdata;

    sendLV.sendAndLoad ("yourphp.php", receiveLV, "POST");

    /////////////////////////////////

    ////

    PHP

    .

    .

    $somedata = $_POST ['somedata'];

    $someotherdata = $_POST ['someotherdata'];

    write to your sql

    {if (whatever)}

    echo "success";

    } else {}

    echo "failed."

    }

    /////////////////////////////////

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • Pre-Noob question, Flash Builder for PHP and MySQL... can pack and write?

    So I am COMPLETELY new to Flash Builder and Flex universe, but I'm familiar with PHP / MySQL. One thing that has not been specifically stated to me, is what Flash Builder with (Zend) PHP with the MySQL database when it is packaged and exported? If he did enter the database and is able to execute the query PHP application to the MySQL database within the application?

    I'm confused if she needs to go on the web and communicate with the server. Can he communicate with a LOCAL database?

    Thank you!!

    No Flash Builder package not the final result with data base and

    webserver. To run your application locally you would need to have a

    PHP and Mysql Web server running on your local computer.

    Maybe watch using wamp http://www.wampserver.com

    http://www.imonggo.com/> on your local computer.

    Otherwise I suggest you will probably need to create your program in

    Java who can speak directly to local databases without the need for php.

  • MySQL php flash question

    Hi all

    im still new to flash and learn a lot, so please bear with me. I did some research and found you can use PHP to query a mysql database and write an XML file you can draw in flash. My question is that you can use this same approach to images query on a mysql database? I know that some will say this is a bad idea to store images in a database, but for simplicity, I think this is the best approach. IM building a band website that will contain pictures of each show (25-100 photos per show), I was stored in mysql and using php and xml for flash output. Members who will make these updates will just download the database via php uploader and everything is done. not leaving the files. Is the best way to do it, or is there another way to break down each show in a different category and the release of flash via flat files. I hope this makes since, if not, I can try to better explain

    in general you save image files in the subdirectories and save image paths in your database.

  • Flash & lt; & gt; PHP & lt; & gt; MySQL: FLVplayer (NOT using the & quot; & amp; quot; method)


    I have a CMS system im develop and I only just based it on the index.php page using an index.php? AP = viewer.php as model for the php doc...

    Now anyway, I set it up like this:
    index.php? AP = videoviewer.php & id = 25

    ID is the id of the database,

    on this game page I have a script that gets the name of the file "$thefilename" of this identifier and places it in a variable, after this code, I have a flash with a compononent FLVplayer.


    loadVariables ("index.php? AP = videoviewer.php & view =" + id, _root.test);
    XX var = trace (_root.test.thefilename);

    xoo var = ' contentsss /' + xx;

    theplayer. Load (Xoo)


    and of course, its does not work... I don't want to use the method of the echo = > echo "& thefilename =". $thefilename; because I don't have the name of the file to share...

    Any ideas?

    > can I use loadvariables ("thepage.php", "GET"); to get this variable?
    No, loadVariables and LoadVars sends a GET or POST request to a server. If the Flash Player is already in the HTML of your PHP code returned to the client browser, it is too late to use LoadVars or loadVariables. You can use a separate PHP script to make this request GET/POST also, but I think the FlashVars method makes more sense if you already have the variable ready by the time you return markup to the client. Discover the FlashVars here:
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=tn_16417&sliceId=1

    NOTE: If you use a script to embed Flash, including that used in the generation of markup with the Flash IDE, you may need to use a different syntax for these scripts to create the FlashVars. As far as Flash embed scripts go, I like SWFObject and the syntax to add a FlashVar to this script is so.addVariable ("MyVar", "my value")

  • Cannot install Flash Builder for PHP 4.6

    I have FB4.5 installed premium and purchased a license to upgrade to version 'for PHP. I downloaded the 2 files on the adobe web site (only V4.6 seems to be downloadable now) - FlashBuilderPHP_4_6_LS1.7z and FlashBuilderPHP_4_6_LS1.exe. The installation will passed specifying options, but just before he finishes it says "roll back the installation" and closes. I was hunting autour and founf PDApp.log and these are the last lines. They give me any indication as to what has bad shot, except maybe the first one here, but it keeps going for a little while after this message. I tried 3 times now with a reboot between the two, and it fails every time. It's time to download a new copy installation files or get a DVD?

    Thank you

    03/02/2012 14:11:44 [INFO] PIM - id Package BE253463-D6DD-4046-BF29-FAF2E8EADEFB is already installed

    03/02/2012 14:11:44 [INFO] PIM - deleteAppletRegInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - deletePackageUpgradeInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - deletePackageInstallationInfoRecords SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - insertPackageUpdateList SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - insertAppletRegInfoList SUCCESS.

    03/02/2012 14:11:44 [INFO] PIM - created backup file

    03/02/2012 14:11:49 [INFO] utility - the file does not exist

    03/02/2012 14:11:50 [INFO] PIM - installPackage SUCCESS to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\DWA\DWA.pimx Builder.

    03/02/2012 14:11:50 [INFO] installation - finish by installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\DWA\DWA.pimx Builder

    03/02/2012 14:11:50 [INFO] installation - start installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - BEGINNING installPackage to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - tries to access xml path: C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:50 [INFO] PIM - XML is valid

    03/02/2012 14:11:50 [WARN] PIM - could not find node

    03/02/2012 14:11:50 [INFO] PIM - Package id 288AEB6F-C67B-4244-8B68-392A279BC618 is already installed

    03/02/2012 14:11:50 [INFO] PIM - deleteAppletRegInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - deletePackageUpgradeInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - deletePackageInstallationInfoRecords SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - insertPackageUpdateList SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - insertAppletRegInfoList SUCCESS.

    03/02/2012 14:11:50 [INFO] PIM - created backup file

    03/02/2012 14:11:56 [INFO] utility - the file does not exist

    03/02/2012 14:11:57 [INFO] PIM - installPackage SUCCESS to the file C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder.

    03/02/2012 14:11:57 [INFO] installation - finish by installing the package - C:\Program Files (x 86) \Adobe\Adobe Flash 4.6\WinFBInstaller\Adobe Flash Builder 4.6\packages\LWA\LWA.pimx Builder

    03/02/2012 14:11:57 [INFO] PIM - treatment... _pimCreateOrUpdateAAMInventory

    03/02/2012 14:11:57 [INFO] PIM - inventory already present on the machine...

    03/02/2012 14:11:57 [INFO] installation - TimeLog: installation of the end Lance PDApp.

    03/02/2012 14:11:57 [WARN] installation - install the unspecified Source path. Looking for payloads on the way to launch.

    03/02/2012 14:11:57 [INFO] installation - engine deployment started with the command: "C:\Program Files (x 86) \Common"-DeploymentFiles = "C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\silentinstall\remove.xml"-installSourcePath = "C:\Program Files (x 86) \Adobe\Adobe Flash Builder Flash Builder 4.6 4.6\WinFBInstaller\Adobe".

    03/02/2012-14:11:58 [FATAL] installation - end Adobe. Exit code: 33

    03/02/2012 14:11:58 [INFO] PIM - PIMSqlite closeDB status 0

    03/02/2012 14:11:58 [INFO] FREE PIM - PIM Instance...


    I worked it out in the end - I had to uninstall FB4.5 and restart the computer. Why install so couldn't say instead of just crashing? I found this, by the way, trying to run the Setup program created in \adobe\adobe flash Configurator 4.6 of c:\program files (x 86). What I was told at least I had to uninstall a previous version, if she was even then evasive on which we

  • [Problem] Get data (MySQL + PHP Zend AMF) Data/Services

    Hello

    IM using Zend AMF PHP in Flash Builder 4 to access a MySQL database.

    I have a few methods in php automatically generated by Zend AMF.

    My methods is to manipulate a chart of accounts.

    A method to get all the accounts etc...

    I put the getAllAccounts method data in a datagrid.

    But Im making a login system and I have a method with a parameter: getAccountByName ($name)

    I need to know, how I can put this method in the AC code example...

    I need to know if already, there is an account with 'X' name and for that, I need to run getAccountByName.

    Someone help me?


    Thank you

    Renan.

    I don't know if you use the built-in tools of FB4 to hang your services or write your ActionScript by hand, but one approach is to use a RemoteObject and a CallResponder.  (If you use the built-in tools, you can probably tap into the existing remote object that was generated by FB and simply create a new CallResponder).

    If you are coding by hand, it would be something like:

    var tempRemoteObject:RemoteObject = new RemoteObject;

    tempRemoteObject.source ("THE NAME OF YOUR PHP SERVICE');

    I guess you already have your xml services configuration file up

    var tempCallResponder:CallResponder = new CallResponder();

    tempCallResponder.addEventListener (ResultEvent.Result, allAccountsLoaded);

    then call your php through your remote object method and assign it to your answering machine call

    tempCallResponder.token = tempRemoteObject. getAccountByName("X");

    private void allAccountsLoaded(event:ResultEvent):void {}

    here your data returned through "event.result";

    }

    Thus, for example, if you had a user login text entry components named 'userLoginTxt' and 'passwordTxt' with a 'login' button it would be something like:

    private function login (): void {}

    tempCallResponder.token = tempRemoteObject. getAccountByName (userLoginTxt.text, passwordTxt.text);

    }

    who calls your method of php and send your two settings (userLogin and password), which of course runs the query on the database and returns a result.

    There is probably an easier way to do using the tools integrated to FB, but I usually manually code a bunch of stuff.  in any case, it's a way to call/send data to your service.

  • Flash content with PHP on screen

    I have a file that I designed, this file data retrieves a database MYSQL and präses for the Flash document. Everything works correctly on the Web server. He shows what he is asked to display. However, I would like to now this show on my 50 inch screen.

    I have a few questions

    (1) may Flash out put a SWF to the size of a screen? If so, would you direct me to resources that may be useful

    (2) now, because it woud not be based on the browser, is there a will to a Web server that might solve my problem for retriving data from the database?

    (3) is there an another Adobe application, that maybe woould make my app convinient

    Please advise me

    Thank you

    1. Yes, the Flash can produce almost any size you want.  You will need to know the resolution that appears.  If it's a widescreen HD, it probably displays up to 1920 x 1080 (although the HD could also mean that 1280 x 720).

    2/3. Yes and no.  You have several options, depending on whether or not the computer is connected to the network.

    1. you can run it on the local computer, which is connected to the network, as an AIR application, and PHP scripts the same appeal as if it were in the browser on the server.

    2. you can create an AIR application that has the database integrated into it, if you don't have network connectivity (NOTE: this would involve MySQL to SQLite conversion)

    3. you can make a server to the computer and run all from localhost in a Flash EXE.  This is to install Apache, PHP and MySQL server on the local computer.  I would do that last step, if you can't do the others.

    Probably the most realistic solution would be to simply generate your project as an AIR application, then run even that it runs now, although it would need an internet connection.

  • 46YL863: change TV channels - delay before the new image appears

    Hope someone can advise me please on an "issue" that's appeared recently with my 46YL863 TV.
    I say 'problem' rather than problem in case it's something to do with my settings, which is the cause.

    When I change channels I notice that there is a delay of several seconds of the current image to the new. I narrowed down it to this happens only when you switch from a HD channel to a one SD card, or from a SD card on a HD.

    In these circumstances the screen will first black, then blue and after a couple more seconds the new image of the string will appear.
    Switch between HD or SD channels and the new image appears almost immediately.

    This happened before the last two days, so either a fault has developed or I changed a setting in some way.

    I tried other plugs of HDMI input and the situation is the same.
    Any suggestions please?

    Thank you.

    > I tried other plugs of HDMI input and the situation is the same.
    This means that you are using an external decoder which receives signals from TV?

  • Android 601 and MySQLi/PHP

    Hi, I made a site (HTML, PHP, CSS, Bootstrap, MySQLi) functions very well on my laptop with different browsers and on my laptop with the Android 501 friends. But he gets the data of the database with my cell phone Android 601. Have you tried different browsers. Does anyone have any ideas?

    PHP/MySQL only works on the server, the problem you are experiencing cannot be with them. In other words, there is no such thing as an incompatibility between the Android 601 and the version of PHP or MySQL.

    JavaScript is another story.

    I'm agree with Paula, that a browser detection script could be the problem, but if you use one, you would probably already searched this angle. If you are using one, try to disable it for the test.

  • Animated border and mysql / php

    Hello. I would like to know if it is possible to use the mysql database and / or php to interact with an animated project of edge?

    Thank you.

    Use of the Jquery function .post

    jQuery.post() | jQuery API Documentation

  • How to insert date in the record being updated (MySql, PHP)

    I want to be able to update an existing record and automatically include the date that the change was made when I submit the data to the MySql database.

    I saw this thread on how to date on a new record using NOW()

    http://forums.Adobe.com/thread/855152?decorator=print & displayFullThread = true #855152

    After reading it, I have successfully changed my page insert.php.

    Here is the code of my insert.php page that works well:

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
    $insertSQL = sprintf ("INSERT INTO standardsclient_tbl (client_name, pantone_ref1, pantone_ref1_image, font_ref1, font_ref1_image, 'date') VALUES (%s, %s, %s, %s, %s, NOW())", ")
    GetSQLValueString ($_POST ['client_name'], "text").
    GetSQLValueString ($_POST ['pantone_ref1'], "text").
    GetSQLValueString ($_POST ['pantone_ref1_image'], "text").
    GetSQLValueString ($_POST ['font_ref1'], "text").
    GetSQLValueString ($_POST ['font_ref1_image'], "text").
    GetSQLValueString ($_POST ['date'], 'date'));

    It's the update.php page, I changed 'date' = %s to 'date' = NOW () , but this has made that prevents me from updating the record all the.

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}
    $updateSQL = sprintf ("UPDATE standardsclient_tbl SET client_name = %s pantone_ref1 = %s pantone_ref1_image = %s, font_ref1 = %s, font_ref1_image = %s, 'date' = NOW () WHERE the client_ID = %s",
    GetSQLValueString ($_POST ['client_name'], "text").
    GetSQLValueString ($_POST ['pantone_ref1'], "text").
    GetSQLValueString ($_POST ['pantone_ref1_image'], "text").
    GetSQLValueString ($_POST ['font_ref1'], "text").
    GetSQLValueString ($_POST ['font_ref1_image'], "text").
    GetSQLValueString ($_POST ['date'], 'day'),
    GetSQLValueString ($_POST ['client_ID'], "int"));

    You can see where I have gone wrong?

    Thank you

    In the update query, you have 6 %s but GetSQLValueString 7. That's your problem.

  • Dreamweaver CS5, MySQL, PHP: Why the views are listed under the tables in connection

    Using Dreamweaver C5 on a remote server with MySQL and PHP, I notifce the opinion that I defined in the database are the list under tables in the login window, not under views. Probably does not really matter, but I was wondering if there is a way to influence this - keeping views listed separately in the tables.

    Hello

    This has to do with how MySQL stores the view in the database, (a similar problem occurs with procedures) that they are stored as part of the entire database.

    View on there own are not natively supported in dreamweaver.

    PZ

Maybe you are looking for