Top Level Namespace

Defined Under Namespace

Modules: FlashPlayer, FlashSDK, Sprout

Instance Method Summary collapse

Instance Method Details

#acompc(args, &block) ⇒ Object



24
25
26
27
28
# File 'lib/flashsdk/acompc.rb', line 24

def acompc args, &block
  exe = FlashSDK::ACOMPC.new
  exe.to_rake(args, &block)
  exe
end

#adl(*args, &block) ⇒ Object



67
68
69
70
71
# File 'lib/flashsdk/adl.rb', line 67

def adl *args, &block
  exe = FlashSDK::ADL.new
  exe.to_rake(*args, &block)
  exe
end

#adt(*args, &block) ⇒ Object



272
273
274
275
276
# File 'lib/flashsdk/adt.rb', line 272

def adt *args, &block
  exe = FlashSDK::ADT.new
  exe.to_rake(*args, &block)
  exe
end

#amxmlc(*args, &block) ⇒ Object



23
24
25
26
27
# File 'lib/flashsdk/amxmlc.rb', line 23

def amxmlc *args, &block
  exe = FlashSDK::AMXMLC.new
  exe.to_rake *args, &block
  exe
end

#asdoc(args, &block) ⇒ FlashSDK::AsDoc

Create a new Rake::File task that will execute FlashSDK::AsDoc.

Examples:

The following is a simple AsDoc task:


desc "Compile the SWF"
mxmlc 'bin/SomeProject.swf' do |t|
  t.library_path << 'lib/corelib.swc'
  t.input = 'src/SomeProject.as'
end

desc "Generate documentation"
asdoc 'docs/' do |t|
  t.doc_sources << 'src'
end

Returns:



159
160
161
162
163
# File 'lib/flashsdk/asdoc.rb', line 159

def asdoc args, &block
  exe = FlashSDK::AsDoc.new
  exe.to_rake args, &block
  exe
end

#compc(args, &block) ⇒ Object



119
120
121
122
123
# File 'lib/flashsdk/compc.rb', line 119

def compc args, &block
  exe = FlashSDK::COMPC.new
  exe.to_rake(args, &block)
  exe
end

#fdb(*args, &block) ⇒ Object

Rake task helper that delegates to the FDB executable.

fdb 'bin/SomeProject.swf' do |t|
  t.break << 'com/foo/bar/SomeClass.as:23'
  t.continue
  t.run
end


823
824
825
826
827
# File 'lib/flashsdk/fdb.rb', line 823

def fdb *args, &block
  fdb_tool = FlashSDK::FDB.new
  fdb_tool.to_rake *args, &block
  fdb_tool
end

#flashplayer(*args, &block) ⇒ Object



59
60
61
# File 'lib/flashplayer/task.rb', line 59

def flashplayer *args, &block
  FlashPlayer::Task.define_task *args, &block
end

#mxmlc(args, &block) ⇒ FlashSDK::MXMLC

Create a new Rake::File task that will execute FlashSDK::MXMLC.

Examples:

The following is a simple MXMLC task:


desc "Compile the project"
mxmlc 'bin/SomeProject.swf' do |t|
  t.input = 'src/SomeProject.as'
end

Returns:



155
156
157
158
159
# File 'lib/flashsdk/mxmlc.rb', line 155

def mxmlc args, &block
  exe = FlashSDK::MXMLC.new
  exe.to_rake args, &block
  exe
end

#sObject

This is the Flash Player Sprout::Specification and is how we figure out from where to load the Flash Player for the current user system.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/flashplayer/specification.rb', line 7

Sprout::Specification.new do |s|
  s.name        = FlashPlayer::NAME
  s.version     = FlashPlayer::VERSION

  ##
  # NOTE: The order of these declarations is important, the RubyFeature.load method
  # will search for the first match that is appropriate for the end user system.
  #
  # Current releases of the Ruby One-Click Installer for Windows actually
  # run on top of Mingw, and OSX is a *nix variant, which means that 
  # all System types (in Ruby at least) derive from UnixSystem. 
  #
  # This means that the Linux/Unix declaration will
  # match everyone, so it is effectively the same as ':universal'
  s.add_remote_file_target do |t|
    t.platform     = :windows
    t.archive_type = :exe
    t.url          = "http://download.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.exe"
    #t.url          = "http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe"
    t.md5          = "6fbc96203b878529a5baefe2226a403e"
    t.add_executable :flashplayer, "6fbc96203b878529a5baefe2226a403e.exe"
  end

  s.add_remote_file_target do |t|
    t.platform     = :osx
    t.archive_type = :zip
    t.url          = "http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.app.zip"
    t.md5          = "861e7b57ffae780ba391ac6adcb40a0d"
    t.add_executable :flashplayer, "Flash Player Debugger.app"
  end

  s.add_remote_file_target do |t|
    t.platform     = :linux
    t.archive_type = :tgz
    t.url          = "http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.i386.tar.gz"
    t.md5          = "38151e67351abce195339dc44d4ff7d0"
    t.add_executable :flashplayer, "flashplayerdebugger"
  end
end