Skip to content

Instantly share code, notes, and snippets.

private function mouseDownHandler(e:MouseEvent):void
{
alignInfo.fadeBack();
xOffset = stage.mouseX - photo.x;
yOffset = stage.mouseY - photo.y;
minX = 0-(photo.width-679+photoMask.x);
minY = 0-(photo.height-468+photoMask.y);
public static const PHOTO_HEIGHT:Number = 432;
public static const PHOTO_WIDTH:Number = 642;
public function set assetList(list:Array):void
{
_assetList = list;
for each (var asset:AssetVO in _assetList)
{
if ( asset.alt == "thumb" )
{
var upIcon:String = asset.url;
var frame:AssetVO = ArrayUtil.getItemByKeys( _assetList, { id:asset.id, alt:"detail" } );
public function showPage( n:Number ):void
{
patchToolBox.toolPageStack.showLayer( String( n ) );
}
var next:Number;
if ( !active.index || active.index > 4 )
next = 2;
else
next = active.index + 1;
case "helpPrev":
var previous:Number;
if ( !active.index || active.index < 3 )
previous = 5;
else
previous = active.index - 1;
var maxIndex:Number = 5;
var minIndex:Number = 2;
// TODO: this code is too fragile. assets should be added to Patchifyer component at startup, and
// this command should only show or hide their visibility. consider breaking DisplayHelpCommand
// out into a macro with 'ShowHelpPageCommand', 'ShowHelpNav', 'ShowHelpHeader' as subcommands.
showAsset("helpBackgroundBlank",0,0,0);
showAsset("helpTextTitle",187,50);
showCloseButton();
showNavigation(canvas.index);
}
private function showAsset(image:String, offsetX:Number=0, offsetY:Number=0, setIndex:int=-1):void {
delimitMate Report
==================
* Options: (-) unset, (g) global, (b) buffer
(-) delimitMate_apostrophes = ''
(-) delimitMate_autoclose = 1
(-) delimitMate_balance_matchpairs = 0
(-) delimitMate_excluded_ft = ''
(-) delimitMate_excluded_regions = 'Comment'