if ( this .contains (statistica))
{
}
else
{(statistica);
if ( this .contains (changeList)) {removeChild (changeList);};
if ( this .contains (fullTable)) {removeChild (fullTable);};
if ( this .contains (map)) {removeChild (map);};
}. putButton (1);
}
public function onBtFriendsStatisticaClick (e: MouseEvent): void
{
//Показати статистики
trace ( «Показати статистики. Main.onBtStatistica1Click» );
if ( this .contains (friendsStatistica))
{(friendsStatistica);
//Button (btFriendsStatistica) .text=
(getChildByName ( «btFriendsStatistica» ) as Button) .label= Статистика друзів ;
if (loadBar!= null amp; amp; this .contains (loadBar)) {removeChild (loadBar);}. showFriends= false ; .haveCityList= false ; .cityListCount= 0; .setCityList ( null , true ) ;. setXmlFullFriendsData (appData.getXmlFullFriendsData ( false , true )) ;. refreshData ();
}
else
{(friendsStatistica);
(getChildByName ( «btFriendsStatistica» ) as Button) .label= Своя статистика ;
if ( this .contains (map)) {removeChild (map); addChild (statistica);};
if ( this .contains (changeList)) {removeChild (changeList); addChild (statistica);} ;. nNameList=0;
/* if (this.contains (changeList)) {removeChild (changeList);};
if (this.contains (fullTable)) {removeChild (fullTable);};
if (this.contains (map)) {removeChild (map);};
if (this.contains (statistica)) {removeChild (statistica);}; */
}. putButton (4);
}
public function onBtChangeClick (e: MouseEvent): void
{
//Показати змін до списку друзів
if (loadBar!= null amp; amp; this .contains (loadBar)) {removeChild (loadBar);}. sendFriends (auth_key);
if ( this .contains (changeList))
{
}
else
{(changeList);
if ( this .contains (statistica)) {removeChild (statistica);};
if ( this .contains (fullTable)) {removeChild (fullTable);};
if ( this .contains (map)) {removeChild (map);};
}. putButton (2);
}
public function onFilterClearBtClick (e: MouseEvent): void
{
//Обнулити фільтри .selectedIndex=0; .filter.sex=- 1; .removeAll () ;. addItem ({label: «Будь-який» , data: 0});
for ( var i: Number=10; i lt; 100; i ++)
{. addItem ({label: «до» + i, data: i});
}. filter.ageUp=0;
. removeAll () ;. addItem ({label: «» , data: 0});
for ( var j: Number=10; j lt; 100; j ++)
{. addItem ({label: «від» + j, data: j});
}. filter.ageD...