Sha256: 0c6a120ea7a1bb0dd1553d5a1b0db5299089ddd8897f67207fa1f4a7a8a679e8

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

require 'rubygems'
require 'asproject'

############################################
# Launch the Application using Flash Player 8

task :run => [:compile_main]

# Assign this to the default task
task :default => [:run]

AsProject::FlashPlayer.new(:run) do |t|
  t.version = 8
  t.swf = 'bin/<%= project_name %>.swf'
end

############################################
# Launch the Test Suites using Flash Player 8

task :test => [:compile_tests]

AsProject::FlashPlayer.new(:test) do |t|
  t.version = 8
  t.swf = 'bin/<%= project_name %>Runner.swf'
end

############################################
# Compile your library using SWFMill

AsProject::SWFMill.new(:compile_skin) do |t|
  t.input = 'assets/img/skins/default'
  t.template = 'assets/img/skins/SWFMillTemplate.erb'
  t.output = 'bin/<%= project_name %>Skin.swf'
end

############################################
# Compile your Application using HAMTASC

task :compile_main => [:compile_skin]

AsProject::MTASC.new(:compile_main) do |t|
  t.input = '<%= project_name %>'
  t.main = true
  t.version = 8
  t.frame = 2
  t.input_swf = 'bin/<%= project_name %>Skin.swf'
  t.output = 'bin/<%= project_name %>.swf'
  t.class_path << 'src'
end

############################################
# Compile your Application using HAMTASC

AsProject::MTASC.new(:compile_tests) do |t|
  t.input = '<%= project_name %>Runner'
  t.version = 8
  t.frame = 2
  t.main = true
  t.input_swf = 'bin/<%= project_name %>Skin.swf'
  t.output = 'bin/<%= project_name %>Runner.swf'
  t.class_path << 'src'
  t.class_path << 'test'
  t.class_path << 'lib/asunit'
end

############################################

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asproject-0.1.42 templates/asproject/as2/project/rakefile.rb
asproject-0.1.43 templates/asproject/as2/project/rakefile.rb
asproject-0.1.44 templates/asproject/as2/project/rakefile.rb