Flex 4 Air App with SSL Data Endpoint

Hello everyone.  My company is developing an internal Adobe Air application for data monitoring and user management.  We use a Zend_AMF PHP Data endpoint.  Currently it works over a standart http://www.mysite.com/air/gateway.php URL.  However we need to use HTTPS://www.mysite.com/air/gateway.php
We change the dataservice in the services.xml file and compile the Air Application. However it still just defaults back to a non secured connection.  After tonnes of searching over the major search engines and various forums all we were able to find was a crossdomain.xml file.  However as this is an Air application that does not seem to apply.  If anyone knows anything we would much appreciate the help.
Cheers.

<channels>
<channel-definition id="zend-amf-channel" class="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://www.mysite.com/gateway.php" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
</channel-definition>
</channels>
Problem Solved.

Similar Messages

  • Browser inside a Flash/FLex/Air-App with WebGL-Support?

    Hello,
    I´m using Adobe Air/Flex to build a Desktop App. Inside the App the user should be able to access an Internet Browser. This part is actually working so far.
    BUT:   THE ADOBE AIR BROWSER IS NOT SUPPORTING WEBGL.
    Is there any method to activate the WebGL Support so I could open WebGL-Dependent URLs from Inside my Desktop App?
    Sure, I could tell the User he should Alt+Tab to switch to an WebGL-Compatible Browser, but it would so much better if this all would work from inside my Application.
    Thanks for answering!
    Stefan

    The syntax for the update is incorrect, you can use the update statement as
    sqls.text = "UPDATE videos SET thumb = 'ram' + '''s' where id = 2";
    Let me know if this worked.

  • SQLite error #3115 in Flex/Air App: with (')

    Hi,
    I am trying to do a simple SQLite query from inside and Air application:
    var sqls:SQLStatement = new SQLStatement();
    sqls.sqlConnection = sqlc;
    sqls.text = "UPDATE videos SET thumb = 'ram's' where id = 2";
    sqls.execute();
    I need to add ' same as ram's
    Error:
    SQLError: 'Error #3115: SQL Error.', details:'near 's': syntax error', operation:'execute', detailID:'2003'
    I'm using "addslashes()" but not working
    Not sure why it does not work. Please help me.
    Thanks,
    Dhaval

    The syntax for the update is incorrect, you can use the update statement as
    sqls.text = "UPDATE videos SET thumb = 'ram' + '''s' where id = 2";
    Let me know if this worked.

  • Example working Flex AIR app for Android?

    I'm having trouble getting even the most basic AIR app working on Android. Here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
                            width="600" height="600">
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Label text="Hello World"/>
    </s:WindowedApplication>
    It works fine running on  Windows in Flash Builder, obviously it's pretty simple. Here are the  commands I use to put it on a Samsung Galaxy Tab with Android 2.2.
    C:\Users\Ryan\Adobe  Flash Builder 4\Test2\bin-release>adt -package -storetype pkcs12  -keystore C:\Users\Ryan\STG-Android.pfx Test2.air Test2-app.xml  Test2.swf
    password:
    C:\Users\Ryan\Adobe Flash Builder 4\Test2\bin-release>adt -package  -target apk -storetype pkcs12 -keystore C:\Users\Ryan\STG-Android.pfx  Test2.apk Test2-app.xml Test2.swf
    password:
    test
    C:\Users\Ryan\Adobe Flash Builder 4\Test2\bin-release>adb install -r Test2.apk
    2286 KB/s (419172 bytes in 0.179s)
             pkg: /data/local/tmp/Test2.apk
    Success
    A Test2 app icon shows up on my Galaxy Tab  under Applications but when I run the app I just see a plain white  screen, I don't see the words "Hello World". Any ideas? Does anyone have  an example Flex AIR app that works on Android and can post the code so I  can try it on my Galaxy Tab? I know AIR is installed correctly on my  Galaxy because I installed an AIR app called South Park Avatar Creator  that I got from the market and it works fine.
    Thanks,
    Ryan
    P.S.  Here is the Test2-app.xml from my non-working project above in case it  helps. This is the default generated with a new Flex app in Flash  Builder 4 using the Flex 4.1.0 AIR 2.5 SDK but I uncommented the andoid  tags and set the visible tag to true.
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    <!-- Adobe AIR Application Descriptor File Template.
        Specifies parameters for identifying, installing, and launching AIR applications.
        xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5
                 The last segment of the namespace specifies the version
                 of the AIR runtime required for this application to run.
         minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                 the application. Optional.
    -->
        <!-- A universally unique application identifier. Must be unique across all AIR applications.
         Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
         <id>Test2</id>
        <!-- Used as the filename for the application. Required. -->
         <filename>Test2</filename>
        <!-- The name that is displayed in the AIR application installer.
         May have multiple values for each language. See samples or xsd schema file. Optional. -->
         <name>Test2</name>
         <!-- A string value of the format  <0-999>.<0-999>.<0-999> that represents application  version which can be used to check for application upgrade.
         Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
         An updated version of application must have a versionNumber value  higher than the previous version. Required for namespace >= 2.5 .  -->
         <versionNumber>1.0.0</versionNumber>
         <!-- A string value (such as "v1", "2.5", or "Alpha 1") that  represents the version of the application, as it should be shown to  users. Optional. -->
         <!-- <versionLabel></versionLabel> -->
        <!-- Description, displayed in the AIR application installer.
         May have multiple values for each language. See samples or xsd schema file. Optional. -->
         <!-- <description></description> -->
        <!-- Copyright information. Optional -->
         <!-- <copyright></copyright> -->
        <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
         <!-- <publisherID></publisherID> -->
        <!-- Settings for the application's initial window. Required. -->
         <initialWindow>
             <!-- The main SWF or HTML file of the application. Required. -->
             <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
             <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
             <!-- The title of the main window. Optional. -->
             <!-- <title></title> -->
            <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
             <!-- <systemChrome></systemChrome> -->
            <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
             <!-- <transparent></transparent> -->
            <!-- Whether the window is initially visible. Optional. Default false. -->
             <visible>true</visible>
            <!-- Whether the user can minimize the window. Optional. Default true. -->
             <!-- <minimizable></minimizable> -->
            <!-- Whether the user can maximize the window. Optional. Default true. -->
             <!-- <maximizable></maximizable> -->
            <!-- Whether the user can resize the window. Optional. Default true. -->
             <!-- <resizable></resizable> -->
            <!-- The window's initial width in pixels. Optional. -->
             <!-- <width></width> -->
            <!-- The window's initial height in pixels. Optional. -->
             <!-- <height></height> -->
            <!-- The window's initial x position. Optional. -->
             <!-- <x></x> -->
            <!-- The window's initial y position. Optional. -->
             <!-- <y></y> -->
            <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
             <!-- <minSize></minSize> -->
            <!-- The window's initial maximum size, specified as a  width/height pair in pixels, such as "1600 1200". Optional. -->
             <!-- <maxSize></maxSize> -->
         </initialWindow>
        <!-- We recommend omitting the supportedProfiles element, -->
         <!-- which in turn permits your application to be deployed to all -->
         <!-- devices supported by AIR. If you wish to restrict deployment -->
         <!-- (i.e., to only mobile devices) then add this element and list -->
         <!-- only the profiles which your application does support. -->
         <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
        <!-- The subpath of the standard default installation location to use. Optional. -->
         <!-- <installFolder></installFolder> -->
        <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
         <!-- <programMenuFolder></programMenuFolder> -->
        <!-- The icon the system uses for the application. For at least one resolution,
         specify the path to a PNG file included in the AIR package. Optional. -->
         <!-- <icon>
             <image16x16></image16x16>
             <image32x32></image32x32>
             <image36x36></image36x36>
             <image48x48></image48x48>
             <image72x72></image72x72>
             <image128x128></image128x128>
         </icon> -->
        <!-- Whether the application handles the update when a user double-clicks an update version
         of the AIR file (true), or the default AIR application installer handles the update (false).
         Optional. Default false. -->
         <!-- <customUpdateUI></customUpdateUI> -->
         <!-- Whether the application can be launched when the user clicks a link in a web browser.
         Optional. Default false. -->
         <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
        <!-- Listing of file types for which the application can register. Optional. -->
         <!-- <fileTypes> -->
            <!-- Defines one file type. Optional. -->
             <!-- <fileType> -->
                <!-- The name that the system displays for the registered file type. Required. -->
                 <!-- <name></name> -->
                <!-- The extension to register. Required. -->
                 <!-- <extension></extension> -->
                 <!-- The description of the file type. Optional. -->
                 <!-- <description></description> -->
                 <!-- The MIME content type. -->
                 <!-- <contentType></contentType> -->
                 <!-- The icon to display for the file type. Optional. -->
                 <!-- <icon>
                     <image16x16></image16x16>
                     <image32x32></image32x32>
                     <image48x48></image48x48>
                     <image128x128></image128x128>
                 </icon> -->
             <!-- </fileType> -->
         <!-- </fileTypes> -->
        <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
         <android>
             <manifestAdditions>
             <![CDATA[
                 <manifest android:installLocation="auto">
                     <uses-permission android:name="android.permission.INTERNET"/>
                     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                     <uses-configuration android:reqFiveWayNav="true"/>
                     <supports-screens android:normalScreens="true"/>
                     <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                     <application android:enabled="true">
                         <activity android:excludeFromRecents="false">
                             <intent-filter>
                                 <action android:name="android.intent.action.MAIN"/>
                                 <category android:name="android.intent.category.LAUNCHER"/>
                             </intent-filter>
                         </activity>
                     </application>
                 </manifest>
             ]]>
             </manifestAdditions>
         </android>
         <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    </application>

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
                            width="600" height="600">
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Label text="Hello World"/>
    </s:Application>

  • Flex Air Apps on Blackberry

    I've had a Flex Air app on Playbook since it Adobe first supported Blackberry.  But, I haven't had a client requirement for deploying to Blackberry in a long time.  What is the status on Adobe's support for Blackberry?  On the Air Dev Center, I see no references to Blackberry anymore???
    Can I still build a cross-platform app for latest Blackberry devices (Blackberry 10, Playbook, etc.) using the standard Flex mobile components and Flash Builder 4.6?
    After a brief search on Blackberry's Air page, it looks like they moved to requiring the QNX components, ANEs and a new pure AS3 SDK only.  If I have to re-write code specific for Blackberry now, then it makes no sense for me to offer that to my clients. (unless they only want BB).
    So, where does Adobe stand now with Flex Mobile in Flash Builder deploying to Blackberry 10 and the Playbook?
    I'd appreciate if you could help bring me back up to speed.
    Thanks,
    Don

    Absolutely, Flex works very well indeed and is fully supported on BlackBerry PlayBook and BB10 devices. The free packaging module for Flash Builder is part of the BB SDK for AIR and is supplied by RIM, not by Adobe.
    With Flex you'll of course be using Adobe UI components, which look less native than the BB-supplied "pure AS3" UI components unless you skin them. But they work just fine.

  • HTML based AIR app with transparent background (PNG)

    Hi guys,
    I have been developing a VERY simple HTML / JavaScript AIR app with Dreamweaver CS3 and Photoshop CS3.
    I have skinned the app with a simple transparent PNG file (Photoshop > Save for Web and Devices). I have set the PNG as the <body> background-image via CSS and the body background-color is undefined. I have also set the app to:
        <systemChrome>none</systemChrome>
        <transparent>true</transparent>
    My problem is that I get a white opaque background showing through behind / around the PNG.
    Q: Is it possible for HTML / JavaScript AIR apps to have transparent backgrounds (I have seen lots of info about how to do this in Flash / Flex but not HTML)?
    Q: What do I need to change or do to make it work?
    Many, many thanks,
    B

    Oops, sorry.
    I was using the BluePrint CSS Framework and it turns out that that was setting a background color.
    Please ignore this thread!

  • Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    I have same Problem. I tried all options - Reset All Settings, Erase Content & reset all settings, Upgrated to IOS8.1, Restore using iTune. But problem persists.
    When I turn Cellular Data or Wifi ON, then there is a lag while opening the Apps. But If I turn Data/Wifi off, phone becomes super fast. I have checked with my friends. They are not facing this issue. Not sure if Apple know this.

  • Publishing air apps with native extension with Flash CS6 on Windows

    Hi all,
    is there any trick to publish air apps with Flash CS6 on Windows?
    I tried all native extensions from devnet, but nothing work to me.
    I read on Mac is possibility to specify the iOS SDK folder in publish
    settings, but on Windows it´s missing. 
    Is there anybody who has some experiences with publishing apps
    with native extensions for iOS and Android with windows Flash CS6?
    Thanks for all advices.

    I sympathize. I recently found a native alert for iOS and Android that's working with Flash CS6 on Windows with AIR 3.2.0.2070 but not AIR 3.2.0.2060. You can get the ANE here:
    http://www.jampot.ie/ane/
    Haven't tried the other ones. Let us know if you decide to try them.
    The sample code they have on the page doesn't work with the native alert. Here's the code I created - it's a document class for a .fla that has one dynamic TextField and one Button component on the stage :
    http://pastebin.com/DsxR9nJ4

  • Air apps with outside elements

    Hello,
    First of all i'm a newbie to air.
    my question is : is it possible to create an desktop Air apps
    with the "core components" of the apps (in my case .air file and
    swf, xml) and as the full application will use flv give the
    possibility to download those flv to folder (inside the
    installation folder) or to use them from a server online.
    The final purpose of my question is that i'd like that my
    apps could look if there's updated flv available.
    Hope that my question is clear enough bcause of my poor
    english ;)
    Thanks

    Hi,
    AIR has APIs that let you download files from the internet
    and store it on your local filesystem (though not in the
    application installation directory, but a different location: the
    application storage directory). You should be able to play those
    flv's from your AIR app.
    Using the same API's you can also download a file that lets
    your app know if there is an updated flv available.

  • HTML-based AIR app with transparent UI, shadows, etc.?

    I'm debating on whether to use Flex or HTML/Ajax for a widget
    in a project. If I make an HTML-based widget, is it possible to
    have UI tricks like shadows and transparency, basically, NOT being
    confined to a standard OS "box" window? Is this possible?
    Thanks.

    Yes it is possible to do this with an HTML-based AIR app.
    However, since the visual elements will be HTML-elements, not
    display objects, you can't use the Flash APIs for shadows and
    transparency. Also, in a transparent window, SWF and PDF content in
    HTML cannot be displayed.

  • Multiple AIR apps with the same local cache?

    Hi guys,
    Is it possible to create multiple AIR apps (for mobile & desktop) that can use the same local cache?
    For example: 2 apps for iPad will use the same data store (local cache). If we synchronize (with LCDS) and get all the data for 1 application, if we open the second application, can we access the data set from the other application?
    Thx!

    Hi Vikram,
    Eventhough I think it is techincally not possible, even if it was I would not recommend doing this. I think this is asking for problems and you can wait for the day that somebody messes up your production system, thinking it is DEV.
    I would use names like DEV_Oracle_BI_DW_Base and PRD_Oracle_BI_DW_Base, to clearly distinguish between the environments. But then again, I think Informatica forces you to use different names.
    Regards,
    Toin.
    ~Corrected typo.
    Edited by: Toin on Oct 16, 2008 4:02 PM

  • Silent install Air Runtime and Air App with custom installer?

    I want to use a custom installer that will perform some actions, and then silently install air runtime and an air application. The goal here is to be able to perform a customized install for an Air application (for a user that might not have Air installed) without confusing the user with multiple install screens. Can I use a custom installer to silently install Air (if the user doesn't have it installed) and the Air app? If so, are there any restrictions on the custom installer? If there are any examples of this, please provide the links.

    Since you applied for the distribution from Adobe you should
    have received a link to a page where you can download what they
    call the "side-car" installer. It's basically an installation
    system they are making available to developers that can be easily
    configured to deliver a bundled runtime and application
    installation for Mac and Windows.
    Check your email again and see if you can't find a link in
    there pointing you to a download page for the AIR runtime as well
    as the aforementioned side-car installer. For those who don't know,
    here
    is where you can apply for a redistribution permit for AIR.
    I have a small tutorial posted that might be of help to you
    on my blog:
    http://blog.arnimaack.com/flex-air-series-4-air-all-in-one-installers-on-CD-DVD

  • Flash performance inside mx:HTML in a Flex AIR app

    Hi. I'm new to AIR development and after doing some basic tutorials I thought I'd make a little stream player app.
    The amount of tutorials on the web made me choose Flex / Flash Builder over HTML & JavaScript. When I built the player in Flex I saw performance was terrible when out of focus, I would say it drops to 3 fps if not less. Surprisingly when I downloaded someone else's similar app, his didn't have that problem. On closer inspection - he made it in HTML & JavaScript and HTML AIR apps dont suffer from the same problem.
    Is there a fix for this Flex performance problem?
    I've made a video demonstrating the difference between Flex & HTML for your convenience: http://www.youtube.com/watch?v=OU2mfELhSC4.

    Sure.
    1.
    Windows 7 Ultimate, 64bit, build 7600.
    Adobe AIR 2.0.3.13070.
    Unfortunately I only have machines with the exact same OS install at my disposal right now but I'll ask some people to test it on their boxes.
    2. http://pastebin.com/AsdmD3Yb
    When I point the mx:HTML to a youtube url instead of ustream.html the fps drops around to around 5 to 10. That's a lot more fps than when using ustream. Might be a clue to whats happening.

  • Flex/Air applications with an OS X Menu Bar icon

    (Flash Builder 4 beta)
    I'm developing a flex/air application for mac os x exclusivley. The application should be very unobtrusive to the user, and as such, I want to eliminate the dock icon for the application and have it run exclusivley in the os x menu bar. Similar to a twitterific app. I've scoured the documentation for a way to do this, but only come up with methods for a system tray in windows, and dock icon function on a mac.
    Does AIR really lack the ability to have a menu bar icon?
    Thanks in advance!

    I've made menu's already for the application. They are native os x menu's but they are used create contextual menus (file, edit, view...etc...) and are only visible when the application is open. Unless their is a feauture I missed I don't think I can do it with those. I'm looking for the ability to create a menubar icon application similar to twitter, or the default apple spotlight.

  • Is there a way to generate air apps with hidden or "insided" swf?

    The swf file is very very easy to be decompiled after installed...
    Why adobe air doesn't include swf into the executable file?
    I have to protect it.

    but it will be complicated for Android and iOS
    You don't need any setup mangers for this. Adobe Air for iOS use embedded runtime into package (captive) and you can't build it separately. For Android there two options. Make it built-in (captive) or shared. So don't worry about mobile devices. Just use captive for Android.
    and there is another problem with the Air Security Certificate and Digital signature.
    I don't understand your issue. When you developing and publish app for iOS/Android - you must use Developer certificate that you must buy from Apple or Android/Azamon. iOS don't allow packaging without certificates. Android allow with self-signed.
    , just after the manifest document (xml) was extracted or with personal package.
    Adobe Air very flexible. You can use different techniques. For example I use visualization software to create from Adobe Air bunch of files just single one executable file. It's like packaging you app with all external files inside another app.

Maybe you are looking for

  • Can you post Notes (Display Note) at a higher level of aggregation than CVC

    I am only able to post Notes with the Display Note at the CVC level.  ALL PRODUCTS ALL CUSTOMERS and I receive the error message "No Notes can be processed in the current selection".  ONE PRODUCT ALL CUSTOMERS OR ALL PRODUCTS ONE CUSTOMER and I get d

  • Can't get the install CD's to boot.

    Dear all, I've seen topics like this but not quite the same. I have a Macbook Pro without anny OS on it. I'm trying to get the original version of OS X installed (10.5.2). It however refuses to boot from the CD. Actualy it boots..and restarts.. thats

  • Urgent - please help with parsing HTML

    Hi, I'm very new to Java - i'm a biology major, actually, but taking this class for fun. Unfortunately, I'm having quite a bit of trouble with it. I've written a class that downloads a web page, converts it to a string, and then sends the string to a

  • What does "option key" starting a MacBook Pro do?

    My computer will not boot up. Can't get past the white apple screen.

  • Window.open or window.showModalDialog question

    I am creating a response window using window.showModalDialog. The dialog has a Yes button and a No button. If the user clicks No, I want to log them out. BUT...here is my problem: The user can click the X button in the upper right hand corner of the