This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loads the buildr-as3 extension | |
require 'buildr/as3' | |
# defines our project “AdvancedExample” | |
define "AdvancedExample" do | |
# defines our module “MyApplication” | |
define "MyApplication" do | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'buildr/as3' | |
define "AdvancedExample" do | |
define "MyApplication" do | |
# use the mxmlc compiler to create a swf | |
compile.using :mxmlc | |
# define the FlexSDK to use by version | |
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076") | |
# define main-class to use for the compiler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd path/to/AdvancedExample | |
$ buildr compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'buildr/as3' | |
define "AdvancedExample" do | |
define "MyApplication" do | |
compile.using :mxmlc | |
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076") | |
compile.options[:main] = _(:src,:main,:as3) + "/MyApplication.as" | |
# define the ApparatToolkit to use by version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ buildr clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ buildr compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdvancedExample | |
├── MyApplication | |
│ └── src | |
│ ├── main | |
│ │ └── as3 | |
│ │ └── MyApplication.as | |
│ └── test | |
│ └── as3 | |
│ ├── MyApplicationTest.as | |
│ └── TestRunner.mxml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'buildr/as3' | |
# We need these maven repositories to download the flexunit4 and junit files | |
repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2" | |
define "AdvancedExample" do | |
define "MyApplication" do | |
compile.using :mxmlc | |
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ buildr test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -jar ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/asc.jar -AS3 -strict -import ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/toplevel.abc -import ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/builtin.abc -import lib/main/as3/avmglue_0.1.0.2305/avmglue.abc src/main/as3/ftask.as |