From c8b88e2b69502566243d4dd081d8f8296580cafb Mon Sep 17 00:00:00 2001 From: Paulo Medeiros Date: Sat, 1 Jun 2024 23:42:47 +0000 Subject: [PATCH 01/12] VSCode Build --- .gitignore | 5 +- .vscode/launch.json | 13 ++ README.md | 8 ++ asconfig.json | 22 ++++ .../model/vo/scene/SharedAnimationNodeVO.as | 1 + .../model/vo/scene/SharedLightVO.as | 1 + .../controls/tree/TreeItemRenderer.mxml | 2 +- .../renderers/AnimationItemRenderer.mxml | 2 +- .../renderers/AnimationNodeItemRenderer.mxml | 2 +- .../ContanerChildrenItemRenderer.mxml | 2 +- .../renderers/EffectMethodItemRenderer.mxml | 2 +- .../editors/renderers/LightItemRenderer.mxml | 2 +- .../view/skins/ExtendedDropDownListSkin.mxml | 2 +- .../skins/ThinExtendedDropDownListSkin.mxml | 2 +- awaybuilder-core/src/defaults.css | 116 +++++++++--------- 15 files changed, 115 insertions(+), 67 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 asconfig.json diff --git a/.gitignore b/.gitignore index cf963db..257fa4f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ bin/ bin-debug/ bin-release-temp/ +bin-release/ out/ # Project property files @@ -17,4 +18,6 @@ output.txt # compiled .air -.exe \ No newline at end of file +.exe +.vscode/settings.json +away3d-core-fp11 \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..d645e4d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "swf", + "request": "launch", + "name": "Launch SWF" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index b4f7c8c..2816502 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # Away Builder +# How to build +1. Follow this guide to install the [Apache Flex SDK with AIR](https://joshblog.net/2024/how-to-install-apache-flex-with-adobe-air-from-harman/) +2. Run `git clone https://github.com/Away3D/away3d-core-fp11 -b dev` inside this repo +3. Install the VSCode Extension "AS3 & MXML" by Bowler Hat +4. Open the repo in VSCode +5. Point VSCode to to the SDK you setup in Step 1 +6. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" + Flex SDK: 4.9.1 AIR SDK: 3.7 use _"-swf-version 20"_ diff --git a/asconfig.json b/asconfig.json new file mode 100644 index 0000000..7d675b8 --- /dev/null +++ b/asconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "output": "awaybuilder-desktop/bin-release/AwayBuilderApplication.swf", + "accessible": true, + "source-path": [ + "away3d-core-fp11/src", + "awaybuilder-core/src", + "awaybuilder-desktop/src" + ], + "library-path": [ + "awaybuilder-core/libs" + ], + "defaults-css-files": [ + "awaybuilder-desktop/src/desktop_styles.css", + "awaybuilder-core/src/defaults.css" + ] + }, + "mainClass": "AwayBuilderApplication", + "application": "awaybuilder-desktop/src/AwayBuilderApplication-app.xml", + "copySourcePathAssets": true, + "config": "air" +} \ No newline at end of file diff --git a/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedAnimationNodeVO.as b/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedAnimationNodeVO.as index a64e0ef..f7d3047 100644 --- a/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedAnimationNodeVO.as +++ b/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedAnimationNodeVO.as @@ -3,6 +3,7 @@ package awaybuilder.model.vo.scene import awaybuilder.model.vo.scene.interfaces.IShared; import mx.events.PropertyChangeEvent; + import flash.events.IEventDispatcher; [Bindable] public class SharedAnimationNodeVO extends AnimationNodeVO implements IShared diff --git a/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedLightVO.as b/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedLightVO.as index 6e8f93f..7a7d3f8 100644 --- a/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedLightVO.as +++ b/awaybuilder-core/src/awaybuilder/model/vo/scene/SharedLightVO.as @@ -3,6 +3,7 @@ package awaybuilder.model.vo.scene import awaybuilder.model.vo.scene.interfaces.IShared; import mx.events.PropertyChangeEvent; + import flash.events.IEventDispatcher; [Bindable] public class SharedLightVO extends LightVO implements IShared diff --git a/awaybuilder-core/src/awaybuilder/view/components/controls/tree/TreeItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/controls/tree/TreeItemRenderer.mxml index 3f6dfc6..6aa6942 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/controls/tree/TreeItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/controls/tree/TreeItemRenderer.mxml @@ -196,7 +196,7 @@ - diff --git a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationItemRenderer.mxml index 1cd87f3..6becc52 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationItemRenderer.mxml @@ -78,7 +78,7 @@ ]]> - + diff --git a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationNodeItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationNodeItemRenderer.mxml index c46ff85..82f4b5c 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationNodeItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/AnimationNodeItemRenderer.mxml @@ -42,7 +42,7 @@ - + diff --git a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/ContanerChildrenItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/ContanerChildrenItemRenderer.mxml index 1b288be..aba29d6 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/ContanerChildrenItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/ContanerChildrenItemRenderer.mxml @@ -25,7 +25,7 @@ ]]> - + diff --git a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/EffectMethodItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/EffectMethodItemRenderer.mxml index 47e5dc8..272453a 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/EffectMethodItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/EffectMethodItemRenderer.mxml @@ -43,7 +43,7 @@ - + diff --git a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/LightItemRenderer.mxml b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/LightItemRenderer.mxml index a109b10..bd2763b 100644 --- a/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/LightItemRenderer.mxml +++ b/awaybuilder-core/src/awaybuilder/view/components/editors/renderers/LightItemRenderer.mxml @@ -44,7 +44,7 @@ - + diff --git a/awaybuilder-core/src/awaybuilder/view/skins/ExtendedDropDownListSkin.mxml b/awaybuilder-core/src/awaybuilder/view/skins/ExtendedDropDownListSkin.mxml index 08649c4..4e0347e 100644 --- a/awaybuilder-core/src/awaybuilder/view/skins/ExtendedDropDownListSkin.mxml +++ b/awaybuilder-core/src/awaybuilder/view/skins/ExtendedDropDownListSkin.mxml @@ -126,7 +126,7 @@ + icon="@Embed('/assets/images/add.png')" skinClass="awaybuilder.view.skins.DropdownAddButtonSkin" cornerRadius="0" /> - + standard false true false From fd1d63a544e22c7d06ac7f31a4efc81b25ed036b Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:17:43 +0000 Subject: [PATCH 07/12] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 279a02d..48ef7de 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,11 @@ ## How to build 1. Follow this guide to install the [Apache Flex SDK with AIR](https://joshblog.net/2024/how-to-install-apache-flex-with-adobe-air-from-harman/) 2. Run `git clone https://github.com/Away3D/away3d-core-fp11 -b dev` inside this repo -3. Install the VSCode Extension "AS3 & MXML" by Bowler Hat -4. Open the repo in VSCode -5. Point VSCode to to the SDK you setup in Step 1 -6. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" +3. Changge line 24 of `away3d-core-fp11/src/away3d/cameras/lenses/PerspectiveLens.as` to `public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = 0)` +4. Install the VSCode Extension "AS3 & MXML" by Bowler Hat +5. Open the repo in VSCode +6. Point VSCode to to the SDK you setup in Step 1 +7. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" Flex SDK: 4.9.1+ AIR SDK: 3.7+ From 2e6b6b68ba59bb3d53159bf474ff54d1e2436b0c Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:19:46 +0000 Subject: [PATCH 08/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48ef7de..1728697 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 4. Install the VSCode Extension "AS3 & MXML" by Bowler Hat 5. Open the repo in VSCode 6. Point VSCode to to the SDK you setup in Step 1 -7. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" +7. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" to debug, or use the builds tasks in the CTRL + B shorcut to assemble a release build Flex SDK: 4.9.1+ AIR SDK: 3.7+ From 7d4127830c7ca9206c2cf195d4f5ece425c0ef7c Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:20:38 +0000 Subject: [PATCH 09/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1728697..2c9a78b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## How to build 1. Follow this guide to install the [Apache Flex SDK with AIR](https://joshblog.net/2024/how-to-install-apache-flex-with-adobe-air-from-harman/) 2. Run `git clone https://github.com/Away3D/away3d-core-fp11 -b dev` inside this repo -3. Changge line 24 of `away3d-core-fp11/src/away3d/cameras/lenses/PerspectiveLens.as` to `public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = 0)` +3. Change line 24 of `away3d-core-fp11/src/away3d/cameras/lenses/PerspectiveLens.as` to `public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = 0)` 4. Install the VSCode Extension "AS3 & MXML" by Bowler Hat 5. Open the repo in VSCode 6. Point VSCode to to the SDK you setup in Step 1 From f2f47fb59a4f1e71defa184adeffc6e5ad411119 Mon Sep 17 00:00:00 2001 From: Paulo Medeiros Date: Mon, 3 Jun 2024 14:03:27 +0000 Subject: [PATCH 10/12] Fix High DPI --- README.md | 11 +++++------ .../src/AwayBuilderApplication-app.xml | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2c9a78b..2fb5045 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ ## How to build 1. Follow this guide to install the [Apache Flex SDK with AIR](https://joshblog.net/2024/how-to-install-apache-flex-with-adobe-air-from-harman/) -2. Run `git clone https://github.com/Away3D/away3d-core-fp11 -b dev` inside this repo -3. Change line 24 of `away3d-core-fp11/src/away3d/cameras/lenses/PerspectiveLens.as` to `public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = 0)` -4. Install the VSCode Extension "AS3 & MXML" by Bowler Hat -5. Open the repo in VSCode -6. Point VSCode to to the SDK you setup in Step 1 -7. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" to debug, or use the builds tasks in the CTRL + B shorcut to assemble a release build +2. Run `git clone https://github.com/Fancy2209/away3d-core-fp11 -b dev` inside this repo +3. Install the VSCode Extension "AS3 & MXML" by Bowler Hat +4. Open the repo in VSCode +5. Point VSCode to to the SDK you setup in Step 1 +6. Press CTRL + P and run the command "ActionScript: Quick Compile and Debug (Experimental)" to debug, or use the builds tasks in the CTRL + B shorcut to assemble a release build Flex SDK: 4.9.1+ AIR SDK: 3.7+ diff --git a/awaybuilder-desktop/src/AwayBuilderApplication-app.xml b/awaybuilder-desktop/src/AwayBuilderApplication-app.xml index 55ffa8c..52ae039 100644 --- a/awaybuilder-desktop/src/AwayBuilderApplication-app.xml +++ b/awaybuilder-desktop/src/AwayBuilderApplication-app.xml @@ -107,7 +107,7 @@ - standard + high false true false From 2f7358a597642ed0ee0c3bd78c7dbc9c405f04e2 Mon Sep 17 00:00:00 2001 From: Paulo Medeiros Date: Mon, 3 Jun 2024 17:37:37 +0000 Subject: [PATCH 11/12] Fix variable redefinition --- .../src/awaybuilder/desktop/model/DesktopDocumentService.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awaybuilder-desktop/src/awaybuilder/desktop/model/DesktopDocumentService.as b/awaybuilder-desktop/src/awaybuilder/desktop/model/DesktopDocumentService.as index 212817e..4e760dc 100644 --- a/awaybuilder-desktop/src/awaybuilder/desktop/model/DesktopDocumentService.as +++ b/awaybuilder-desktop/src/awaybuilder/desktop/model/DesktopDocumentService.as @@ -171,7 +171,7 @@ package awaybuilder.desktop.model var textureFile:File = textureDirectory.resolvePath(textureName); if (!textureFile.exists){ - var textureName:String = textureFile.name; + textureName = textureFile.name; textureFile=textureDirectory.resolvePath(textureName); var saveStream:FileStream = new FileStream(); saveStream.open(textureFile, FileMode.WRITE); From 2988078fde6e153d4a80b2cb9529816b2e01bf6a Mon Sep 17 00:00:00 2001 From: Paulo Medeiros Date: Mon, 3 Jun 2024 17:57:57 +0000 Subject: [PATCH 12/12] Fix missing whitespace in descriptor --- awaybuilder-desktop/src/AwayBuilderApplication-app.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awaybuilder-desktop/src/AwayBuilderApplication-app.xml b/awaybuilder-desktop/src/AwayBuilderApplication-app.xml index 52ae039..e693689 100644 --- a/awaybuilder-desktop/src/AwayBuilderApplication-app.xml +++ b/awaybuilder-desktop/src/AwayBuilderApplication-app.xml @@ -108,7 +108,7 @@ high - false + false true false