Repository: flex-utilities Updated Branches: refs/heads/develop aed9b1e58 -> 3ed1b4f7c
FLEX-34310 apply patch to add back button to installer Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/3ed1b4f7 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/3ed1b4f7 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/3ed1b4f7 Branch: refs/heads/develop Commit: 3ed1b4f7c12ed8abffad0acc479b71ada1a9ba03 Parents: aed9b1e Author: Justin Mclean <jmcl...@apache.org> Authored: Mon Oct 20 10:26:39 2014 +1100 Committer: Justin Mclean <jmcl...@apache.org> Committed: Mon Oct 20 10:26:39 2014 +1100 ---------------------------------------------------------------------- installer/src/InstallApacheFlex.mxml | 73 +++++++++++++++++++++++-------- 1 file changed, 55 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3ed1b4f7/installer/src/InstallApacheFlex.mxml ---------------------------------------------------------------------- diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml index a10fb4b..7ce73b1 100644 --- a/installer/src/InstallApacheFlex.mxml +++ b/installer/src/InstallApacheFlex.mxml @@ -1096,6 +1096,27 @@ variables are not required because the locations of these pieces are known. protected function handleInstallBtnClick(event:MouseEvent):void { + var airVersionID:String = airVersion.selectedItem.versionID; + var flashVersionID:String = flashPlayerVersion.selectedItem.versionID; + + log("SDK version " + APACHE_FLEX_BIN_DISTRO_VERSION_DISPLAY); + + if (flexVersion.selectedItem.needsAIR) + { + if (airVersionID) + log("AIR version " + airVersionID); + else + log("AIR version " + AIR_VERSION); + } + + if (flexVersion.selectedItem.needsFlash) + { + if (flashVersionID) + log("Flash Player version " + flashVersionID); + else + log("Flash Player version " + FLASH_PLAYER_VERSION); + } + if (flexSDKTxtInput.text == "") { log(_viewResourceConstants.INFO_ENTER_VALID_FLEX_SDK_PATH); } else { @@ -1118,23 +1139,6 @@ variables are not required because the locations of these pieces are known. var flashVersionID:String = flashPlayerVersion.selectedItem.versionID; setXMLVariables(); // as AIR and Flash version may of changed - - log("SDK version " + APACHE_FLEX_BIN_DISTRO_VERSION_DISPLAY); - - if (flexVersion.selectedItem.needsAIR) { - - if (airVersionID) - log("AIR version " + airVersionID); - else - log("AIR version " + AIR_VERSION); - } - - if (flexVersion.selectedItem.needsFlash) { - if (flashVersionID) - log("Flash Player version " + flashVersionID); - else - log("Flash Player version " + FLASH_PLAYER_VERSION); - } if (!legacy) { @@ -1152,7 +1156,24 @@ variables are not required because the locations of these pieces are known. } } - protected function handleFirstStepNextBtnClick(event:MouseEvent):void + protected function handleFirstStepBackBtnClick(event:MouseEvent):void + { + showDefaultState(); + } + + protected function handleSecondStepBackBtnClick(event:MouseEvent):void + { + showDirectoryState(); + } + + protected function showDefaultState():void + { + zeroStepGroup.visible = true; + directoryBtn.enabled = true; + currentState = "default"; + } + + protected function handleFirstStepNextBtnClick(event:MouseEvent):void { // Quick check to see if the selected directory is writable try { @@ -3337,6 +3358,14 @@ variables are not required because the locations of these pieces are known. click="browseForSDK(event)" toolTip="{_viewResourceConstants.INFO_SELECT_DIRECTORY}"/> <s:controlBarContent> + <s:Button id="firstStepBackBtn" + styleName="mainBtnStyle" + width="{_standardButtonWidth}" + height="32" + right="10" + label="{_viewResourceConstants.BTN_LABEL_BACK}" + enabled="true" + click="handleFirstStepBackBtnClick(event)"/> <s:Spacer width="100%"/> <s:Button id="nextBtn" @@ -3358,6 +3387,14 @@ variables are not required because the locations of these pieces are known. visible.optionsState="true" backgroundAlpha="0"> <s:controlBarContent> + <s:Button id="secondStepBackBtn" + styleName="mainBtnStyle" + width="{_standardButtonWidth}" + height="32" + right="10" + label="{_viewResourceConstants.BTN_LABEL_BACK}" + enabled="true" + click="handleSecondStepBackBtnClick(event)"/> <s:Spacer width="100%"/> <s:Button id="installBtn"