eLearning Designer / Developer
4 Sep
Two objectives: distribute production tasks without including the “com” folder, and create a workflow for further development of the code library with a hard gate before release to production.

The inspiration for these objectives came when the small company I work for contracted another firm in order to meet a deadline. We could not share the codebase, so they were producing content that they were unable to test. This led to some quality issues and prevented an effective way to close the loop on problems.Hopefully some other issues that never rose above the annoyance level could also be solved along the way. Such as contractors who had access to the library never updating it, and a lack of rigor promoting reusability since the entire library is constantly exposed to every project that uses it, and version control can’t prevent changes in the library from effecting multiple projects in unintended ways.
There are 2 parts to the solution I chose: using a compiled code resource (.swc file) and packaging it in a Flash Extension for distribution.
Creating a swc is detailed in Chapter 31 of Moock’s Essential ActionScript 3. A swc is a compiled MovieClip and – placed in the correct location in the Flash Configuration folder – it will appear as a component in the Flash IDE.
The other part of the solution is a method to install the swc to the correct location in the Configuration folder. I anticipate that this will eliminate plaintive phonecalls from production at 2am. The way to do this is to set up the swc as a Flash Extension so that the Extension Manager can put it where it belongs.
Step-by-step (very specific to my implementation):
Create swc
package{import com.novatekcom.*;
import flash.display.Sprite;
public class nsdk extends Sprite
{
com.novatekcom.display.ResponsiveSprite;
}
}
Create MXP (Extension) file
import com.novatekcom.display.ResponsiveSprite
in the test fla’s document class and run it.
Leave a reply
You must be logged in to post a comment.