Every repository with this icon (
Every repository with this icon (
| Description: | Project Sprouts is an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3, Adobe AIR Flash and Flex projects edit |
-
Running rake for the first time does nothing
4 comments Created about 1 month ago by woutHi,
I just found out about sprout and I must say it's exactly what I'm looking for.
But something is going wrong and I can't figure out what.Running rake only opens the flash player.
According to the getting started tut I should see a compiled swf with the sprout logo.I'm running Snow Leopard 10.6.1, rubygems 1.3.5 and the latest rubyEE.
What could be wrong?Comments
-
Leopard comes with ruby and gem installed by default. This issue may apply outside of OS X, but as of today I was having trouble installing Project Sprouts on my Mac system. I followed instructions but still ran into some problems.
- Latest version of gem
To upgrade the default Leopard version of 1.0.1 to something more recent, use the following command:
sudo gem update --system
When trying to install with v1.0.1 of gem, I received errors that hoe-2.2.0 was not found (404) from rubyforge. Maybe this fix can be reflected in the README and docs. Also there may be some way to tell the sprout install to require a specific version of gem.
- net-ssh and net-sftp
I had to manually update these after upgrading gem and installing sprout. I was trying to create an as2 project and received the following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp.rb:37: undefined method
`register_service' for Net::SSH:Module (NoMethodError)
I fixed/worked around this via the command: sudo gem install net-ssh net-sftp
Refer to this thread for more info: http://groups.google.com/group/projectsprouts/browse_thread/thread/3cc781529dd34aa2
Thanks,
DaveComments
I'm pretty sure these issues are resolved in the latest release. I think the problem was that you were getting the default 'ruby' gem instead of the 'darwin' platform specific sprout gem. Please remove your gem, add gemcutter and reinstall. Do you still have the problem?
sudo gem uninstall sprout
sudo gem install gemcutter
gem tumble
sudo gem install sprout
- Latest version of gem
To upgrade the default Leopard version of 1.0.1 to something more recent, use the following command:
-
The sprout gem/application should provide a command to tail flashlog.txt
0 comments Created about 1 month ago by lukebayessomething like sprout -flashlog
Comments
-
Error: undefined method 'sort_obj' when trying to rake
1 comment Created 7 months ago by robertpennerI did a fresh install of Ruby 1.8.6 and Sprouts on a new machine today. When I tried to create a new AS3 project, I got an error "undefined method 'sort_obj'". Same thing when trying to rake an older AS2 project. Here's the full trace from the AS2 failure:
rake --trace
rake aborted!
undefined methodsort_obj' for #<Gem::Specification:0x43f85b4><br/> c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:insprout_search'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:insort_by'<br/> c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:ineach'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:insort_by'<br/> c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:insprout_search'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:331:infind_gem_spec'<br/> c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:277:insprout'
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:469:insprout'<br/> C:/Users/robert.penner/Documents/scratchpad/sprouts/Merch/rakefile.rb:4<br/> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2359:inload'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2359:inraw_load_rakefile'<br/> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1993:inload_rakefile'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling'<br/> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1992:inload_rakefile'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1976:inrun'<br/> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:inrun'<br/> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31<br/> c:/ruby/bin/rake:16:inload'
c:/ruby/bin/rake:16Comments
I'm not sure how to explicitly set a version dependency against the core RubyGems, but I added some notes about this problem to a new troubleshooting page here:
http://wiki.github.com/lukebayes/project-sprouts/troubleshooting
I'd like to get your RubyGem version number (gem -v) so that we can potentially add support for that version and save people the hassle.
-
test_increment_revision(GitTaskTest): MissingSourceFile: no such file to load -- git
0 comments Created 2 months ago by viatroposIf I am in the root directory of git clone "project-sprouts", and I run "rake package", I get this along the way:
Error:
test_increment_revision(GitTaskTest):
MissingSourceFile: no such file to load -- git... I think there is a dependency on the "git" gem and on the "mocha" gem in the tests.
Which brings me to another issue: When I run "rake package", it runs the tests too, which it shouldn't, and the tests require other gems, so there's a big ol circular dependency thingy so it only really works right if you already have everything installed.
I'm working on making the local gem installations work, I just got the whole ENV thing set up.
Best,
LanceComments
-
Sprout rakefiles should look in script/tasks for additional .rake files to include
0 comments Created 4 months ago by lukebayesComments
-
Tool task params should validate on data types
0 comments Created 4 months ago by lukebayesmxmlc 'foo.swf' do |t|
t.link_report = true endshould throw a more helpful message like, 'link_report expects a file name'
Comments
-
Sprout executable may not be getting added to the system path properly on Ubuntu
0 comments Created 4 months ago by lukebayes -
FDB Task Helper does not work properly for MXML projects
0 comments Created 4 months ago by lukebayesIt seems there is an extra delay required along with another 'continue' call.
Comments
-
Tool tasks (like the Flex SDK) should check for environment variables first
0 comments Created 6 months ago by lukebayesThe sprout.spec could add an additional field like env_names = ['FLEX_HOME', 'SPROUT_FLEX_HOME'] or some such thing.
Then the code path that looks for the downloaded bundle would instead check for this value.
Users could set these environmental vars in their Rakefile - especially if they want to check dependencies into a 'vendor' folder.
Comments
-
0 comments Created 7 months ago by lukebayesPreprocessor task is hanging around the 100th fileas3 bundlexSee this thread for more info:
Comments
-
0 comments Created 7 months ago by lukebayesCompile issues for as2 projects on Linuxas2 bundlexWhat steps will reproduce the problem?
1. Create new as2 project
2. Attempt to compile
3. [ERROR] Directory 'std' containing MTASC class headers cannot be found :
Please install it or set classpath using '-cp' so it can be found.
4. Add MTASC std and std8 libraries to classpath in rakefile.rb
5. Attempt to compile
6. [ERROR]
/home/username/.sprouts/cache/tool/mtasc-tool/tgz/std8/flash/geom/Point.as:10: characters 10-13 : parse error Unexpected add
7. Add t.version = 8 to rakefile.rb compile task
8. Compiles fineWhat version of the product are you using? On what operating system?
sprout 0.7.170 on Ubuntu 8.04
Comments
-
2 comments Created 7 months ago by lukebayes"Unable to determine home path environment variable." Rake failure on Windows XPsprout corexadded by: http://code.google.com/u/jeffshadap/
What steps will reproduce the problem?
1) install sprouts
2) E:\sprots>sprout -n as3 someproject
3) E:\sprouts>rake
expected: Sprouts logo
instead:
rake aborted!
Unable to determine home path environment variable.
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2398:in
`win32_system_dir' (See full trace by running task with --trace)---My HOME path is set to C:\
E:\sprots>set HOME
HOME=C:\
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Jeff
Comments
What version of the product are you using? On what operating system?
System: Windows XP
ruby : ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
ruby gem : 1.0.1
fantasticmf
Thu Sep 24 10:45:42 -0700 2009
| link
I just encountered this error myself. I patched by changing the environment variable order of preference: USERPROFILE preferred over HOME. I'm using XP with HOME set to a network share. In my environment USERPROFILE is "C:\Documents and Settings\username" (echo %USERPROFILE%). Not sure if this will "break" Sprouts for other Windows environments.
Edit C:\Ruby\lib\ruby\gems\1.8\gems\sprout-0.7.213-x86-mswin32\lib\sprou
t\user.rb (aka sprout/lib/sprout/user.rb in git repo)Change line 147 from
["HOME", "USERPROFILE"].each do |homekey|to
["USERPROFILE", "HOME"].each do |homekey| -
0 comments Created 7 months ago by lukebayesMake Sprout::Sprout.sprout_cache check an environment variable firstsprout corexUsers / Developers should be able to install and retrieve sprouts from
wherever they want on their system.Additionally, continuous integration machines should be able to set the
gem_home and sprout_home vars so that their actual gem installations don't
get beat up.
Comments
-
3 comments Created 7 months ago by lukebayesUpdate gem_wrap task so that sources and swcs can be included directly in the gemsprout corexCurrently, gem_wrap only works for libraries that are hosted remotely. It
should also allow us to wrap the actual source and swcs in the gem/ext
directory so that they are immediately available in the gem itself.Comments
It should be much easier to create a new library gem. As a matter of fact, one should
be able to very easily create a library gem from any sprout project!This will also require a change to the library task, so that it looks for these
bundles resources instead of automatically fetching theThere is a workaround to provide temporary semi-support for this feature...
See this thread for more information:
http://groups.google.com/group/projectsprouts/browse_thread/thread/5012be09a6145b -
0 comments Created 7 months ago by lukebayesMake Sprouts check environment vars before setting values like sprout_cachesprout corexDevelopers and users should be able to set specific environmental variables
so that Sprouts (and Gems) will download and install both gems and external
files into very specific (especially versioned) folders for a particular
project.Comments
-
3 comments Created 7 months ago by lukebayesscript/generate ignores standard rails generator optionssprout corexReported by hob.spillane, Mar 02, 2009
What steps will reproduce the problem?
1. run "script/generate class class util.TestUtil"
2. modify TestUtil in some way (just add a space somewhere)
3. run "script/generate class -s util.TestUtil"What is the expected output? What do you see instead?
-s should tell the generator to skip TestUtil if it already exists, but running the command in step 3 does not prevent the following message:
"overwrite test/com/workday/ui/flex/util/TestUtilTest.as? [Ynaiqd]"What version of the product are you using? On what operating system?
sprout 0.7.206 on Windows VistaPlease provide any additional information below.
Additionally there's a mistake in the usage information obtained by running
"script/generate -h". The usage statement says: "Usage: script/generate.rb [options] packagename.ClassName."Putting the -s option in place of [options] generates an error: "Couldn't
find '-s' generator."Standard Rails usage is to have [options] after the generator name. Usage
should probably read as follows: "Usage: script/generate.rb generator
[options] packagename.ClassName."Comments
Hey -
This is a great bug, and I completely agree with you. I've been meaning to get the generators cleaned up and
more consistent with Rails. Would you consider contributing a patch?Thanks!
Comment 4 by hob.spillane, Mar 03, 2009
I've been digging into this a bit. I haven't found the solution yet, but my guess,
thus far, is that it has something to do with your RubiGen::Base override in
base_mixins.rb.I've been stepping thru the code execution, and while the options parser successfully
parses the "-s" switch, and adds it to the options object, that object is not
propagated up to your NamedBase class (which extends RubiGen::Base).I'll keep digging later, but I have to actually get some other work done now. Let me
know if this rings a bell, or creates any flashes of insight.-Hob
Comment 5 by lba...@patternpark.com, Mar 03, 2009
Hey Hob,Thanks for digging in, I could be wrong, but If I remember correctly, we have that override in place simply
because a particular version of Rubigen broke on a single line.I believe there was a later release that really broke, which is why we depend on specifically version 1.3.3...
This could be the problem. Maybe the -s argument wasn't supported in that version of Rubigen?It might make sense to look into supporting the latest release while you're in there...
Thanks again! I really appreciate your help on this.
-
0 comments Created 7 months ago by lukebayes[ERROR] command line: Error: default arguments may not be interspersed with other optionssprout corexWhat steps will reproduce the problem?
1. On a windows system, create a new sprouts project and include a space in
the project name such as: sprout -n as3 "My Project"
2. Run rake on the project
3. The following error is thrown: [ERROR] command line: Error: default
arguments may not be interspersed with other options.What is the expected output? What do you see instead?
I expect that the project will build, instead I am presented with the error
mentioned above (full trace output listed below).What version of the product are you using? On what operating system?
Version: sprout 0.7.183
OS: Windows XPPlease provide any additional information below.
Below is the full trace output from the error:C:\DOCUME~1\ktyacke\MYDOCU~1\FLEXBU~2\test project>rake --trace
(in C:/DOCUME~1/ktyacke/MYDOCU~1/FLEXBU~2/test project) Invoke default (first_time) Invoke debug (first_time) Invoke run_bin/test project-debug.swf (first_time) Invoke bin/test project-debug.swf (first_time) Invoke src/test project.as (first_time, not_needed) Invoke src/test projectRunner.as (first_time, not_needed) Invoke assets/skins (first_time, not_needed) Invoke assets/skins/test project (first_time, not_needed) Invoke assets/skins/test project/ProjectSprouts.png (first_time, not_needed) Invoke assets/skins/test projectSkin.as (first_time, not_needed)Execute: mxmlc.exe -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 970 550 -output=bin/test project-debug.swf -source-path+=src -source-path+=assets
-verbose-stacktraces=true -warnings=true src/test project.as rake aborted!
[ERROR] command line: Error: default arguments may not be interspersed with other optionsUse 'mxmlc -help' for information about using the command line.
C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/user.rb:207:in
execute' C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/user.rb:97:in<br/>execute' C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.183-x86-mswin32/lib/sprout/tasks/tool_task.rb:122:in
execute' C:/xampp/ruby/lib/ruby/gems/1.8/gems/sprout-as3-bundle-0.2.3/lib/sprout/tasks/mxmlc_task.rb:721:in<br/>execute' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in<br/>synchronize' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:insend'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in<br/>synchronize' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:insend'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in<br/>synchronize' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:insend'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in<br/>invoke_prerequisites' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in<br/>synchronize' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
invoke_with_call_chain' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:ininvoke'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
invoke_task' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:intop_level'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:ineach'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:intop_level'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
standard_exception_handling' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:intop_level'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:inrun'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in<br/>standard_exception_handling' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:inrun'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31<br/> C:/xampp/ruby/bin/rake:19:inload'
C:/xampp/ruby/bin/rake:19
Comments
-
0 comments Created 7 months ago by lukebayesUpdate the ActionScript 2 project template so that users without swfmill don't get errorsas2 bundlexCurrently the as2 project template will generate a rakefile that requires
swfmill.This should be updated so that the first experience on Linux works as
expected, instead of throwing errors.Comments
-
1 comment Created 7 months ago by lukebayesProjects with punctuation don't get parsed properly.sprout corexWhat steps will reproduce the problem?
1. sprout -n as3 someproject.comWhat is the expected output? What do you see instead?
Project created in 'someproject.com'
What version of the product are you using? On what operating system?
sprout 0.7.183 OS X Tiger
Comments
-
1 comment Created 7 months ago by lukebayesAdd a task for launching and closing browser(s)sprout corexThis task should work similarly to the flashplayer task, but instead of
launching the desktop flashplayer, it should launch a browser.It will need to close the browser upon request in order to be useful for
continuous integration environments.Comments
I'm thinking the FlashPlayerTask should be modified so that you can send it an HTML document or URL, which it should open using the system default (or specified?) browser. Otherwise, it should behave just like launching the desktop FlashPlayer - block until closed, collect trace output, etc.
-
If I do this:
m.library_path = [
"/Users/Lance/Desktop/sample/lib/mate.swc", "/Users/Lance/Desktop/sample/lib/restfulx.swc", "/Users/Lance/Desktop/sample/lib/urlkit.swc" ]It works fine, but there's duplication in the library-path arguments:
Execute: mxmlc...
-library-path+=/Users/Lance/Desktop/sample/lib/mate.swc -library-path+=/Users/Lance/Desktop/sample/lib/restfulx.swc -library-path+=/Users/Lance/Desktop/sample/lib/urlkit.swc -library-path+=/Users/Lance/Desktop/sample/lib/mate.swc -library-path+=/Users/Lance/Desktop/sample/lib/restfulx.swc -library-path+=/Users/Lance/Desktop/sample/lib/urlkit.swcBut if it has spaces, it doesn't work:
m.library_path = [
"/Users/Lance/Documents/Flex\ Builder\ 3/mate/bin/mate.swc", "/Users/Lance/Documents/Flex\ Builder\ 3/restfulx/bin/restfulx.swc", "/Users/Lance/Documents/Flex\ Builder\ 3/urlkit/bin/urlkit.swc" ][ERROR] command line: Error: default arguments may not be interspersed with other options
Any ideas? It has to do with the spaces but I haven't figured it out.
Lance
Comments
I'm pretty sure sprouts tries to clean these paths with escape characters already. Can you try without adding your own escapes and let me know if you still have the same problem? If so, I need to update our code so that it ignores already-escaped spaces...
-
if I just use mxmlc by itself, I have to redefine the library paths and namespaces.
If I just debug, it uses the project_model data, from mxmlchelper
Comments
-
The MXMLHelper initializes the tasks.
This means that if I define two tasks using the helper methods like so:
debug :taska do |t| t.library_path << my_path end debug :taskb do |t| t.library_path << my_path end
.. and I define a project_model with that path, then I will get 3 copies of the library_path. Plus, if I run taskb, taska will still initialize and run. And since "debug" invokes a "flashplayer" task, that flashplayer task will be reused for each subsequent task.
Maybe I'm missing something but this doesn't seem like it's working right.
Should MXMLCHelper be a module instead of a wrapper? I think the fact that it initializes the task is the problem.
As it stands, I can't have more than one task use the helper methods "debug, document", etc. If I do, I start getting very strange results: some tasks are run that I didn't want to run, some tasks I'm trying to run aren't run at all.
Any ideas?
Comments
-
0 comments Created 7 months ago by lukebayesFlash Player Task gets relaunched if closed too quicklytoolsxThe rb-appscript feature that attempts to focus the newly-launched
flashplayer uses the 'activate' AppleScript Application command, but the
old command actually checked System Events.processes, looking for a running
Flash Player application, and then set 'foremost = true' on that process.The new call to activate will actually re-launch the Flash Player if it has
already been closed rather than simply failing.Figure out how to set the frontmost application using rb-appscript.
Comments












Please try running "rake clean default", also ensure you have the rb-appscript gem, sudo gem install rb-appscript. If that doesn't do it, can you copy whatever is displayed on your terminal?
The rb-appscript gem was already installed...
Running rake clean default turns out to be quite the same, only now he's removing stuff before generating the swf:
Than he's executing:
And than the result:
In fact I think everything is working fine except for the fact that he's not opening the swf, only opening the flashplayer. The swf is generated and I can open it manually, so I can set up an html document and refresh it from textmate to view the changes.
I've generated the sprout directory inside a rails directory (next to app, config, public, ...) because the flash app will be part of a bigger application.
That's surprising, is this using the default rakefile, or have you created a new mxmlc task? If you have modified the rakefile at all, please attach the modified rakefile and I'll take a look.
Just so you know - I'm running the same system configuration myself with no issues.
Yes, just the untouched rakefile and I created an as3 project. I followed the video tut to check out about it. Maybe there is some weird permission problem? Or maybe something with the flash player? (mine is 10.0.32.18). Really weird.