Flex/Air Update Object Issue...

The following code is from the Air Employee Directory example
to which I have added an Update Object, the app installs and
updates with no problem, but as soon as the update is done and it's
time for the app to start, the app just doesn't come up. It was
working fine before I added the update object... Any idea on what I
could be doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
applicationComplete="onApplicationComplete()" height="100%"
width="100%" frameRate="45"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
visible="false"
showEffect="Fade" xmlns:local="*"
creationComplete="checkUpdate()">
<mx:Script>
<![CDATA[
import mx.logging.Log;
import com.adobe.empdir.commands.ui.CloseApplicationCommand;
import mx.binding.utils.BindingUtils;
import mx.events.StateChangeEvent;
import mx.events.ResizeEvent;
private function onApplicationComplete() : void
callLater( ui.init );
// We listen to CLOSING fromboth the stage and the UI. If
the user closes the app through the taskbar,
// Event.CLOSING is emitted from the stage. Otherwise, it
could be emitted from TitleConrols.mxml.
ui.addEventListener( Event.CLOSING, onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSING,
onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSE,
onWindowClose );
private function onWindowClose( evt:Event ) : void
NativeApplication.nativeApplication.exit();
private function onWindowClosing( evt:Event ) : void
evt.preventDefault();
var cmd : CloseApplicationCommand = new
CloseApplicationCommand();
cmd.execute();
]]>
</mx:Script>
<mx:Script>
<![CDATA[
import air.update.events.UpdateEvent;
import mx.controls.Alert;
import flash.events.ErrorEvent;
import air.update.ApplicationUpdaterUI;
* @var the object that that handles the update related
actions
private var appUpdater:ApplicationUpdaterUI = new
ApplicationUpdaterUI();
* This function is triggered when the application finished
to load;
* Here we initialize <code>appUpdater</code> and
set some properties
private function checkUpdate():void {
setApplicationVersion();
// we set the URL for the update.xml file
appUpdater.updateURL = "
http://localhost/updater/update.xml";
//we set the event handlers for INITIALIZED nad ERROR
appUpdater.addEventListener(UpdateEvent.INITIALIZED,
onUpdate);
appUpdater.addEventListener(ErrorEvent.ERROR, onError);
//we can hide the dialog asking for permission for checking
for a new update;
//if you want to see it just leave the default value (or set
true).
appUpdater.isCheckForUpdateVisible = false;
//if isFileUpdateVisible is set to true, File Update, File
No Update,
//and File Error dialog boxes will be displayed
appUpdater.isFileUpdateVisible = false;
//if isInstallUpdateVisible is set to true, the dialog box
for installing the update is visible
appUpdater.isInstallUpdateVisible = false;
//we initialize the updater
appUpdater.initialize();
* Handler function triggered by the
ApplicationUpdater.initialize;
* The updater was initialized and it is ready to take
commands
* (such as <code>checkNow()</code>
* @param UpdateEvent
private function onUpdate(event:UpdateEvent):void {
//start the process of checking for a new update and to
install
appUpdater.checkNow();
* Handler function for error events triggered by the
ApplicationUpdater.initialize
* @param ErrorEvent
private function onError(event:ErrorEvent):void {
Alert.show(event.toString());
* A simple code just to read the current version of the
application
* and display it in a label.
private function setApplicationVersion():void {
var appXML:XML =
NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = appXML.namespace();
]]>
</mx:Script>
<mx:TraceTarget level="0" includeDate="false"
includeTime="false"
includeCategory="true" includeLevel="true">
<mx:filters>
<mx:Array>
<mx:String>*</mx:String>
</mx:Array>
</mx:filters>
</mx:TraceTarget>
<ui:ApplicationUI id="ui" width="100%" height="100%"
/>
</mx:Application>

The following code is from the Air Employee Directory example
to which I have added an Update Object, the app installs and
updates with no problem, but as soon as the update is done and it's
time for the app to start, the app just doesn't come up. It was
working fine before I added the update object... Any idea on what I
could be doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
applicationComplete="onApplicationComplete()" height="100%"
width="100%" frameRate="45"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
visible="false"
showEffect="Fade" xmlns:local="*"
creationComplete="checkUpdate()">
<mx:Script>
<![CDATA[
import mx.logging.Log;
import com.adobe.empdir.commands.ui.CloseApplicationCommand;
import mx.binding.utils.BindingUtils;
import mx.events.StateChangeEvent;
import mx.events.ResizeEvent;
private function onApplicationComplete() : void
callLater( ui.init );
// We listen to CLOSING fromboth the stage and the UI. If
the user closes the app through the taskbar,
// Event.CLOSING is emitted from the stage. Otherwise, it
could be emitted from TitleConrols.mxml.
ui.addEventListener( Event.CLOSING, onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSING,
onWindowClosing );
stage.nativeWindow.addEventListener( Event.CLOSE,
onWindowClose );
private function onWindowClose( evt:Event ) : void
NativeApplication.nativeApplication.exit();
private function onWindowClosing( evt:Event ) : void
evt.preventDefault();
var cmd : CloseApplicationCommand = new
CloseApplicationCommand();
cmd.execute();
]]>
</mx:Script>
<mx:Script>
<![CDATA[
import air.update.events.UpdateEvent;
import mx.controls.Alert;
import flash.events.ErrorEvent;
import air.update.ApplicationUpdaterUI;
* @var the object that that handles the update related
actions
private var appUpdater:ApplicationUpdaterUI = new
ApplicationUpdaterUI();
* This function is triggered when the application finished
to load;
* Here we initialize <code>appUpdater</code> and
set some properties
private function checkUpdate():void {
setApplicationVersion();
// we set the URL for the update.xml file
appUpdater.updateURL = "
http://localhost/updater/update.xml";
//we set the event handlers for INITIALIZED nad ERROR
appUpdater.addEventListener(UpdateEvent.INITIALIZED,
onUpdate);
appUpdater.addEventListener(ErrorEvent.ERROR, onError);
//we can hide the dialog asking for permission for checking
for a new update;
//if you want to see it just leave the default value (or set
true).
appUpdater.isCheckForUpdateVisible = false;
//if isFileUpdateVisible is set to true, File Update, File
No Update,
//and File Error dialog boxes will be displayed
appUpdater.isFileUpdateVisible = false;
//if isInstallUpdateVisible is set to true, the dialog box
for installing the update is visible
appUpdater.isInstallUpdateVisible = false;
//we initialize the updater
appUpdater.initialize();
* Handler function triggered by the
ApplicationUpdater.initialize;
* The updater was initialized and it is ready to take
commands
* (such as <code>checkNow()</code>
* @param UpdateEvent
private function onUpdate(event:UpdateEvent):void {
//start the process of checking for a new update and to
install
appUpdater.checkNow();
* Handler function for error events triggered by the
ApplicationUpdater.initialize
* @param ErrorEvent
private function onError(event:ErrorEvent):void {
Alert.show(event.toString());
* A simple code just to read the current version of the
application
* and display it in a label.
private function setApplicationVersion():void {
var appXML:XML =
NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = appXML.namespace();
]]>
</mx:Script>
<mx:TraceTarget level="0" includeDate="false"
includeTime="false"
includeCategory="true" includeLevel="true">
<mx:filters>
<mx:Array>
<mx:String>*</mx:String>
</mx:Array>
</mx:filters>
</mx:TraceTarget>
<ui:ApplicationUI id="ui" width="100%" height="100%"
/>
</mx:Application>

Similar Messages

  • Air Update Framework Issue... Help please!

    The following code is from the Air Employee Directory example
    to which I have added an Update Object, the app installs and
    updates with no problem, but as soon as the update is done and it's
    time for the app to start, the app just doesn't come up. It was
    working fine before I added the update object... Any idea on what I
    could be doing wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
    applicationComplete="onApplicationComplete()" height="100%"
    width="100%" frameRate="45"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    visible="false"
    showEffect="Fade" xmlns:local="*"
    creationComplete="checkUpdate()">
    <mx:Script>
    <![CDATA[
    import mx.logging.Log;
    import com.adobe.empdir.commands.ui.CloseApplicationCommand;
    import mx.binding.utils.BindingUtils;
    import mx.events.StateChangeEvent;
    import mx.events.ResizeEvent;
    private function onApplicationComplete() : void
    callLater( ui.init );
    // We listen to CLOSING fromboth the stage and the UI. If
    the user closes the app through the taskbar,
    // Event.CLOSING is emitted from the stage. Otherwise, it
    could be emitted from TitleConrols.mxml.
    ui.addEventListener( Event.CLOSING, onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSING,
    onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSE,
    onWindowClose );
    private function onWindowClose( evt:Event ) : void
    NativeApplication.nativeApplication.exit();
    private function onWindowClosing( evt:Event ) : void
    evt.preventDefault();
    var cmd : CloseApplicationCommand = new
    CloseApplicationCommand();
    cmd.execute();
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import air.update.events.UpdateEvent;
    import mx.controls.Alert;
    import flash.events.ErrorEvent;
    import air.update.ApplicationUpdaterUI;
    * @var the object that that handles the update related
    actions
    private var appUpdater:ApplicationUpdaterUI = new
    ApplicationUpdaterUI();
    * This function is triggered when the application finished
    to load;
    * Here we initialize <code>appUpdater</code> and
    set some properties
    private function checkUpdate():void {
    setApplicationVersion();
    // we set the URL for the update.xml file
    appUpdater.updateURL = "
    http://localhost/updater/update.xml";
    //we set the event handlers for INITIALIZED nad ERROR
    appUpdater.addEventListener(UpdateEvent.INITIALIZED,
    onUpdate);
    appUpdater.addEventListener(ErrorEvent.ERROR, onError);
    //we can hide the dialog asking for permission for checking
    for a new update;
    //if you want to see it just leave the default value (or set
    true).
    appUpdater.isCheckForUpdateVisible = false;
    //if isFileUpdateVisible is set to true, File Update, File
    No Update,
    //and File Error dialog boxes will be displayed
    appUpdater.isFileUpdateVisible = false;
    //if isInstallUpdateVisible is set to true, the dialog box
    for installing the update is visible
    appUpdater.isInstallUpdateVisible = false;
    //we initialize the updater
    appUpdater.initialize();
    * Handler function triggered by the
    ApplicationUpdater.initialize;
    * The updater was initialized and it is ready to take
    commands
    * (such as <code>checkNow()</code>
    * @param UpdateEvent
    private function onUpdate(event:UpdateEvent):void {
    //start the process of checking for a new update and to
    install
    appUpdater.checkNow();
    * Handler function for error events triggered by the
    ApplicationUpdater.initialize
    * @param ErrorEvent
    private function onError(event:ErrorEvent):void {
    Alert.show(event.toString());
    * A simple code just to read the current version of the
    application
    * and display it in a label.
    private function setApplicationVersion():void {
    var appXML:XML =
    NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    ]]>
    </mx:Script>
    <mx:TraceTarget level="0" includeDate="false"
    includeTime="false"
    includeCategory="true" includeLevel="true">
    <mx:filters>
    <mx:Array>
    <mx:String>*</mx:String>
    </mx:Array>
    </mx:filters>
    </mx:TraceTarget>
    <ui:ApplicationUI id="ui" width="100%" height="100%"
    />
    </mx:Application>

    This was an issue with the Update Framework in AIR SDK 1.5.3, which has been fixed. If you still want to use the ApplicationUpdaterUI, you can replace the swc in Flex SDK 3.6 with an applicationupdater_ui.swc from a newer version of AIR.
    Have a look at solution 3 in this post for some details on where to find the applicationupdater_ui.swc and how to replace it.
    http://forums.adobe.com/message/3060118#3060118
    Hope this helps!
    Horia

  • Flex Air Performance Issue

    Hi,
    I am trying to build a Flex Air application which consist a few flash content (images transition & marquee text) loaded with swfloader. Sometimes it will playback some videos when it trigger some command. However, during my early stage of development, I encounter the performance trouble. Currently, I only have 2 flash swf files loaded into the scene. One is the image transition, and the other one is marquee text. My project scene size is 1280 x 720. I have set all the component to resize it when display in fullscreen mode to have the correct size and position for every component. However, after I try to run the display for a few minutes on my corei7 PC, everything starts to slow down. Especially during the flash image transition (just a basic fade in and out between 2 image), and it use out all my corei7 processor core usage.
    Basically just 2 simple flash component and begin to slow down after a few moment.
    Why is this happen?!!! How can I solve it? Thanks.

    Here is my 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" width="1280" height="720" backgroundColor="#0000FF" showStatusBar="false"
                                applicationComplete="init(event)">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                            import org.osmf.events.TimeEvent;
                   protected function adjustScreen():void
                        var sWidth:Number = this.width;
                        var sHeight:Number = this.height;
                        // stage height is larger / taller than 16:9
                        if (sHeight/sWidth > 0.5625){
                             backImage.width = sWidth;
                             backImage.height = backImage.width * 0.5625;
                        // stage width is larger / taller than 16:9
                        if (sHeight/sWidth < 0.5625){
                             backImage.height = sHeight;
                             backImage.width = backImage.height / 0.5625;
                        // stage size is 16:9
                        if (sHeight/sWidth == 0.5625){
                             backImage.height = sHeight;
                             backImage.width = sWidth;
                        //MainContent
                        var scaleRatio:Number = backImage.height/720;
                        mainContent.height = 505 * scaleRatio;
                        mainContent.width = 943 * scaleRatio;
                        marqueeText.height = 44 * scaleRatio;
                        marqueeText.width = 943 * scaleRatio;
                        // stage height is larger / taller than 16:9
                        if (sHeight/sWidth > 0.5625){
                             mainContent.x = 29 * scaleRatio
                             mainContent.y = 95 * scaleRatio + (this.height - (this.width * 0.5625))/2;
                             marqueeText.x = 29 * scaleRatio
                             marqueeText.y = 646 * scaleRatio + (this.height - (this.width * 0.5625))/2;
                        // stage width is larger / taller than 16:9
                        if (sHeight/sWidth < 0.5625){
                             mainContent.x = 29 * scaleRatio + (this.width - (this.height / 0.5625))/2;
                             mainContent.y = 95 * scaleRatio
                             marqueeText.x = 29 * scaleRatio + (this.width - (this.height / 0.5625))/2;
                             marqueeText.y = 646 * scaleRatio
                        // stage size is 16:9
                        if (sHeight/sWidth == 0.5625){
                             mainContent.x = 29 * scaleRatio;
                             mainContent.y = 95 * scaleRatio;
                             marqueeText.x = 29 * scaleRatio;
                             marqueeText.y = 646 * scaleRatio;
                   protected function init(event:FlexEvent):void
                        stage.addEventListener(KeyboardEvent.KEY_UP, handleKeyUp);
                        adjustScreen();
                   public function handleKeyUp(event:KeyboardEvent) :void
                        if (event.charCode == 13){ // Enter Pressed
                             stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                        if (event.charCode == 27){ // ESC Pressed
                             stage.displayState = StageDisplayState.NORMAL;
                        if (this.currentState == "State1"){
                             if (String.fromCharCode(event.charCode) == "1"){
                                  this.currentState = "video";
                                  videoContent.source = "video/Growth (ENG).mp4";
                             if (String.fromCharCode(event.charCode) == "2"){
                                  this.currentState = "video";
                                  videoContent.source = "video/Stability (ENG).mp4";
                             if (String.fromCharCode(event.charCode) == "3"){
                                  this.currentState = "video";
                                  videoContent.source = "video/Strength (ENG).mp4";
                        adjustScreen();
                   protected function videoContent_completeHandler(event:TimeEvent):void
                        this.currentState = "";
                        adjustScreen();
              ]]>
         </fx:Script>
         <s:states>
              <s:State name="State1"/>
              <s:State name="video"/>
         </s:states>
         <s:transitions>
              <s:Transition>
                   <s:Fade targets="{[mainContent, videoContent]}"/>
              </s:Transition>
         </s:transitions>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Image id="backImage" source="assets/background.jpg" smoothBitmapContent="true" maintainAspectRatio="true" horizontalCenter="0" verticalCenter="0"/>
         <mx:SWFLoader id="mainContent" source="assets/mainContent.swf" smoothBitmapContent="false" maintainAspectRatio="true" x="29" y="95" includeIn="State1"/>
         <s:VideoDisplay id="videoContent" complete="videoContent_completeHandler(event)" includeIn="video" x="{mainContent.x}" y="{mainContent.y}" width="{mainContent.width}" height="{mainContent.height}"/>
         <mx:SWFLoader id="marqueeText" source="assets/marquee.swf" smoothBitmapContent="true" maintainAspectRatio="true" x="29" y="646" scrollRect="{new Rectangle(0, 0, marqueeText.width, marqueeText.height)}"/>
    </s:WindowedApplication>
    The mainContent.swf is the swf flash which contains 2 image rotations with fade in as the transition effect.
    The marquee.swf is the swf flash with text that move from right to left continuously.

  • 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>

  • AIR Update framework with Flash Builder

    Hi,
    I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same give in the example i mentioned above.
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Flash Builder and Adobe AIR update framework

    Hi,
    I posted this in AIR forum , but thought it happens with new flash builder and flex 4 beta , i should do here also
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same given in the updater example i mentioned in the link above. Only difference is i am using spark framework. The appUpater.initialize() never seem to work and keeps throwing an exception. Any alternatives so suggestions ?
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • IOS 6.0 simulator error / Flex+AIR 3.5

    I am not able to run a Flex/AIR program on the IOS 6.0 simulator. I searched all forums. I am new to using IOS simulator. Any help is appreciated.
    I am using Flex 4.6 and AIR 3.5, with target swf version 18. A simple Flex app (WindowedApplication with a Label in it) crashes at initialization in IOS simulator.
    <?xml version="1.0"?>
    <s:WindowedApplication
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:s="library://ns.adobe.com/flex/spark">
      <s:Label text="Test"/>
    </s:WindowedApplication>
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components::WindowedApplication/initialize()
      at ptest/initialize()
      at mx.managers.systemClasses::ChildManager/childAdded()
      at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()
      at mx.managers::SystemManager/initializeTopLevelWindow()
      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()  at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/timerHandler()

    Update: the problem was resolved by changing WindowedApplication to Application.
    Is WindowedApplication not allowed for IOS/mobile ? I couldn't find any doc on this.

  • PDF Not loading anymore on Flex Air Application

    Hi,
    Ever since I updated my Adobe Readed to Version 11, I can't view any PDF on my Flex Air Application anymore. Is there anything i need to do?
    AIR version: 3.6
    OS: Mac OS X
    Flex Builder: 4.6
    Adobe Reader: 11.0.02
    Flex components used: mx:HTML
    Please help.
    Thanks!

    Yes.  This is a well known bug in Air/Google Maps.  A lot of folks reported it on the Google Maps forums and here.  It was reported over a year ago with no action yet.  Major show stopper.
    For this main reason, I switched to the http://developer.mapquest.com AS3 API.  Plus they also recently released a Mobile Flash API that works great.
    I suggest you check it out because I don't anticipate any action on this issue on either side any time soon.
    Good luck!
    Don

  • AIR Update Proccess and the File System

    I have a client who’s using a 3rd party installer to install their  AIR. They’re doing this because they’ve got a large amount of content  (600mb) and the typical packaging process is falling over. We’ve got a  workable solution where we install the content into the app directory  (/Applications/OurApp) via the 3rd party installer after the AIR app is  installed, but we’re a bit concerned that the directory may get blown  away with a future update on our part using the standard air updater  process.
    We’ve tested on mac and windows and everything seems to be OK, ie our  content files seem to stay intact. I’m wondering though, is this just a  happy mistake? Is what we’re doing safe or should we go about it in a  different way? Should we be storing our content outside of the  application directory? I’m concerned this process may change in a future  version of AIR and all of our content will disappear.
    I know the forum is closing soon, but I figured this could be relevant  because it relates to future versions of AIR.

    This is a situation I'm dealing with -- where 3rd party java (DataCash credit card gateway) insists on accessing filesystem based resources, in particular binary files containing card information (bin ranges etc to work out what bankk/country issued a card). We have no control over how this accesses these two files; it insists on a filesystem based path location like "C://Java//DataCash-Java-2.0.10//cardinfo".
    Just feeding it a package location doesn't work, nor has using the classloader to point to the actual location to derive something like: "jar:file:/C:/Java/jboss-3.0.4/server/betex/tmp/deploy/blahblah/blah.ear/81.blah/blah.jar!/com/ourpackage/blah/blah" (even if I strip off the jar:file:/ bit)
    All we know about the client code is that the reference to the file is initialised using the File(String pathname) constructor of the java.io.File object.
    I'm currently looking at the jakarta commons VFS package for a solution, but without success so far (I have an odd compilation issue to resolve).
    So any tips/pointers greatly appreciated.

  • Flex/Air Access up/download to a relational DB - BLOBS

    I am coding an homebrew application to access a database of my personal photos (stored as jepgs) which is going to load up a gallery of thumbnails and then drop the original into illustrator/photoshop. My database is mysql with the jepgs stored as binary large objects and will be on a separate server to the laptop running the app. I have a layer of PHP dealing with the database access and then ontop I have an Air application. The point is going to allow me to load a thumbnail library of all my photos in the application, if needs be allow the application to load illustrator an then perform some editing and then the application needs to be upload the edited image back into the database. Ideally when I come to polishing the app I'll be looking at doing this through a drag/drop interface.
    I tried using Flex but couldn't get the app to call/load the local illustrator/photoshop application, so I moved it to an Air application and seem to be going okay apart from the fact I seem to be more limited in terms of the database access and the amount of files that the air app can pull out of the database at any one time and the ability to write back the photo from illustrator back into the database. Both Air and flex have ahd issues with dealing with BLOBS also.
    I'm pulling my hair out a bit trying to get this to operate and since taken a step back to re-look at my design and see if mysql with the php layer is the most efficient method for storage and 'talking' to either flex/air? i.e. Flex/Air receiving the data as BLOBS?
    Would something like coldfusion offer me any improvements in this scenario swapped for the PHP? Or even changing the DB to something more mainstream such as oracle 9 lite or sql server? In terms of the application itself is my movement over to air pre-emptive? Or should flex be able to deliver all the functionality of AIR without any messy coding workarounds?

    Yes I posted the current tables in the last part so yes I have a FK in the images table...
    (tbCategories)
    (PK)catID
    category
    catThumb
    (tbImages)
    (PK)imgID
    imgTitle
    imgDescription
    imgThumb
    imgMain
    (FK)catID
    Ok so when building this page on the page that I referenced I would query the tbCategories to pull the most recent category list then correct?
    Then when going to the detail page when the selected category is selected I would pass the catID and then let the record set reflect the query that was built in Access so it shows only the photos from the selected category?
    thanks
    B

  • No WIFI after iOS 5.0.1 over-the-air update on original iPad

    No WIFI after iOS 5.0.1 over-the-air update on original iPad. I have reset the network settings,  power off the iPad, trying static IP and nothing, it's unable to join my wifi network. anybody with the same issue?

    Great!  Thanks, this works.
    I have an old Linksys WRT54G in it I can select WPA Personal and AES as algorithm--it works for me (though maybe just changing to anything works!  but I will not try anything different since I have spent already so much time with this problem.)  Again, thanks for the solution Juan.

  • Adobe Flex/AIR Photo Booth Software

    Hi,
    I hope everyone is doing well.
    Is it possible to build a Photo Booth software like
    http://www.photoboof.com/
    http://sparkbooth.com/features/
    etc. using Adobe Flex/AIR ?
    I know that we can build desktop applications using Flex/AIR. But I have a very little experience in building desktop applications. Most of the times I had worked on web applications. The Photo Booth software demands to detect digital camera connected to computer/Laptop and then work on the basis of what camera captures. It is like creating a web application that works with media server and
    use computer/laptop webcam. Please guide me how can I start or plan for this software.
    Regards
    Varun

    From What I've found.. it seems 3ivx or Perian could cause this problem. A friend had this issue and deleted 3ivx and it fixed his crashes. Alternatively, some folks are reporting that turning off 32-bit mode (Get Info) for Photobooth has also fixed, although this was already turned off in my friend's case. Or if you have iGlasses installed.

  • Air update

    I am about to cry...or break something atleast.
    VerifyError: Error #1014: Class air.update::ApplicationUpdaterUI could not be found.
    I am on cs5.5 flash pro.
    I am creating an updater.
    Library path set for:
    applicationupdater_ui.swc
    code:
    var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
                                  appUpdater.configurationFile = new File("app:/updateConfig.xml");
                                  appUpdater.initialize();
                                  appUpdater.checkNow();
    updateConfig:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
         <url>http://afiadesign.com/vislaw/update.xml</url>
        <delay>0</delay>
    </configuration>
    app descriptor:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>HeartMonitor</id>
      <versionNumber>1.0</versionNumber>
      <filename>HeartMonitor</filename>
      <description/>
      <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
      <name>HeartMonitor</name>
      <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
      <copyright/>
      <initialWindow>
        <content>HeartMonitor.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>false</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
      </initialWindow>
      <icon/>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
    </application>
    update:
    <?xml version="1.0" encoding="utf-8"?>
         <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
           <version>1.1</version>
           <url>http://afiadesign.com/vislaw/HeartMonitor.air</url>
           <description>This is the latest version of the Sample application.</description>
        </update>
    I don't know what to do?!?!?!?! Please save me from jumping out a windows!

    Ya I did.....
    import flash.display.MovieClip;
              import com.vislaw.utils.LoadImgSet;
              import flash.display.Stage;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.events.Event;
              import flash.events.MouseEvent;
              import flash.display.Sprite;
              import flash.utils.Timer;
              import flash.events.TimerEvent;
              import fl.events.SliderEvent;
              import flash.display.SimpleButton;
              import com.vislaw.utils.DragButton;
              import com.vislaw.utils.playControl;
              import com.vislaw.utils.LoadingALL;
              import com.vislaw.utils.Eraser;
              import com.vislaw.utils.magnify;
              import flash.net.SharedObject;
              import com.vislaw.utils.penTool;
              import com.vislaw.utils.highlightTool;
              import com.vislaw.utils.lineButton;
              import air.update.ApplicationUpdaterUI; <<<<<<HERE
              import flash.filesystem.File;
    This is very strange.....I had it working on my computer, than I went online and it started failing. I went through a couple issues that i fixed and this "VerifyError: Error #1014: Class air.update::ApplicationUpdaterUI could not be found."  is were I got stuck..Any other suggestions?
    The wierd thing is that i am using a cs5.5 and i am using applicationupdater_ui.swc..I thought this was something you can import without using a swc in the library path. Is there differnet applicationupdater_ui.swc, one for air 1.5 and one for air 2.5 and higher or do you use the same one?

  • Adobe AIR updater applicationupdater_ui.swc with Flash CS3 not working

    Hello AIR geeks,
    I have a project which is running in Flash CS3 with AIR.
    I would like to incorporate the functionalities which are available in applicationupdater_ui.swc
    Can any one please help me to make it available for flash cs3
    got a very nice code sinppet also
    http://www.fmajakovskij.info/air-updater-made-easy-with-scheduling/
    but Its not working with Flash CS3
    Thanks a lot
    Regards,
    Srinivas

    Use the Flex/Flash Component Kit to wrap your symbols for use in Flex
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • AIR 3.2 RC1 Installing & Running Android .APK asks for an AIR update?

    I am packaging my app in Flash Pro CS5.5 using the overlay method with AIR 3.2 RC1 (everything is functioning correctly/publishing fine no issues).
    Then once i publish Air for Android directly to the device on application launch, this message pops up -  
    "This app requires a newer version of Adobe AIR.
    Update Abode AIR now?"
    Is there a new version or a different way of packaging the APK? as i heard you dont need AIR now you can package everything inside the APK, please can someone let me know would be appriciated! cheers  

    Hi,
    Sorry I hadn't gotten to your post yet.  I'm behind and still going through posts from a week and a half ago
    AIR isn't required for your operating system unless you use an application that depends on it.  Think of AIR like you would Java.  It's a platform/runtime for other applications to be built on.  If you don't use any application that was built with AIR (or Java) then there is no need for it to be installed.
    If you do have an AIR application installed that requires AIR, I would definitely recommend updating to the latest version just to make sure you have all of the security updates that we've provided.  You can do this by visiting get.adobe.com/air and downloading the latest version, which is 3.2.  Updating your OS will not update the AIR runtime.  You can also get updates by actually launching your AIR based applications.  AIR will notice that it's out of date and prompt you to install and update to the latest version.
    Since you haven't received any AIR update notifications, this leads me to believe you aren't actually using any AIR applications.
    You can always start the AIR uninstall process, if AIR applications are installed you'll get a dialog letting you know which applicaiton's will be affected.  You can choose to continue to uninstall or cancel at that point.
    Hopefully this makes sense.
    Chris

Maybe you are looking for

  • Itunes.. is it my computer or itunes??

    Well i recently got a new ipod nano, and when i plugged it into my computer,(only had version 6 installed) it would not run because the ipod was a newer version. I downloaded the newest version to my computer after the older version was deleted. Now

  • The disk can not be read or written to!

    So this is the setup: Latest version of iTunes running on the wifes PowerBook under 10.4.X I'm using a new 4th Gen iPod Nano and I'm trying to sync the iPod to the library. Its gets about 400meg in and then comes up with error 'The disk can not be re

  • Windows7 issue... "ITunes has stopped working"

    I have tried everything the support page recommends without success. Including the removal of all add-ons which is suppose to be the culprit. I've removed Bonjour and ITunes launched but locked-up while accessing ITunes Store. Here is what I recorded

  • Does anyone know the accurate dimensions of iMac 21.5" shipping box (late 2012 - the "razzor"model)?

    Does anyone know the accurate dimensions of iMac 21.5" shipping box (late 2012 - the "razzor"model)? Note that I am looking for the BOX (packaging) measures, not the computer measures. Hard to find that on th einternet. Thanks! Mott

  • Light weight Java IDE needed linux only

    Hi, I'm looking for a light weight java ide that will run on linux. An editor with some basic options such as auto-compelte like in jbuilder and eclipse, doesn't have to have a gui designer but would be nice if it could handle packages and such. I'm