https://github.com/schell/sublime-as3
I've moved on to vim, so this project most likely will not be updated...A project building package for Sublime Text 2
https://github.com/schell/sublime-as3
Last synced: 28 days ago
JSON representation
I've moved on to vim, so this project most likely will not be updated...A project building package for Sublime Text 2
- Host: GitHub
- URL: https://github.com/schell/sublime-as3
- Owner: schell
- Created: 2012-06-28T20:17:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-06T23:21:06.000Z (over 12 years ago)
- Last Synced: 2025-02-07T16:45:04.297Z (3 months ago)
- Language: Python
- Homepage:
- Size: 227 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AS3
===A Sublime Text 2 package for writing pure AS3 projects. The language definition file was taken from Simon Gregory's awesome TextMate bundle. (https://github.com/simongregory/actionscript3-tmbundle)
Installation
------------
Just clone this repo in your packages folder:
git clone [email protected]:schell/Sublime-AS3.git 'AS3'
Usage
-----
You may want to use mxmlc or fcsh or some custom build script you've written, so AS3Build.py (the
script that builds your projects) looks in your current settings for a command template called as3_build_cmd.
This should be a python format string. By default as3_build_cmd is "mxmlc %(input)s -o %(output)". My
copy of mxmlc isn't in my path, so I've changed this in my User settings to be "/SDKs/Flex/bin/mxmlc %(input)s -o %(output)".In order to build your project's main .as file, add the relative path (relative to your sublime-project file) of the main
.as and the path to the target output swf to your project's sublime-project file:```json
"settings" : {
"input" : "relative/path/to/entrypoint.as", // relative to your project directory...
"output" : "relative/path/to/deploy.swf"
}
```As3Build.py will grab these values and prefix them with the project directory, stick them into the build command
and then run them like any other build command.Why?
----
After moving from TextMate I needed to build my AS3 projects, while still allowing my teammates to build it on their machines, hence all the relative path and command string stuff. I also wanted to learn about packages and syntax definition in Sublime Text 2.