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

Similar Messages

  • Hello.I wanted to upgrade my iPad 1 to iOS 5.1 Over the Air.I was running iOS 5.0.1.It said it had an error connecting to server.It is already 5 hours i cant install this update.I also have an iPhone 4 with iOS 5.0.1 with the same issues.Help please!

    Hello.I wanted to upgrade my iPad 1 to iOS 5.1 Over the Air.I was running iOS 5.0.1.It said it had an error connecting to server.It is already 5 hours i cant install this update.I also have an iPhone 4 with iOS 5.0.1 with the same issues.Help please!

    You're probably running into the servers simply being swamped. Thousands of people are all going for the software update at the same time. Give it a try again and if that doesn't work, then try plugging it into your computer and trying it that way.
    I didn't get a notion of the size, it doesn't seem to be as big as the 700 meg 5.0 update, but it did take me 20+ minutes to download via cable internet so it's a large file. That in and of itself takes a while.
    If you're trying to download it directly to your iPhone, you'll need to be on wifi since I'm sure it's well over the 20 meg file size limit for 3G.

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

  • Hi i want to upgrade my iMac from Snow Leopard 10.6.8 to OS X Mavericks or OS X Yosemite. My software update menu dosnn´t find any updates available. Help please, what can i do to upgrade to OS X Mavericks or newer version?

    Hi i want to upgrade my iMac from Snow Leopard 10.6.8 to OS X Mavericks or OS X Yosemite. My software update menu dosnn´t find any updates available. Help please, what can i do to upgrade to OS X Mavericks or newer version?

    Open the Mac App Store and try downloading Yosemite. If you get told it's incompatible, the computer's also incompatible with Mountain Lion and Mavericks; if desired, choose About this Mac from the Apple menu, check if the computer has at least a Xeon or Core 2 Duo(not Core Duo) CPU and 2GB of RAM, and if it does, click here and order a download code for Lion 10.7.
    Back up your data and check your applications for compatibility before upgrading. In particular, Mac OS X 10.7 and newer don't support PowerPC programs such as versions of Microsoft Office prior to 2008.
    (123636)

  • Getting error message2324 when downloading the new update for itunes help please

    getting error message 2324 when downloading the latest update of itunes help please.
    Will not let me uninstall itunes from my computer, gives me the message that I don't have access need administrator. ( I am the only user of this computer)
    Thank you
    Chris

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • Recently i upgrade my iPad2 to 7.1(11D167) and now the wifi connection is very weak, I am not sure if it is a hardware or software issue, help please!

    Recently i upgrade my iPad2 to 7.1(11D167) and now the wifi connection is very weak, I am not sure if it is a hardware or software issue, help please!

    I am not sure, I have full signal on my iphone 5  and just 1 dot on my ipad, tomorrow I will test connection with other router and network, I thank you for your help and I will tell you the test result when done

  • Adobe AIR update framework

    Hi all
    I am using the framework with an application Flex  built on AIR, no problem, everything is ok.
    (The application is built using the db Sqlite).
    Someone knows if it is possible to add one or more script, updating a precise version, to update the db (to add index, fields, etc...) ?
    thanks in advance...

    Thank you.
    So, if I can understand,  the framework itself does not include possibility of update of the db, and is necessary to execute scripts on the db after the update, like this:
            public function check4Update():void {
                //setApplicationVersion(); // Find the current version so we can show it below
                appUpdater.updateURL = AirFlex.APPLICATION.configuration.syncEngineConfiguration.updateURI;
                appUpdater.isCheckForUpdateVisible = false; // We won't ask permission to check for an update
                appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate); // Once initialized, run onUpdate
                appUpdater.addEventListener(ErrorEvent.ERROR, onError); // If something goes wrong, run onError
                appUpdater.initialize(); // Initialize the update framework
            private function onError(event:ErrorEvent):void {
                Alert.show(event.toString());
            private function onUpdate(event:UpdateEvent):void {
                appUpdater.checkNow(); // Go check for an update now
       //  now, if the update is ok :
       ...... execution of the scripts to update the Db.....................
    is right ?????

  • 2nd Gen Itouch Update Software Issue - Help Required.

    I've a second gen Itouch that I'm trying to update its software from 3.1.3 to 4.0 as my itouch keeps telling me to. However I plug it into itunes and press "Check for software update" and it says that 3.1.3 is the current version. Anyone help? I'd really appreciate if someone could come to my rescue as I just bought it second hand today after ages of saving and I'm so bummed that it wont let me download anything. So if anyone can help please do!

    You have a 1st generation iPod touch then, not a second one. 1st gen iPod can only update to 3.1.3.
    To confirm, go to Settings > General > About > Serial Number.
    Then enter the serial number on this page: http://support.apple.com/specs/

  • N8 wlan and hard reset issues, help please

    Have a nokia N8, after installing Connectivity analyser beta from beta labs, my wifi reception has become very poor. i ave a wireless N router and before this date the signal was very strong. my friend has an N8 also, he tested the rooms i was having signal issues to see if the router was the problem, however he had excellent signal, leading me to think it was my phone. i uninstalled the app and he weak signal remained, i did a factory reset and the problem remeained, i did a hard reset and the problem is still there, I now have the added problem of no Ovi Suite and other Qt related app issues. Help please, this is really annoying. btw this is my second N8, really getting annoyed at Nokia now. any further specs, please ask

    As synth_fg rightly points out it takes quite a bit of tinkering to recover from "hard reset" on N8. To give you an idea what would be involved:-
    Download from Ovi Store website the sis installer of WordPress and install it on phone (wordpress install also Nokia Smart Install and all QT and PIPS components)
    Launch Ovi Store on phone: which will download the .sis installer and should work without any error
    Reinstall Social_1_2_update.sisx from here: http://nmota.messaging.nokia.com/clients/Social_1_​2_update.sisx
    At this point you are still without OVI Maps but you can install v3.06 pre-release from Nokia Beta Labs: http://betalabs.nokia.com/apps/ovi-maps-306 which will allow you to pinch to zoom on your N8
    Happy to have helped forum with a Support Ratio = 42.5

  • IOS update interrupted TWICE - help please!

    Guys I need help please.
    My internet connection is really bad. Last night, my iOS 6 update was 8 minutes from completion and my internet cut out, and about 5 minutes ago, my internet cut out again while my download was like 400 MB through.
    Every time my internet cuts out, it completely restarts the download.
    Is there any way I can find the downloads and start off from where they stopped?
    Any help greatly appreciated!!

    One option would be to manually download the *.ipsw files from  another computer with a better connection and then install the IPSW from the first computer.  I actually prefer this method, even in an environment like my work one where we have lots of bandwidth.  It seems to be more reliable.  If you have plenty of bandwidth you can download the *.ipsw files pretty quickly.  At work I downloaded the 983 mb file in just over 2 minutes..so maybe try a public Internet place.  Just do a search on ipsw download for iOS 6.

  • Login Issues - Help please

    Hi All-
    I had to reinstall the OS system and now it is asking for a login. Not sure what it is-so I go back to the start up cd hold down C get to change password. Change password as system admin (root level). Quit installer and restart the mac. enter my name and the new password the screen shakes and drops out the password. What am I doing wrong?
    Help please.
    LB

    Hi Sherry-
    Thanks for the info - Just a brief history on my problem.
    I was trying to open an application on the mac and it froze - nothing would work. I powered down at the surge protector. restarted to have the mac hang on the grey screen with the apple. Let it sit for 15 min with nothing. Called and apple dealer near us and was told to reinstall the OS. I had to do an archive & install. I think I had 10.3.9 but the system cds were 10.3.1 or something like that. So reinstalled and you know where I am. SO, should I still restore the netinfo data base? Will this effect my network with others. I back up my HD to another mac at night and vicea versa.
    Thoughts.....
    Thanks for your help!
    Larry

  • I have changed my password on my iPhone but now my iPad won't allow me to lo in to anything or update...help please

    I have changed my password on my iPhone but now my iPad won't allow me to lo in to anything or update...help please

    Apple ID: “This Apple ID has been disabled for security reasons” alert appears
    http://support.apple.com/kb/ts2446
    Contact Apple Support
    https://expresslane.apple.com/GetproductgroupList.action
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Look at this post https://discussions.apple.com/thread/5767569?tstart=60
     Cheers, Tom

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

  • Update issue, HELP PLEASE!

    Hello,
    I've just updated my ipod touch 4th gen to iOS 5.1 (or whatever the newest one is which came out today -16/03/2012). I'd did it via iTunes and it took a while and completely updated, thats seemed to be fine, but the I realized the camera button (right hand corner next to slide to unlock) was broken, I didn't double click and the music bar isnt their on my lockscreen, its weird as whenever I click it, it goes up and down slightly, its really weird and I dont know what happened. Please help me!!! Thanks.

    i've just tried dragging up the icon on the lockscreen its gone all the way and goes to camera, so i can take a picture, but it still goes back. Please help

Maybe you are looking for