Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change IDE Setup from Flash Builder to VSCode #247

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
bin/
bin-debug/
bin-release-temp/
bin-release/
out/

# Project property files
Expand All @@ -17,4 +18,6 @@ output.txt

# compiled
.air
.exe
.exe
.vscode/settings.json
away3d-core-fp11
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "swf",
"request": "launch",
"name": "Launch SWF"
}
]
}
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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_

Expand Down
30 changes: 30 additions & 0 deletions asconfig.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@

</s:HGroup>

<s:Image source="@Embed('assets/images/linkArrow.png')" visible="{data is IShared}" includeInLayout="{data is IShared}" alpha="0.75" right="4" verticalCenter="0"
<s:Image source="@Embed('/assets/images/linkArrow.png')" visible="{data is IShared}" includeInLayout="{data is IShared}" alpha="0.75" right="4" verticalCenter="0"
toolTip="Usage of Shared Resource"/>

<s:Rect x="2" y="2" width="{this.width-4}" height="{this.height-4}" includeInLayout="false" visible="{showDropIndicator}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

]]></fx:Script>
<s:HGroup width="100%" verticalAlign="middle" paddingLeft="3" height="23" paddingTop="1">
<s:BitmapImage id="iconButton" source="@Embed('assets/images/walk.png')" visible="true" visible.normal="false" alpha.hovered="0.5"/>
<s:BitmapImage id="iconButton" source="@Embed('/assets/images/walk.png')" visible="true" visible.normal="false" alpha.hovered="0.5"/>
<s:Label text="{_animation.name}" fontWeight="bold" width="100%"/>
<s:Button styleName="editSharedObjectButtonStyle" width="23" height="100%" click="editSubmeshMaterialButton_clickHandler(event)"/>
</s:HGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</s:fill>
</s:Rect>

<s:BitmapImage id="iconButton" source="@Embed('assets/images/film-medium.png')"/>
<s:BitmapImage id="iconButton" source="@Embed('/assets/images/film-medium.png')"/>
<s:Label id="labelDisplay" text="{_asset.name}" color.hovered="0xEEEEEE" paddingTop="1" width="100%"/>
<s:Button id="editSubmeshMaterialButton" styleName="editSharedObjectButtonStyle"
width="22" height="22" click="editSubmeshMaterialButton_clickHandler(event)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]]>
</fx:Script>

<s:BitmapImage id="iconButton" source="@Embed('assets/images/box_closed.png')"/>
<s:BitmapImage id="iconButton" source="@Embed('/assets/images/box_closed.png')"/>
<s:Label id="labelDisplay" text="{label}" color.hovered="0xEEEEEE" paddingTop="1" width="100%"/>
<s:Button id="editSubmeshMaterialButton" styleName="editSharedObjectButtonStyle"
width="24" height="24" click="editSubmeshMaterialButton_clickHandler(event)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</s:fill>
</s:Rect>

<!--<s:BitmapImage id="iconButton" source="@Embed('assets/images/box_closed.png')"/>-->
<!--<s:BitmapImage id="iconButton" source="@Embed('/assets/images/box_closed.png')"/>-->
<s:Label id="labelDisplay" text="{_effectMethod.toString()}" color.hovered="0xEEEEEE" paddingTop="1" width="100%"/>
<s:Button id="editSubmeshMaterialButton" styleName="editSharedObjectButtonStyle"
width="22" height="22" click="editSubmeshMaterialButton_clickHandler(event)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</s:fill>
</s:Rect>

<s:BitmapImage id="iconButton" source="@Embed('assets/images/weather_sun.png')"/>
<s:BitmapImage id="iconButton" source="@Embed('/assets/images/weather_sun.png')"/>
<s:Label id="labelDisplay" text="{_light.name}" color.hovered="0xEEEEEE" paddingTop="1" width="100%"/>
<s:Button id="editSubmeshMaterialButton" styleName="editSharedObjectButtonStyle"
width="22" height="22" click="editSubmeshMaterialButton_clickHandler(event)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
</controls:CrutchScroller>

<s:Button id="addNewButton" left="0" right="0" bottom="-26" label="{hostComponent.newItemLabel}" height="24"
icon="@Embed('assets/images/add.png')" skinClass="awaybuilder.view.skins.DropdownAddButtonSkin" cornerRadius="0" />
icon="@Embed('/assets/images/add.png')" skinClass="awaybuilder.view.skins.DropdownAddButtonSkin" cornerRadius="0" />
</s:Group>
</s:PopUpAnchor>
<!--- The default skin is DropDownListButtonSkin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
</controls:CrutchScroller>

<s:Button id="addNewButton" left="0" right="0" bottom="-26" label="{hostComponent.newItemLabel}" height="24"
icon="@Embed('assets/images/add.png')" skinClass="awaybuilder.view.skins.DropdownAddButtonSkin" cornerRadius="0" />
icon="@Embed('/assets/images/add.png')" skinClass="awaybuilder.view.skins.DropdownAddButtonSkin" cornerRadius="0" />
</s:Group>
</s:PopUpAnchor>
<!--- The default skin is DropDownListButtonSkin.
Expand Down
Loading