Table of Contents

ASDT - ActionScript Development Tool

Tags : ,

Summary

An ActionScript Editor for Eclipse. Provides code coloring, code completion, outlining etc.

Tutorials

Download

The Eclipse Update URL is:

http://aseclipseplugin.sourceforge.net/updates

Here are more detailed instructions from Peter Schreiber, as sent to the OSFlash mailing list:

Templates for Actionscript Development Tool

Here are a few templates that could be helpful in your coding as well as in figuring out how to make your own templates.

I found these templates helpful in my daily coding and thought that they might also be helpful to you.

To use these templates, go to the Templates page in the ASDT preferences screen (Windows > Preferences... > Actionscript 2 > Templates) and select “Import”. Find the xml files that you have downloaded here and select “Open”.

Templates for dispatchEvent() Calls

These are a couple of templates that were put together because of the repetitive nature of calling dispatchEvent().

When you type “dis” and then hit the Ctrl-Space key combination you will be presented with the choice of three dispatchEvent templates. The “dis” template is a simple dispatchEvent() call that you can begin editing. The “dise” call is a simple event pass-through. The “disp” template is a dispatchEvent() call with one parameter.

http://osflash.org/downloads/asdt/dispatchEvent_templates.zip

Solving solitary line ending issues

It seems that some versions of ASDT have trouble with line endings and insert solitary Mac line endings on the Windows Platform. The Duplciate line function seems to be the culprit. If you have several files that are afflicated with this issue, the following Ant task will convert all the solitary line endings to Unix format:

<?xml version="1.0" encoding="utf-8"?>
<project name="CorrectLineEndings" default="correctLineEndings">
	
	<!-- Environment variables: -->
	<property environment="env" />
	
	<!-- user modifiable properties -->
	<property name="src" value="c:/path/to/your/project/" />
 
	<!-- TASKS -->
	<target name="correctLineEndings">
		<replace dir="${src}" value="&#0010;" excludes="*.fla,**/*.fla">
		  <replacetoken>&#0013;&#0010;</replacetoken>
		</replace>
		<replace dir="${src}" value="&#0010;" excludes="*.fla,**/*.fla">
		  <replacetoken>&#0013;</replacetoken>
		</replace>
	</target>
</project>