0 Replies Latest reply: May 2, 2011 2:13 PM by Phil Flash RSS

    Air Launchpad 2.6 - mobile application - activate bug

    Phil Flash Community Member



      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="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark" title="Home" viewActivate="view1_viewActivateHandler(event)">


                  import mx.collections.ArrayCollection;
                  import spark.events.ViewNavigatorEvent;



                  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});