Skip navigation
Currently Being Moderated

Air Launchpad 2.6 - mobile application - activate bug

May 2, 2011 2:13 PM



With AIR Launchpad 2.6 and a mobile application, when the application is desactivated then activated,

all the elements for the list for the home view are duplicated.


The home view uses viewActivate and the handler uses viewsAC.addItem.

When the views is activated for a second time, all the elements are duplicated (by addItem)


<s:View xmlns:fx=""
    xmlns:s="library://" title="Home" viewActivate="view1_viewActivateHandler(event)">


            import mx.collections.ArrayCollection;



            protected var viewsAC:ArrayCollection = new ArrayCollection();


            protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
                viewsAC.addItem({label:"Raw Camera", icon:fbIcon});
                viewsAC.addItem({label:"Camera", icon:fbIcon});
                viewsAC.addItem({label:"Camera Roll", icon:fbIcon});
                viewsAC.addItem({label:"Geolocation/GPS", icon:fbIcon});





More Like This

  • Retrieving data ...

Bookmarked By (0)