Flex with php air application

Hi ,
I am new in flex.
Actually i make a flex with php desktop application. There are two problems which i am not getting:
a.) I make three module which i load on tab navigator click . These mudules working fine . But when i make this project export relese build to make .exe file . These modules not added in installation file.
i.e after installation i have to copy these modules .swf file in program files where the application installed. So i want to know is there is any method so that module added in the .exe file so that they by default goes at the
time of installation of exe.
b.) I use php services in this project and when i insatlled the application to system its not working untill i add the the project service php file and zend frame work folder on user wamp . Is there any method that all these happen by default at the time of insatllation.

Hi,
AIR is best suited to be a client application.
P.S: Since you are using PHP, you may want to take a look at
amfphp so that you can use AMF to speed up data transfer between
your AIR app and the PHP server.

Similar Messages

  • Has anybody been sucessful in integrating other  Video encoders (on2 Flix, Mainconcept) with  Adobe AIR applications

    Has anybody been sucessful in integrating other Video
    encoders (on2 Flix, Mainconcept, or any other commercially
    available video encoder) with Adobe AIR live video streaming
    applications ?
    Most of the companies provide SDK's
    Is it possible at all to integrate them with Adobe Air
    applications built using Flex/ Actionscript?

    With the use of a little Alchemy magic, you can turn a C/C++ library into actionscript accessable classes!

  • CS4 or FLEX Builder for AIR Application?

    Hello,
    I have installed CS4 and Flex builder 3. I would like to develop some desktop applications, which is the best editor to develop AIR application?
    Thank you

    I faced a similar choice recently: Flash or Flex for developing CS4 panels.
    John Nack advised me to use Flex Builder. He was right. For a desktop AIR application or something like CS4 panels, the Flex Builder IDE is more powerful and helpful. If you're a developer familiar with other programming tool IDEs, like Microsoft Visual Studio, various Java IDEs, etc. then you will find the Flx Builder IDE to be more intuitive.
    Flash is a good choice for developing animated SWF panels that are driving things like Flash movies. If you use Flash, you'll have to deal with the Timeline. With Flex Builder, you don't.
    They both provide access to Action Script. But they expose functionality differently. Also, Flex Builder provides some data visualization tools, etc. that are not part of Flash.
    Mitch

  • Reuse a Flex App as AIR application

    Hi!
    I've developed a Flex application and now I want to use it
    again with the same codebase as an AIR application.
    But there are several factors that don't work as expected.
    The Flex App uses some advanced features that make reuse a
    little bit complicated:
    I use the latest Cairngorm.swc in the app.
    I use ResourceBundles in the app.
    I often use "Application.application" in the app.
    These are the three things, which make porting to AIR a
    little bit complicated.
    Are there any "Best practices" for sharing the same codebase
    for Flex and AIR?
    I've tried to make the Flex app a module and reuse that, but
    then I get troubles with ResourceBundles, also the addressing
    doesn't work correctly anymore (I've refactored the
    Application.application.<element> calls to say:
    Application.application.app.<element> where "app" is the ID
    of the ModuleLoader). But I get the error that
    <ApplicationType> cannot be converted to ModuleLoader.
    Then I've tried to make a SWC out of the App, didn't work
    either.
    Has someone already done things like that?
    What's the best way to accomplish that?
    Thanks a lot for replies!
    Bye,
    Fritz

    Hi.
    Based on Adobe's document
    http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html
    which I haven't found earlier, I got the project working with all
    my special things lik Cairngorm and ResourceBundle.
    Currently I'm writing a tutorial how this works, I'll post it
    for further use on monday :-)
    Bye,
    Fritz

  • FLEX with PHP (Overview)

    Hello FLEX-PHP Gurus,
    I am a PHP programmer who wants to start using FLEX.
    I need to create of graphing applications that take huge
    amounts of data from the server.I have the Flex 2 SDK with
    charting. I am using Apache as my web server. I understand that I
    would need an AMF to communicate between PHP and Flex2. What else
    would I need?
    Also, am I losing out on any Flex functionality by not using
    Java technologies at the backend?
    Thanks,
    Rati

    Catch one of the webcasts. That cleared things up for me. web
    service is XML, so it is slower than the binary data transfers (amf
    or weborbs). I am a complete newb to flex...but that is the messag
    that was conveyed, the more data, the bigger the benefit of the amf
    stuff.
    http://www.themidnightcoders.com/blog/.
    I am only using the serbvice though, and it is simple
    compared to what would be required in c# or php to consume the web
    service.
    some benchmarks:
    http://www.jamesward.org/wordpress/2007/04/30/ajax-and-flex-data-loading-benchmarks/

  • Connecting flex with php(wamp)

    i m trying to connect a flex application to a php (wamp server)..bt i m unable to do soo
    ma application runs fine....bt wen i click submit button it shows ..transfering data frm localhost n nothing happens......database is nt updated........
    //flex code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="send_data()">
    <mx:Script>
    <![CDATA[
    import mx.controls.DataGrid
    private function send_data():void {
    userRequest.send();
    ]]>
    </mx:Script>
    <mx:Label x="79" y="89" text="username"/>
    <mx:Label x="79" y="128" text="rolnumber"/>
    <mx:TextInput id="nm" x="153" y="87"/>
    <mx:TextInput x="153" y="126" id="roll"/>
    <mx:Button x="127" y="191" label="submit" id="sub" click="send_data()"/>
    <mx:HTTPService id="userRequest" url="http://localhost/connect.php" useProxy="false" method="POST">
    <mx:request xmlns="">
    <username>{nm.text}</username><rollnumber>{roll.text}</rollnumber>
    </mx:request>
    </mx:HTTPService>
    </mx:Application>
    //php code
    <?php
    mysql_connect("localhost", "root", "") or die("cannot connect");
    mysql_select_db("std_db") or die("cannot select database");
    $q="INSERT INTO `std_db`.`student` (`name` ,`roll`)VALUES ( '$_POST[nm]', $_POST[roll])";
    if(mysql_query($q))
    echo "sucessfully inserted";
    else
    echo" error occured";
    //if($row=mysql_fetch_array($result))
    //echo $row['
    ?>

    naval joshi wrote:
    thanx a lot it worked........wat shd be the code fr display full datbasee nnnnnnshd i usee the datagrid?
    you can use a datagrid if you want, or a tile list, or a list, or an advanced datagrid, it's entirely up to you and what you plan to do with the data.
    The Full working basic code for what you're trying to do is this:
    Flex code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="send_data()">
        <mx:Script>
        <![CDATA[
            import mx.rpc.events.ResultEvent;
            import mx.controls.DataGrid
            private function send_data():void
                userRequest.send();
            private function handleResult(evt:ResultEvent):void
                dg1.dataProvider = evt.result.player;
        ]]>
        </mx:Script>
        <mx:Label x="79" y="89" text="username"/>
        <mx:Label x="79" y="128" text="rolnumber"/>
        <mx:TextInput id="nm" x="153" y="87"/>
        <mx:TextInput x="153" y="126" id="roll"/>
        <mx:Button x="127" y="191" label="submit" id="sub" click="send_data()"/>
        <mx:HTTPService id="userRequest" result="handleResult(event)" url="http://localhost/connect.php" useProxy="false" method="POST">
            <mx:request xmlns="">
                <username>{nm.text}</username><rollnumber>{roll.text}</rollnumber>
            </mx:request>
        </mx:HTTPService>
        <mx:DataGrid id="dg1" x="69" y="261">
            <mx:columns>
                <mx:DataGridColumn headerText="Name" dataField="name"/>
                <mx:DataGridColumn headerText="Roll" dataField="roll"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    PHP Code:
    <?php
        mysql_connect("localhost", "root", "") or die("cannot connect");
        mysql_select_db("std_db") or die("cannot select database");
        if ($_POST["username"])
            $name = mysql_real_escape_string($_POST["username"]);
            $roll = mysql_real_escape_string($_POST["rollnumber"]);
            $query = "INSERT INTO student (name , roll) VALUES ('$name', '$roll')";
            if(mysql_query($query))
                echo "sucessfully inserted";
            else
                echo" error occured";
        $query="SELECT * FROM student";
        $result = mysql_query($query);
        $num_rows = mysql_numrows($result);
        $i=0;
        while ($i < $num_rows)
            $getName = mysql_result($result,$i,"name");
            $getRoll = mysql_result($result,$i,"roll");
            print "<player><name>".$getName."</name><roll>".$getRoll."</roll></player>";
            $i++;
    ?>

  • Need some help with my Air Application

    Hello Friends
    I am developing a desktop application which have few modules from flex and few from HTML-Perl based existing application.
    I am using <mx:Html> component for showing that HTML-Perl Application.
    That application is running fine inside <mx:Html> but when we reach to the last step of the application which has payment integrated with other website.
    It sends the request but never gives back the response from the other website.
    To make it clear you can assume its a shopping website wrapped inside Air Applicaion with <mx:Html> componenet and we make a call to payment portal like paypal or other the response never comes back.
    Can you guys tell me what could be the issue?
    Regards
    Harpreet

    So if i am understanding correctly once the J button ("Donate 10") ios clicked you want it to call the program. What i suggest is using the action listner on that button and inside action performed class have it call the program. somthing like this
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    SMSObject send;
    JButton b1 = new JButton("Donate 10", leftButtonIcon);
    b1.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    send = new SMSObject(param)
    send.run();
    Basically create a vararible of the type SMSObjest, add an actionlistner to the button and inside the actionperformed call the method

  • Anyone use Flex with php for file upload? PHP Notice:  Undefined index:  Filedata

    My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
    <form action="upload.php"  enctype="multipart/form-data"/>
    But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
    PHP Notice:  Undefined index:  Filedata
    $filename = $_FILES['Filedata']['name'];
    public function selectHandler(event:Event):void {
                    request = new URLRequest(UPLOAD_DIR);
                    try {
                        fileRef.upload(request);
                        textarea1.text = "Uploading " + fileRef.name + "...";
                    catch (error:Error) {
                        trace("Unable to upload file.");
                        textarea1.text += "\nUnable to upload file.";

    Hi, Thanks for your reply !
    Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
    I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
    Also how do i debug a php file ?
    ANy help would be thankful !

  • Tampering with installed AIR applications is POSSIBLE

    I was surprised to discover that my installed AIR package is
    fully extracted to the installation directory and all of my content
    files are available for any one to view.
    Worse than that, I thought that one of the benefits of having
    code signed packages was that the runtime would detect any
    tampering with the resources in the package not only when the
    package is first installed (protecting the user) but when the
    packaged application is launched (protecting the application
    provider who will probably be connecting the application to their
    web services).
    But experimentation has proved that the runtime does NOT
    detect tampering when an application is launched. I adjusted the
    security privileges on some of the installed content files and then
    edited some html and javascript files that were part of my package.
    When I launched the application the runtime happily loaded and
    executed my altered content.

    The problem is that code injection provides an easy avenue
    for a hacker to piggy back new calls to the web service in the
    middle of execution of the application in a privileged portion of
    the application where security mechanisms have already granted
    access to the application but before that access has been revoked.
    Being that all AIR code is executed within the AIR Runtime it would
    have been beneficial to developers to have the runtime ensure that
    code has not been tampered with as it is loaded into the Runtime
    environment. In a native desktop application there are more
    capabilities that developers can call upon to help ensure the
    integrity of their application. The AIR runtime does expose some
    features that might enable developers to implement their own tamper
    checks but it certainly will not be trivial nor performant to do
    so.

  • Problem with an AIR application on OS X 10.8

    Hello everyone,
    Let me start with a small explanation of what I am and what I do:
    I am currently working under the alter ego named "Boompje" to provide roughly 100.000 people a working Mac client for a major online game (named League of Legends). The lobby room (named PvP.net) of this game runs natively through Adobe AIR.
    The problem can be described as following:
    On both OS X 10.6 and 10.7 there are zero issues with the PvP.net app. However, on 10.8 (released today) it is impossible to use this PvP.net app. It is abled to launch, but as soon as it needs to connect to servers, it errors out.
    The only error message that appears is:
    TypeError: Error #1034
    Opened log file:
    /Users/xxxxxxxxxxxx/Desktop/iLoL Open Beta 1.1.app/Contents/Resources/PvP.net.app/Contents/Resources/logs/LolClient.20120725.215638. log
    Module configurations loaded.
    We have tried to replace the AIR framework with all 3.x versions, but that is to no avail. Any help would be greatly appreciated. I'll check this post a few times a day, any specific input will be provided if asked.
    With kind regards,
    Koen Hendrix // Boompje

    Thanks Koen,
    For reference, our internal bug number is 3223005.  We believe we have an idea what's going on with your rtmps and we're working with Apple to resolve the problem.  We'll update the public bug when we have additional info, but feel free to ping this thread or me directly ([email protected]) for updates.
    Marcus, I suspect you're running into a different problem.  Could you add yours to bugbase.adobe.com too?
    Thanks,
    Chris

  • Problem with signing AIR application on Mac

    I have a Code Signing key from Comodo as a P7s file which has been imported into Keychain Access on my Mac.
    Keychain Access lets me export the key to a P12 file but does not give me the option to export the key with the entire chain intact.
    I can successfully identify the exported key but then when I try to export a release build I get the error:
    Error creating AIR file: Unable to build a valid certificate chain for the signer.
    Any suggestions on how to overcome this issue?
    TIA
    David Anson

    I think someone in the AIR forums will have a higher probability of knowing how to do this using Keychain:
    http://forums.adobe.com/community/air
    Thanks,
    Anirudh

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • Problems with flex and php.

    Hello, my name is Gamaliel Arredondo, i have to develope a project in flash builder 4 using the data service to connect with php, the application has installed the zend framework automatically just like the tutorials said, I use xampp and i have the files in the htdoc location, all the path are correct but when i want to connect to my php classes i receive this message:
    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.     /0/onResultÿÿÿÿ � Uflex.messaging.messages.AcknowledgeMessage correlationId clientId destination messageId timestamp timeToLive headers  body I797BFBCC-250A-A100-9954-68CD2AC82DF5 I2570DA6E-2F76-55E9-2249-000075B2C293  I590AA123-C3CE-5F48-6A94-00002F9B370A  126571301000      ‡G
    I have searched on internet in order to find a solution but i haven't found anything that can help me, so i would like to receive some of help, my email is [email protected], if you can help me i will thank you so much, have a nice day.

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • Embedding a mini webserver with AIR applications

    After failing to find a solution to the problem I mentioned
    here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=75&catid=697&threadid =1392396&highlight_key=y&keyword1=jpeg
    and in several other threads,,
    I started looking for ways to use external libraries,, and
    possibly
    the GD Library.
    Is it possible to embed a mini web server with Adobe Air
    applications
    (along with the GD library) ?? Has anybody succeeded in
    achieving
    similar tasks ??

    No there isn't a good way to do this from AIR. The biggest
    problem is that you couldn't start up the server from AIR, so a
    user would always need to start the server, then start your AIR
    app.
    You could use Pixel Bender to solve your image resizing
    quality problem. Pixel Bender is available in the Flash 10 beta
    now, and should be available in the next release of AIR. (See
    http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit.)
    Note that your image quality problem is not with the JPEG encoder,
    it is the resize operation. Since bitmap smoothing is not working
    for some reason, you get nearest neighbor sampling -- which
    produces the artifacts that you see in your images. Using Pixel
    Bender you could code your own resize filter that uses bilinear or
    even bicubic sampling.

  • Identical flex-air applications do not compile

    I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.
    I have two identical basic flex air applications, but one will not compile, the other will.
    When I try to run the application from flex builder the first app runs fine while the second one doesn't.
    any ideas?
    http://www.andy-hayes.com/download/TestApp.zip
    http://www.andy-hayes.com/download/TestTransparentApplication.zip
    I've just about had enough of flex builder's bs. tbh.

    Hi Randy,<br /><br />This forum really isn't the place to try to get support on app compilation.  We try to keep discussion here to development of the SDK itself.  I'd suggest looking at the regular Flex forums or flexcoders and posting more details as to the error you're seeing.<br /><br />Matt<br /><br /><br />On 1/13/09 3:51 AM, "randy gland" <[email protected]> wrote:<br /><br />A new discussion was started by randy gland in<br /><br />Developers --<br />  Identical flex-air applications do not compile<br /><br />I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.<br /><br />I have two identical basic flex air applications, but one will not compile, the other will.<br /><br />When I try to run the application from flex builder the first app runs fine while the second one doesn't.<br /><br />any ideas?<br /><br />http://www.andy-hayes.com/download/TestApp.zip<br />http://www.andy-hayes.com/download/TestTransparentApplication.zip<br /><br />I've just about had enough of flex builder's bs. tbh.<br /><br />________________________________<br />View/reply at Identical flex-air applications do not compile <a href=http://www.adobeforums.com/webx?13@@.59b78044><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b78044!folder=.3c060fa3>  form to cancel your email subscription.

Maybe you are looking for

  • Long List of Problems and no one will help!!!

    I have had NOTHING but problems with this phone since the sales clerk talked me into buying it.  I've had it for a little over a year and a half.  It's had "Software" issues out the rear and it's been replaced and still has the very same issues.  YET

  • Need help in SQL Group By

    Hi all, I Hope anybody can help to provide the select statement that i need in my sitiuation. I have one table name EVENTS. I want to make a select statement that can be produced the min(TIME) and max(TIME) time for one USERID. This is my sql. Select

  • More Problems with Adobe Application Manager

    I just reformatted and upgraded from XP to Windows 7. I am trying to reinstall my Adobe applications, but AAM hangs with the message Waiting to Install...  I have more than enough space. I tried rebooting my system. I deleted and reinstalled Adobe Ap

  • TS1347 (How) can I transfer docx/exlx file to my iPad?

    (How) can I transfer docx and exlx files to my iPad mini?

  • I have photoshop 6 and just updated my camera to a nikon 750

    i shoot in raw but photoshop will not  support theses files i have updated this is the message i get when trying to open Could not complete your request because the file appears to be from a camera model which is not supported by the installed versio