Save data to mysql using AS3 + Flash Builder(flex) OR AS3+AMFPHP? or AS3

Hi,
i just want to confirm with you guys about saving data to mysql using Action script 3.
I am now developing RPG game that user can save data again and again to the MySQL.
I searched on the net and found few solutions:
AS3 alone using URL Loader
AS3 + Flex +Php to save data to mysql
AS3 + AMFPHP to save data to mysql
This make me confused as there are too many options but i do not know which one is better for me
or what are their limitations...
Could you guys help me on this?

For developing you can use the server (install like any other software), but the Zend framework is nothing more than php files, so all you need to do is upload the framework to you hosting server and all should be well.. You may have to configure a few things, but you should be able to do that yourself.
There's plenty of documentation on installing and configuring Zend on their website.
So, only get the server edition if you don't already have a dev server (on you computer) installed, like Apache. Otherwise, just grab the framework:
http://framework.zend.com/download/latest
Select "minimal package" on the page above to only get the framework (no install). Or grab both and see what each one does but the minimal package is what you need to upload to your hosting server.
As for where Flex/Flash Builder comes in.. FB is the tool you use to create a Flash/Flex application.
Zend, AMFPHP, etc.. is used to communicate with your backend from your application, using RemoteObject
RemoteObject API
http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html
Using RemoteObject components
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html

Similar Messages

  • Converting an AIR application developed using Adobe Flash Builder 4 to an .apk file for Android

    Hi,
    Is there anyone would could provide me a link or a simple guide on how to convert an AIR application I developed for the desktop  to an .apk file so I could test it on an Android device? Without using Adobe Flash Builder Burrito...Thx.

    Hi nerostealth
    These link should be able to help you:
    http://blog.omarfouad.com/?p=334
    http://blog.omarfouad.com/?p=365
    regards Mike

  • Unable to use installed Flash Builder 4 after having uninstalled Trial

    I have been using the Flash Builder 4 trial for a while now, and have since purchased a version of the software to use on my project.  However, despite having uninstalled the trial version and run the recommended registry cleaning scripts, whenever I install the purchased version of Flash Builder 4 and try to use it, I see the splash screen for the trial version coming up.
    It has an option to enter a serial number, six sets of four digits each, but the serial number on the back of the my Flash Builder 4 disc case is only eight digits long total, and doesn't fit that space.  Even then, I would not expect to see the splash screen, which explicitly mentions the trial, coming up after having uninstalled the trial.
    If in uninstall the paid version, running eclipse does not cause the splash screen to appear.  However, as soon as I do install it, and try to run with it, the trial version spalsh screen appears again.
    I had asked for help preivously, case number: #0203692609
    But the registry cleaning programs I was recommended there have not stopped the issue.

    Hi Richard,
    I think the serial number keys are always 24-digits long, so the 8-digit number you found must be something else. If you look around at the rest of your product packaging, you should be able to locate the 24-digit number you can use.
    More info here:
    http://kb2.adobe.com/cps/828/cpsid_82828.html
    The Trial mode you're seeing is expected until after you activate the product with your SN.
    -Chris

  • Same fonts used in Flash and FLEX are different

    Fonts used in Flash and Flex differs in appearance even though they are same. It lacks the anti alias property and shows pixelated in flex even if it appears normal in flash. Please see attachment.

    There can be several reasons for that.  First make sure the font is embedded properly.  Rotate the object and see how it looks.  It is also possible that in Flex the fonts are being captured as a bitmap which can turn off AA at times.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Saving data on iPhone, using Adobe Flash/AIR

    Hi, I'm new here. Anyway, I've been working on an iPhone game using Adobe Flash CS 5.5 and Adobe AIR, and now I'm trying to save data to the iPhone and I'm totally lost. I've read other forum posts elsewhere about the Local Encrypted Store, about using Shared Objects, about writing to and reading from a text file, but nothing seems to be working (I haven't tried the text one yet, because I don't know how to implement it).
    I tried the standard code for shared objects, but nope, nothing happens on the iPhone. I tried using the Local Encrypted Store, but the .isSupported always returns false. What am I doing wrong, and how do I fix this? Sorry if I'm posting in the wrong forum, I'm new here and I really need help. Thanks in advance.

    Puffin might be a good option for some people as well.  Same principle as your TeamViewer solution, but more streamlined - they run a flash instance on a server in the cloud and stream the results back to a specialized browser.
    Puffin Web Browser - The fastest mobile browser with Flash support over cloud on iPad, iPhone and Android.

  • How to retain zoom position of an image using Adobe Flash Builder?

    Hi,
      I have created an Adobe Flash Builder Mobile App. I placed an image in the Homeview. I allow the user to zoom out or zoom in the image using GestureZoom.
    The problem is each time the user zooms, it does not retain the previous position.
    For ex., If I have a map image, I zoom the Bangalore area. After the zoom, I don't see the Bangalore area in the visible portion of the device screen.
    Can anyone help me in this? I feel this is a very basic requirement of zoom but I am missing something really.
    I have seen few samples of this requirement in Adobe Flash which does not work for mobile apps.

    I don't understand what you mean, but to give you a sample file so you can see what I am talking about:
    link to fla file: http://dl.dropbox.com/u/48932382/Untitled-1.fla
    link to swf file: http://dl.dropbox.com/u/48932382/Untitled-1.swf
    As you can see in this file, I am turning the green page, but when you should be seeing behind the page, it's actually transparent and you end up seeing the page underneath it.
    Here is a picture of it: (if your wondering, the pages have the same text, it's just the color of the pages are different)

  • How to save datas automaticly making use of SQL Toolkit ?

    Hello !
    I have amounts of datas to be saved automaticly,so I want to use database.I've  registered ODBC data source in my computer.
    As the test datas are saved automaticly,I only write a function to save the datas into database.
    //write datas into database
    void WriteYBdata(char* FileName)
    char *time1;
    char *date1;
    char date[27];
    int hstmt,id,status;
    date1 = DateStr ();
    time1 = TimeStr ();
    Fmt(date,"%s<%d[w4p0]/%d[w2p0]/%d[w2p0]",date1,time1);
    hstmt = DBActivateSQL (hdbc, "SELECT * FROM ybdata");
    DBBindColInt (hstmt, 1, &id, &status);
    DBBindColChar (hstmt, 2, 27, date, &status, "");
    DBBindColFloat (hstmt, 3, &CH4, &status);
    DBBindColFloat (hstmt, 4, &CO2, &status);
    DBBindColFloat (hstmt, 5, &O2, &status);
    DBBindColFloat (hstmt, 6, &CO, &status);
    DBBindColFloat (hstmt, 7, &H2S, &status);
    DBBindColInt (hstmt, 8, &TEM, &status);
    DBBindColInt (hstmt, 9, &HUM, &status);
    DBCreateRecord(hstmt);
    DBPutRecord(hstmt);
    DBDeactivateSQL(hstmt);
    void WritePSMdata(char* FileName)
    char *time2;
    char *date2;
    char date[27];
    int hstmt,id,status;
    date2 = DateStr ();
    time2 = TimeStr ();
    Fmt(date,"%s<%d[w4p0]/%d[w2p0]/%d[w2p0]",date2,time2);
    hstmt = DBActivateSQL (hdbc, "SELECT * FROM psmdata");
    DBBindColInt (hstmt, 1, &id, &status);
    DBBindColChar (hstmt, 2, 27, date, &status, "");
    DBBindColInt (hstmt, 3, &wy_voltage,&status);
    DBBindColFloat (hstmt, 4, &zy_y1, &status);
    DBBindColFloat (hstmt, 5, &zl_i1, &status);
    DBBindColInt (hstmt, 6, &wx, &status);
    DBBindColInt (hstmt, 7, &wg, &status);
    DBBindColInt (hstmt, 8, &ws, &status);
    DBCreateRecord(hstmt);
    DBPutRecord(hstmt);
    DBDeactivateSQL(hstmt);
     I connect the database in the main function.
    I've been debug the program and it communicates normally, but it does not save datas into the database.
    The attachment is my program.It is my first time to use SQL Toolkit and I'm not familiar with it.  I would appreciate it very much if you could give me some help..
    Best regards.
    xiepei
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
    Attachments:
    Sava All Data.zip ‏37 KB

    Hi !
    Thank you very much for your reply.
    That line I want to set the time format and it could use the funtion  
    DBBindColChar (hstmt, 2, 27, date, &status, "");
    I do not know it is right or wrong.I could not see any response in this line.
    My original idea is recording the date and time when saving the datas.
    Would you have any good idea according to it ?
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.

  • Flash Professional as3, Flash Builder as3 or Flash Builder mxml?

    So there is no doubt that Flash Builder with mxml is amazing. I Built my app in 2 months and it is amazing. The problem is that my app is way too slow and it not only freezes but freezes the whole phone and you have to take out the battery.
    Now I built a test app with Flash Professional, that of course isn't yet as complicated as the Flash Builder app, which performs at the same speed as native apps. It never crashes and is just amazing.
    I am wondering which direction to go. Which IDE to choose? Flash Pro or Flash Builder?
    I agree Flash Builder is better in every way during the development process, but in the end... does all that matter? does it not all come down to how well the app performs for the end user?
    From my website development experience I noticed that Flex websites are slow and crash web browsers. On the other hand Flash Professional apps never crash the web browser and run perfectly smooth.
    I have only found two quality adobe air apps on the market and I 99% gaurantee they were both developed with Flash Professional.
    Does anyone have an example of an app they know was developed with Flash Builder using mxml and which runs smooth and never crashes?

    Speaking as a developer who has built and worked on a number of large-scale apps for long-term clients; you would need to shoot me and prise the Flex framework from my cold, dead hands before I would give it all up in favour of the huge limitations of a pure AS implementation.
    Yes, it is possible to build bad, slow, heavy Flex AIR apps. Yes, it is possible to build faster, slicker, lighter pure AS apps.
    But...
    Once an app is out there, you need to maintain it.
    And...
    If you build the thing properly in the first place, performance will be comparable or better using the well-defined systems and frameworks of Flex / AIR.
    Or rather...
    There are things that it is better to build your own controls for than to use Flex's ones, but those things are so few and far between, and so obvious after just a little bit of performance testing, that it is almost always going to be preferable to build using Flex default and then to replace the problem items _and_only_ the problem items with home-cooked controls that _are_integrated_ with the existing Flex framework.
    G

  • What is the language used in Flash Builder?

    Hi everyone - total noob here.
    I'm really interested in learning how to code ( I'm a designer, and want to add coding to my skill set).
    What would be the best way to get up to speed? What language should i learn?
    Flash Builder & Cataylst look amazing.
    cheers

    Thank you all for such a swift response. I wouldn't expect anything less
    from an Adobe forum.
    -markerlin - I guess we're in the same boat, eh? You shed some more light
    on the subject for me
    *-David - *Thank you for your clarification. It sounds like, there are three
    "languages" I should be looking at: actionscript, fxg & mxml, correct? if I
    want to be involved in both the design and the back-end aspect of a project?
    Is mxml anything like xml?
    - John - *Thank you for your brief yet concise answer. I'm just trying to
    get a clear picture of where i should be focusing my attention.
    I'm basically a designer, who wants to make the leap to designing business
    solutions to companies who want to (or need to be convinced to) take
    advantage of the amazing technology that's out there. After watching this
    Adobe eSeminar yesterday, *"Extend your brand and deliver compelling
    customer experiences"*, and viewing this (cool) graph,
    http://www.npr.org/templates/story/story.php?storyId=121875404, you'll
    notice that "computer systems design and related services", as well
    as "*management,
    scientific and technical consulting services*" have the biggest % leap of
    all industries. I'd like to position myself somewhere in there in the next
    decade.
    Essentially, i'd like to be a designer that can explain what the
    programming/coding needs to be and actually *know *what i'm talking about...
    That's my long answer, anyway.
    Oh, and thank you for this site!
    If you want to learn FB go to this Adobe website for training:
    http://www.adobe.com/devnet/flex/videotraining/flex4beta/index.html this
    looks great, & i'll probably work my way through it.
    cheers
    Stuart
    http://stuartroholt.com
    http://www.twitter.com/stuartroholt
    http://www.soundcloud.com/stubaby

  • Flash Builder, Flex SDK 4.1 and OSMF versions

    Hi,
    I use Flash Builder (4.5) and have to use the 4.1 Flex SDK to make AIR apps for TV sets. The OSMF lib provided in the 4.1 SDK doesnt meet my needs, but the 4.5 version does. However, when I add another OSMF.swc version to my libraries, I get a Conflict error and cannot compile the app. If to prevent conflicts I remove the native OSMF.swf (Properties -> Flex Buid Path -> Remove) then Flash Builder signals an error (red cross aside the project in the project explorer), but won't say where it is. Of course it will not compile either.
    Any idea ?

    If I had to summarize my problem in ten words :
    With Flex 4.5 SDK and AIR 2.6 SDK I can stream dynamic http in the VideoPlayer element, but it won't play on a Samsung TV.
    With Flex 4.1 SDK and AIR 2.6 SDK I can launch the app on a Samsung TV, but the VideoPlayer element won't play any dynamic http stream.
    I assume this problem comes from OSMF because it is the library supposedly handling the dynamic streaming. I just can't make it work within Flex 4.1 :
    If I delete the native osmf.swc and remove it from the Flex Build Path properties, Flash Builder won't compile, claiming there is an error, even if I add other more recent osmf.swc.
    If I don't delete it and still add another one, either I get a conflict error or a "not found" error. either way it won't compile.

  • Save data to excel using froms_ole builtin

    Hi All,
    can somebody send me an example how to save any data to excel workbook
    using FORMS_OLE builtin package (or OLE2 in later versions) ?
    I'm working with forms 4.5
    Thanks
    Brano

    For merging of cells you can refer following code!
    [Merging of cells.|https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/oleconceptfordownloadingthereportoutputintoexcel]
    Regards,
    Lalit Mohan Gupta.

  • Update current date in mysql using Update form DW CS4 PHP

    I have a field called datePosted that is set to curdate in the database.  What I want to do is when the checkbox on this form called approved is checked, and the form is submitted, I want that dateApproved field to update to the current date in the database.  When I have tried it, it says zero.  I have tried setting a variable and using now() but cant get it to change on update.
    Here is the form
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
        <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">JobName:</td>
            <td><input type="text" name="jobName" value="<?php echo htmlentities($row_rs_crave['jobName'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right" valign="top">Description:</td>
            <td><textarea name="description" cols="50" rows="5"><?php echo htmlentities($row_rs_crave['description'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">State:</td>
            <td><select name="state">
              <option value="h" <?php if (!(strcmp("h", htmlentities($row_rs_crave['state'], ENT_COMPAT, 'UTF-8')))) {echo "SELECTED";} ?>>hh</option>
            </select></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">FleetID:</td>
            <td><input type="text" name="fleetID" value="<?php echo htmlentities($row_rs_crave['fleetID'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Approved:</td>
            <td><input type="checkbox" name="approved" value=""  <?php if (!(strcmp(htmlentities($row_rs_crave['approved'], ENT_COMPAT, 'UTF-8'),""))) {echo "checked=\"checked\"";} ?> /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">DatePosted:</td>
            <td><input type="text" name="datePosted" value="<?php echo htmlentities($row_rs_crave['datePosted'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"> </td>
            <td><input type="submit" value="Update record" /></td>
          </tr>
        </table>
        <input type="hidden" name="jobid" value="<?php echo $row_rs_crave['jobid']; ?>" />
        <input type="hidden" name="MM_update" value="form1" />
      </form>
    And they sql
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s, `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']) ? "true" : "", "defined","1","0"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));

    Change the SQL like this:
    // Check whether the approved checkbox has been selected
    $_POST['approved'] = isset($_POST['approved']) ? 1 : 0;
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
    $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s,
    `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']), "defined","NOW()","approved"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));
    What that does is check whether the approved checkbox has been selected. If it has, $_POST['approved'] is set to 1 (true); if not, it's set to 0 (false).
    In the GetSQLValueString() function, the value is set to NOW() if the checkbox has been selected. Otherwise, the existing value in the approved column is reassigned.

  • How do you save data to ascii using Diadem

    Is this possible? If not, does anyone have a solution?
    Best regards and thanks in advance

    Hi Mpc138,
    Have you tried the NAVIGATOR menu "File >> Save as...", then changing the "Save as type:" field from TDM to "Textfile - Auto detect"?  The name of that field will be different in older DIAdem versions, probably something with "CSV" in it.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Flash builder flex app

    Hy,
    I went to create a flex app, I need some help on:
    - How to choose the action of a button
    - How to integrate the RSS
    Thinks a lot
    Thomas

    Hy,
    I already made the main menu:
    But the "ligne n" button does not make any action,whereas I want that when I click on this button , a new page with a RSS feed appears.

  • New to programming. Should I use Flash Builder 4.6 to create CRUD interface to MySQL?

    Having just acquired Creative Cloud subscription, I see that I have access to Flash Builder 4.6 Premium. I haven't figured out yet if I will eventually have access to Flash Builder 4.6 for PHP when / if it is released.
    I am relatively new to programming. I want to create a desktop application, perhaps a web application, to manage a MySQL database. I am not, at this time, concerned with mobile applications. I'm primarily interested in just managing the MySQL data -- CRUD (create, read, update, delete) operations.
    Hopefully I've provided enough context. My question concerns whether learning Flash Builder 4.6 and Flex programming is an appropriate choice. Alternatively, I could just focus on learning basic PHP programming or perhaps learning to use one of the PHP frameworks (CakePHP, CodeIgniter, or Zend). It seems like learning these frameworks will take time as well, so I don't know where I should begin.
    I would really value your perspective. Are the Flash Builder related technologies here to stay? Is Flash Builder primarily suitable for mobile applications (rather than desktop or web)? Would it be more or less difficult to learn Flash Builder and Flex than PHP and one of the PHP frameworks with a view to building a MySQL CRUD application?
    Thank you, so very much -- for your time and expertise.
    Kevin

    Kevin,
    I am a big fan of Flash Builder.  You can build great desktop web applications as well desktop applications that run on AIR (installs locally to the desktop).
    I found it easier to pick up Flex (now Flash Builder) primarily due to the resources (Learn Flex in a week video tutorials http://www.adobe.com/devnet/flex/videotraining.html ) as well as a big developer community that posts a lot of how to's and walk throughs.  In my personal opinion, I think the power of Flash Builder/Flex framework is the ability to create what traditionally was seen as desktop apps within your web browser.  If you're looking to create a basic crud interface, skipping Flash Builder and just doing it in PHP may be the way to go.  If you're looking to add visualizations (ie graphs, charts) or highly interactive user interface to it then Flash Builder would be a good way to go (though keep in mind that you will still need PHP (or some other server side application layer like coldfusion) to interface with your mysql database  but Flash Builder's dataservices creates some sample php classes for you to handle CRUD using Zend).    There's lots of amazing things you can do with Flash Builder.  I'd recommend checking out some of the samples from Tour de Flex to get a sense of what can be done with Flash Builder.
    A couple of notes though - You can build and package native mobile apps with Flash Builder but if you're looking to create web apps for devices like iphone and ipads, Flash Builder isn't the solution since it compiles web based apps to Flash and we all know how idevices don't play nicely with Flash.

Maybe you are looking for

  • Extension Manager CS6 hangs on "Loading Extensions" and I cannot uninstall it.

    Hello, I've been having trouble with extension manager cs6 for about two days now, trying to apply patches to it to make it run more smoothly and stop hanging on "Loading Extensions". I have looked through these forums and they suggested that I remov

  • Why can't I delete or edit my checkboxes in acrobat 8?

    Why can't I delete my checkboxes in Adobe acrobat?? I have created and deleted hundreds of checkboxes all with different functions. I have never run into this problem. I can't edit, move, or delete a checkbox. Nothing happens when I hover over it. Th

  • ITunes keeps freezing on me.

    I am running Windows 7 (64 bit) and previously when using iTunes (running latest software) all has been ok. Over the last few days I have noticed that Itunes keeps 'freezing' . when I click on the icon, iTunes opens, then tries to connecyt to the Sto

  • Query gives me invalid number.Plz help what is wrong in this

    SELECT A909_STG_CDC.B09_K, A909_STG_CDC.B09_L, A909_STG_CDC.B09_COD_SPROD, A909_STG_CDC.B09_DAT_REG, A909_STG_CDC.B09_INIBAL, A909_STG_CDC.B09_INTRT, A909_STG_CDC.B09_AREA, A909_STG_CDC.B09_ORIG_OFFICER_NO, A909_STG_CDC.B09_COST_CJER, DA901_STG_CDC.E

  • Report on Deliveries

    Hi guys, i have to Create a report which will identify the deliveries where goods Issue status is incorrect, so for this i have to join vbuk and likp, how to join this two tables ? output fields are LIKP-VBELN LIKP-LIFEX LIKP-VSTEL LIKP-KUNAG LIKP-ER