Any reason you're not using the CooldownFrameTemplate?
Lua Code:
local f = CreateFrame("FRAME")
f:SetWidth(32)
f:SetHeight(32)
f:SetPoint("CENTER")
local cdFrame = CreateFrame("Cooldown", "MyCdFrame", f, "CooldownFrameTemplate")
cdFrame:SetAllPoints(f)
cdFrame:SetSwipeColor(1, 1, 1)
local texture = f:CreateTexture(nil, "BACKGROUND")
texture:SetAllPoints(f)
texture:SetTexCoord(0.07,0.9,0.07,0.90)
texture:SetTexture(132242)
f:Show()
MyCdFrame:SetCooldown(GetTime(), 10)
Code:
/run MyCdFrame:SetCooldown(GetTime(), 10)
to play it over.