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..6b236fd --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,10 @@ +{ + "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..2fb5045 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,15 @@ # Away Builder -Flex SDK: 4.9.1 -AIR SDK: 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/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+ use _"-swf-version 20"_ latest away3d-core: _https://github.com/away3d/away3d-core-fp11/tree/dev_ diff --git a/asconfig.json b/asconfig.json new file mode 100644 index 0000000..26b5b32 --- /dev/null +++ b/asconfig.json @@ -0,0 +1,30 @@ +{ + "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", + "config": "air", + "airOptions": { + "files": [ + { + "file": "awaybuilder-desktop/src/assets", + "path": "assets" + } + ], + "target": "bundle" + } +} \ 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..601fc61 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" /> - - false + high + false true false 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);