Xcode & Mtasc


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallBeforeHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 218

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 53

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 54

Warning: shuffle() expects parameter 1 to be array, null given in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/wordpress-support/wordpress-support.php(10) : runtime-created function(1) : eval()'d code(1) : eval()'d code on line 1

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallAfterHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 226

I’ve been testing out the Mtasc Compiler over the last week or so, its a incredible improvement over Macromedia Compiler. I’ve downloaded Xmtasc a wonderful GUI (although its still in beta) for Mac OS X.

I code all my flash projects in Xcode using the Directions Posted On Pixelconsumption, and its works great. My favorite thing about the Xcode actionscript package is the “test movie” shortcut, cmd+enter tests the flash movie via a JSFL that is called. But now I am using Xmtasc in combination with mtasc and I dont want to compile in the Flash IDE, so I created a Applescript that will compile the top most Xmtasc project (you can grab the very simple source code for the script here). It took me about 1.5 hours to get this simple script working because of the confusion of the applescript syntax to someone who is used to ‘real’ programming syntax.

To make the applescript work, you should of already followed all the directions on pixelconsumptions site and gotten syntax highlighting/syntax hinting working. Next navigate to: /Library/Application Support/Apple/Developer Tools/Test/. Drop my little applescript into that directory. Next navigate to: /Library/Application/Support/Apple/Developer Tools/Scripts/10-User Scripts/70-Flash. Open up the file named “10-testFlashMovie.bash”, the last line of the “10-testFlashMovie.bash” should look something like this:

open -a "/Applications/Macromedia Flash MX 2004/Flash MX 2004"
"/Library/ApplicationSupport/Apple/Developer Tools/Test/testFlashMovie.jsfl"

Instead of commanding Flash MX2004 to publish the flash document we want to open the applescript. Change that line to this:

osascript "/Library/Application Support/Apple/Developer Tools/Test/publish.scpt"

Save the file and open up Xcode, you should be able to hit cmd+enter and your front-most flash project that you have open in Xmtasc should publish.

2 Responses to “Xcode & Mtasc”



  • Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallBeforeHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

    Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 218

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 53

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 54

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallAfterHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

    Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 226

    hey -
    Thanks for this! Very cool. I’m going to have to give it a try later. Any chance that after compiling, it opens the swf, most like using the debug flash player?

    thanks again!


  • Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallBeforeHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

    Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 218

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 53

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer-core.php on line 54

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method CodeColorerLoader::CallAfterHighlightCodeBlock() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 170

    Strict Standards: Non-static method CodeColorer::GetInstance() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-content/plugins/codecolorer/codecolorer.php on line 226

    In the most recent version of Xmtasc (Beta 3), under the ‘Options’ tab you can choose to open the swf once its done compiling. To open it with the Flash debugger, just specify the path of the flash debugger in the preference pane.

Leave a Reply





Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2::init_scripts() should not be called statically in /home/iloveitaly/mabblog.com/blog/wp-includes/plugin.php on line 405