KrCanvasResource* KrSpriteResource::CreateCanvasResource( U32 id, int frame, int* hotx, int* hoty )
{
	KrAction* action = 0;
	actionIdMap->Find( id, &action );
	if ( action )
		return action->CreateCanvasResource( frame, hotx, hoty );
	return 0;
}
KrCanvasResource* KrSpriteResource::CreateCanvasResource( const gedString& actionName, int frame, int* hotx, int* hoty )
{
	KrAction* action = 0;
	actionMap->Find( actionName, &action );
	if ( action )
		return action->CreateCanvasResource( frame, hotx, hoty );
	return 0;
}