﻿

 
function configureTool()
{
	theTool = fl.tools.activeTool;
	theTool.setToolName("ikbridgelink");
	theTool.setIconResID(1, 2);
	
	var str = FlashIK.getString( 2 );
	//theTool.setMenuString("Bone Tool");
	//theTool.setToolTip("Bone Tool");
	theTool.setMenuString( str );
	theTool.setToolTip( str );
	theTool.setUndoForMouseDown( true , "", 1);
	
	//theTool.setOptionsFile( "IKBridgeLink.xml" );

	///////////////////////////////////////////
	theTool.setPI( "movie" );
	
	// initialize the dll
	FlashIK.init( FlashIK.platform() == "MAC" ? fl.configURI : fl.configDirectory );
}


function notifySettingsChanged()
{
	FlashIK.getBridgeLinkObject().notifySettingsChanged();
}


function notifyDocChanged( theType )
{
	FlashIK.getBridgeLinkObject().notifyDocChanged( theType );
}


function setCursor()
{
	FlashIK.getBridgeLinkObject().setCursor();
}


function undo()
{
	FlashIK.getBridgeLinkObject().undo();
}


function redo()
{
	FlashIK.getBridgeLinkObject().redo();
}


function activate()
{
	FlashIK.getBridgeLinkObject().activate();
}


function deactivate()
{
	FlashIK.getBridgeLinkObject().deactivate();
}


function mouseDown()
{
	FlashIK.getBridgeLinkObject().mouseDown();
}



function mouseMove(mouseLoc)
{
	FlashIK.getBridgeLinkObject().mouseMove(mouseLoc);
}



function mouseUp()
{
	FlashIK.getBridgeLinkObject().mouseUp();
}


function mouseDoubleClick()
{
	FlashIK.getBridgeLinkObject().mouseDoubleClick();
}

