local createCompositionbutterfly_fly = nil
local createCompositionbutterfly_fly2 = nil
local createCompositionbutterfly_idle = nil
local createCompositionbutterfly_uletela = nil
---------------------------------------------------------------------------------------
local PREFIX_PATH = "data/Texture/Scenes/06_garden/main/anim/butterfly/"
---------------------------------------------------------------------------------------
function Loader_06_Butterfly_Animations(parent)
	return CreateAnimationLoadingRoutine(parent, PREFIX_PATH,
		{
    			CreateCompositionLoader(createCompositionbutterfly_idle,		                'idle',	  0,0, 20, 320,240, true),
    			CreateCompositionLoader(createCompositionbutterfly_uletela,		                'action', 0,0, 20, 320,240, false),
		},
		{
			function (element, textureName)
			end,
		});
end
---------------------------------------------------------------------------------------
createCompositionbutterfly_fly = function()
	local compositionbutterfly_fly = CreateCompositionSequence()
	local compositionDuration = 6
	compositionbutterfly_fly:SetDuration(compositionDuration)
 
	local element
	local effector
 
	-- Layer Layer_1
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4.png")
	element:SetName("Layer_1")
	compositionbutterfly_fly:AddElement(element)
	element:SetHotSpot(41, 27.75)
	element:SetParentElement(compositionbutterfly_fly)
	element:SetXY(480.5, 139.5)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:SetKey(_TRACK_SX, 0, -0.93181818181818)
	effector:SetKey(_TRACK_SY, 0, 1)
	effector:SetKey(_TRACK_SX, 0.25, -0.88820450280689)
	effector:SetKey(_TRACK_SY, 0.25, 1.00000000250099)
	effector:SetKey(_TRACK_SX, 0.5, -0.7884180696845)
	effector:SetKey(_TRACK_SY, 0.5, 1.00000000259316)
	effector:SetKey(_TRACK_SX, 0.75, -0.67904080841486)
	effector:SetKey(_TRACK_SY, 0.75, 1.00000000558397)
	effector:SetKey(_TRACK_SX, 1, -0.60665459946823)
	effector:SetKey(_TRACK_SY, 1, 1.0000000049791)
	effector:SetKey(_TRACK_SX, 1.10294596354167, -0.59848484416371)
	effector:SetKey(_TRACK_SY, 1.10294596354167, 0.99999999986858)
	effector:SetKey(_TRACK_SX, 1.25, -0.61873378222323)
	effector:SetKey(_TRACK_SY, 1.25, 0.99999999477065)
	effector:SetKey(_TRACK_SX, 1.5, -0.71822170481193)
	effector:SetKey(_TRACK_SY, 1.5, 0.99999999186163)
	effector:SetKey(_TRACK_SX, 1.75, -0.84242010341542)
	effector:SetKey(_TRACK_SY, 1.75, 0.99999999241096)
	effector:SetKey(_TRACK_SX, 2, -0.92500253877051)
	effector:SetKey(_TRACK_SY, 2, 1.00000000505234)
	effector:SetKey(_TRACK_SX, 2.08333333333333, -0.93181818572303)
	effector:SetKey(_TRACK_SY, 2.08333333333333, 1.00000000556378)
	effector:SetKey(_TRACK_SX, 2.25, -0.93181818172083)
	effector:SetKey(_TRACK_SY, 2.25, 1.00000000843196)
	effector:SetKey(_TRACK_SX, 2.5, -0.93181818091514)
	effector:SetKey(_TRACK_SY, 2.5, 0.99999999255013)
	effector:SetKey(_TRACK_SX, 2.75, -0.93181817383851)
	effector:SetKey(_TRACK_SY, 2.75, 1.00000000149876)
	effector:SetKey(_TRACK_SX, 3, -0.93181819172113)
	effector:SetKey(_TRACK_SY, 3, 0.9999999909003)
	effector:SetKey(_TRACK_SX, 3.04166666666667, -0.93181819105811)
	effector:SetKey(_TRACK_SY, 3.04166666666667, 0.99999999265776)
	effector:SetKey(_TRACK_SX, 3.25, -0.90063233846343)
	effector:SetKey(_TRACK_SY, 3.25, 1.00000000299783)
	effector:SetKey(_TRACK_SX, 3.5, -0.80697316439248)
	effector:SetKey(_TRACK_SY, 3.5, 1.00000000715384)
	effector:SetKey(_TRACK_SX, 3.75, -0.69595951603669)
	effector:SetKey(_TRACK_SY, 3.75, 0.99999999107547)
	effector:SetKey(_TRACK_SX, 4, -0.61417328790378)
	effector:SetKey(_TRACK_SY, 4, 1.00000000448103)
	effector:SetKey(_TRACK_SX, 4.14461263020833, -0.59848484273167)
	effector:SetKey(_TRACK_SY, 4.14461263020833, 0.99999999655137)
	effector:SetKey(_TRACK_SX, 4.25, -0.60921205486959)
	effector:SetKey(_TRACK_SY, 4.25, 0.9999999903235)
	effector:SetKey(_TRACK_SX, 4.5, -0.69813314911574)
	effector:SetKey(_TRACK_SY, 4.5, 1.00000000675832)
	effector:SetKey(_TRACK_SX, 4.75, -0.82281913349835)
	effector:SetKey(_TRACK_SY, 4.75, 0.99999999004883)
	effector:SetKey(_TRACK_SX, 5, -0.9169435827899)
	effector:SetKey(_TRACK_SY, 5, 0.99999999152593)
	effector:SetKey(_TRACK_SX, 5.125, -0.93181818181818)
	effector:SetKey(_TRACK_SY, 5.125, 1)
	effector:Play()
 
 
	-- Layer Layer_2
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4.png")
	element:SetName("Layer_2")
	compositionbutterfly_fly:AddElement(element)
	element:SetHotSpot(41, 28)
	element:SetParentElement(compositionbutterfly_fly)
	element:SetXY(473.5, 140)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:SetKey(_TRACK_SX, 0, 1)
	effector:SetKey(_TRACK_SY, 0, 1)
	effector:SetKey(_TRACK_SX, 0.25, 0.95638631645366)
	effector:SetKey(_TRACK_SY, 0.25, 0.99999999974334)
	effector:SetKey(_TRACK_SX, 0.5, 0.85659988431763)
	effector:SetKey(_TRACK_SY, 0.5, 1.00000000140416)
	effector:SetKey(_TRACK_SX, 0.75, 0.74722262144089)
	effector:SetKey(_TRACK_SY, 0.75, 0.99999999226936)
	effector:SetKey(_TRACK_SX, 1, 0.67483641393412)
	effector:SetKey(_TRACK_SY, 1, 1.00000000155248)
	effector:SetKey(_TRACK_SX, 1.10294596354167, 0.66666666570524)
	effector:SetKey(_TRACK_SY, 1.10294596354167, 1.00000000241065)
	effector:SetKey(_TRACK_SX, 1.25, 0.68691561572657)
	effector:SetKey(_TRACK_SY, 1.25, 1.00000000145787)
	effector:SetKey(_TRACK_SX, 1.5, 0.78640352412599)
	effector:SetKey(_TRACK_SY, 1.5, 1.00000000576281)
	effector:SetKey(_TRACK_SX, 1.75, 0.91060191651713)
	effector:SetKey(_TRACK_SY, 1.75, 0.9999999901709)
	effector:SetKey(_TRACK_SX, 2, 0.99318435380526)
	effector:SetKey(_TRACK_SY, 2, 0.99999999958037)
	effector:SetKey(_TRACK_SX, 2.08333333333333, 1.0000000025082)
	effector:SetKey(_TRACK_SY, 2.08333333333333, 0.99999999915764)
	effector:SetKey(_TRACK_SX, 2.25, 1.00000000486007)
	effector:SetKey(_TRACK_SY, 2.25, 1.00000000047823)
	effector:SetKey(_TRACK_SX, 2.5, 1.00000000565294)
	effector:SetKey(_TRACK_SY, 2.5, 1.00000000408612)
	effector:SetKey(_TRACK_SX, 2.75, 1.00000000902097)
	effector:SetKey(_TRACK_SY, 2.75, 1.00000000306375)
	effector:SetKey(_TRACK_SX, 3, 0.99999999944487)
	effector:SetKey(_TRACK_SY, 3, 1.00000000143651)
	effector:SetKey(_TRACK_SX, 3.04166666666667, 0.99999999916494)
	effector:SetKey(_TRACK_SY, 3.04166666666667, 1.00000000189962)
	effector:SetKey(_TRACK_SX, 3.25, 0.96881415149434)
	effector:SetKey(_TRACK_SY, 3.25, 1.00000000714896)
	effector:SetKey(_TRACK_SX, 3.5, 0.87515498171489)
	effector:SetKey(_TRACK_SY, 3.5, 0.99999999429762)
	effector:SetKey(_TRACK_SX, 3.75, 0.76414133845937)
	effector:SetKey(_TRACK_SY, 3.75, 0.99999999062929)
	effector:SetKey(_TRACK_SX, 4, 0.68235510147182)
	effector:SetKey(_TRACK_SY, 4, 0.99999999456923)
	effector:SetKey(_TRACK_SX, 4.14461263020833, 0.66666665982333)
	effector:SetKey(_TRACK_SY, 4.14461263020833, 1.0000000011562)
	effector:SetKey(_TRACK_SX, 4.25, 0.6773938732858)
	effector:SetKey(_TRACK_SY, 4.25, 1.00000000564867)
	effector:SetKey(_TRACK_SX, 4.5, 0.76631496649676)
	effector:SetKey(_TRACK_SY, 4.5, 0.99999999651692)
	effector:SetKey(_TRACK_SX, 4.75, 0.89100095434017)
	effector:SetKey(_TRACK_SY, 4.75, 0.99999999689962)
	effector:SetKey(_TRACK_SX, 5, 0.98512539700553)
	effector:SetKey(_TRACK_SY, 5, 0.99999999946989)
	effector:SetKey(_TRACK_SX, 5.125, 1)
	effector:SetKey(_TRACK_SY, 5.125, 1)
	effector:Play()
 
 
	-- Layer Layer_3
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4_telo.png")
	element:SetName("Layer_3")
	compositionbutterfly_fly:AddElement(element)
	element:SetHotSpot(7, 24)
	element:SetParentElement(compositionbutterfly_fly)
	element:SetXY(475.25, 133.25)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:Play()
 
	compositionbutterfly_fly:Play()
 
	return compositionbutterfly_fly
end
 
createCompositionbutterfly_fly2 = function()
	local compositionbutterfly_fly2 = CreateCompositionSequence()
	local compositionDuration = 6
	compositionbutterfly_fly2:SetDuration(compositionDuration)
 
	local element
	local effector
 
	-- Layer Layer_1
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4.png")
	element:SetName("Layer_1")
	compositionbutterfly_fly2:AddElement(element)
	element:SetHotSpot(41, 27.75)
	element:SetParentElement(compositionbutterfly_fly2)
	element:SetXY(483.75, 137.5)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:SetKey(_TRACK_SX, 0, -0.8789726533629)
	effector:SetKey(_TRACK_SY, 0, 1)
	effector:SetKey(_TRACK_SX, 0.08333333333333, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.08333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.16666666666667, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 0.16666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.25, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.25, 1)
	effector:SetKey(_TRACK_SX, 0.33333333333333, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 0.33333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.41666666666667, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.41666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.5, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 0.5, 1)
	effector:SetKey(_TRACK_SX, 0.58333333333333, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.58333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.66666666666667, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 0.66666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.75, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.75, 1)
	effector:SetKey(_TRACK_SX, 0.83333333333333, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 0.83333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.91666666666667, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 0.91666666666667, 1)
	effector:SetKey(_TRACK_SX, 1, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1, 1)
	effector:SetKey(_TRACK_SX, 1.08333333333333, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.08333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.16666666666667, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1.16666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.25, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.25, 1)
	effector:SetKey(_TRACK_SX, 1.33333333333333, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1.33333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.41666666666667, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.41666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.5, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1.5, 1)
	effector:SetKey(_TRACK_SX, 1.58333333333333, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.58333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.66666666666667, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1.66666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.75, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.75, 1)
	effector:SetKey(_TRACK_SX, 1.83333333333333, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 1.83333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.91666666666667, -0.29360679970437)
	effector:SetKey(_TRACK_SY, 1.91666666666667, 1)
	effector:SetKey(_TRACK_SX, 2, -0.84848484848485)
	effector:SetKey(_TRACK_SY, 2, 1)
	effector:Play()
 
 
	-- Layer Layer_2
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4.png")
	element:SetName("Layer_2")
	compositionbutterfly_fly2:AddElement(element)
	element:SetHotSpot(41, 28)
	element:SetParentElement(compositionbutterfly_fly2)
	element:SetXY(476.75, 138)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:SetKey(_TRACK_SX, 0, 1.03048780487805)
	effector:SetKey(_TRACK_SY, 0, 1)
	effector:SetKey(_TRACK_SX, 0.08333333333333, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.08333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.16666666666667, 1)
	effector:SetKey(_TRACK_SY, 0.16666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.25, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.25, 1)
	effector:SetKey(_TRACK_SX, 0.33333333333333, 1)
	effector:SetKey(_TRACK_SY, 0.33333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.41666666666667, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.41666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.5, 1)
	effector:SetKey(_TRACK_SY, 0.5, 1)
	effector:SetKey(_TRACK_SX, 0.58333333333333, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.58333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.66666666666667, 1)
	effector:SetKey(_TRACK_SY, 0.66666666666667, 1)
	effector:SetKey(_TRACK_SX, 0.75, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.75, 1)
	effector:SetKey(_TRACK_SX, 0.83333333333333, 1)
	effector:SetKey(_TRACK_SY, 0.83333333333333, 1)
	effector:SetKey(_TRACK_SX, 0.91666666666667, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 0.91666666666667, 1)
	effector:SetKey(_TRACK_SX, 1, 1)
	effector:SetKey(_TRACK_SY, 1, 1)
	effector:SetKey(_TRACK_SX, 1.08333333333333, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.08333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.16666666666667, 1)
	effector:SetKey(_TRACK_SY, 1.16666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.25, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.25, 1)
	effector:SetKey(_TRACK_SX, 1.33333333333333, 1)
	effector:SetKey(_TRACK_SY, 1.33333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.41666666666667, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.41666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.5, 1)
	effector:SetKey(_TRACK_SY, 1.5, 1)
	effector:SetKey(_TRACK_SX, 1.58333333333333, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.58333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.66666666666667, 1)
	effector:SetKey(_TRACK_SY, 1.66666666666667, 1)
	effector:SetKey(_TRACK_SX, 1.75, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.75, 1)
	effector:SetKey(_TRACK_SX, 1.83333333333333, 1)
	effector:SetKey(_TRACK_SY, 1.83333333333333, 1)
	effector:SetKey(_TRACK_SX, 1.91666666666667, 0.28658536585366)
	effector:SetKey(_TRACK_SY, 1.91666666666667, 1)
	effector:SetKey(_TRACK_SX, 2, 1)
	effector:SetKey(_TRACK_SY, 2, 1)
	effector:Play()
 
 
	-- Layer Layer_3
	element = CreateCompositionElement(PREFIX_PATH.."babochka_4_telo.png")
	element:SetName("Layer_3")
	compositionbutterfly_fly2:AddElement(element)
	element:SetHotSpot(7, 24)
	element:SetParentElement(compositionbutterfly_fly2)
	element:SetXY(478.5, 131.25)
 
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:Play()
 
	compositionbutterfly_fly2:Play()
 
	return compositionbutterfly_fly2
end
 
createCompositionbutterfly_idle = function()
	local compositionbutterfly_idle = CreateCompositionSequence()
	local compositionDuration = 6
	compositionbutterfly_idle:SetDuration(compositionDuration)
 
	local element
	local effector
 
	-- Layer Layer_1
	element = createCompositionbutterfly_fly()
	element:SetName("Layer_1")
	compositionbutterfly_idle:AddElement(element)
	element:SetHotSpot(320, 240)
	element:SetParentElement(compositionbutterfly_idle)
	element:SetXY(403, 314)
 
	element:SetAngle(-0.55850536)
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 6)
	effector:Play()
 
	compositionbutterfly_idle:Play()
 
	return compositionbutterfly_idle
end
 
createCompositionbutterfly_uletela = function()
	local compositionbutterfly_uletela = CreateCompositionSequence()
	local compositionDuration = 1.5
	compositionbutterfly_uletela:SetDuration(compositionDuration)
 
	local element
	local effector
 
	-- Layer Layer_1
	element = createCompositionbutterfly_fly2()
	element:SetName("Layer_1")
	compositionbutterfly_uletela:AddElement(element)
	element:SetHotSpot(479, 135)
	element:SetParentElement(compositionbutterfly_uletela)
 
	effector = element:GetEffector()
	effector:SetLifeTime(0, 1.5)
	effector:SetKey(_TRACK_X, 0, 483.25)
	effector:SetKey(_TRACK_Y, 0, 142.25)
	effector:SetKey(_TRACK_X, 0.25, 429.675363957763)
	effector:SetKey(_TRACK_Y, 0.25, 128.878897804724)
	effector:SetKey(_TRACK_X, 0.5, 376.43176109693)
	effector:SetKey(_TRACK_Y, 0.5, 114.250011014889)
	effector:SetKey(_TRACK_X, 0.75, 325.808594827388)
	effector:SetKey(_TRACK_Y, 0.75, 92.4778466025704)
	effector:SetKey(_TRACK_X, 0.79166666666667, 318.250000514834)
	effector:SetKey(_TRACK_Y, 0.79166666666667, 87.2500006353978)
	effector:SetKey(_TRACK_X, 1, 290.783556211397)
	effector:SetKey(_TRACK_Y, 1, 54.8317540787428)
	effector:SetKey(_TRACK_X, 1.25, 268.398160806112)
	effector:SetKey(_TRACK_Y, 1.25, 8.7861406664109)
	effector:SetKey(_TRACK_X, 1.5, 249.25)
	effector:SetKey(_TRACK_Y, 1.5, -38.75)
	effector:SetKey(_TRACK_A, 0, -0.5410520675)
	effector:SetKey(_TRACK_A, 0.125, -1.11701072)
	effector:SetKey(_TRACK_A, 0.5, -0.942477795)
	effector:SetKey(_TRACK_A, 1.25, -0.244346095)
	effector:Play()
 
	compositionbutterfly_uletela:Play()
 
	return compositionbutterfly_uletela
end
 
