+ function switchScreen(){
+ switch (currentScreenIndex){
+ case 1:
+ stockDetailsScreen.lockInLandscape();
+ stockDetailsLoader.sourceComponent = stockChartComponent;
+ currentScreenIndex = currentScreenIndex + 1;
+ break;
+ case 2:
+ stockDetailsScreen.unlockOrientation();
+ stockDetailsLoader.sourceComponent = stockDetailsComponent;
+ currentScreenIndex = currentScreenIndex - 1;
+ break;
+ default:
+ //Do Nothing
+ }
+ logRequest("currentScreenIndex = "+currentScreenIndex);
+ }
+