Skip navigation
Phil Flash
Currently Being Moderated

Air Launchpad 2.6 - mobile application - activate bug

May 2, 2011 2:13 PM

Hi,

 

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)">

 

    <fx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            import spark.events.ViewNavigatorEvent;

 

           [Bindable]

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

               ...
            }

 

Philippe

 

More Like This

  • Retrieving data ...

Bookmarked By (0)