Hi corona community 
i need some help with this code, it is very important because i have this doubt very times, and need to understand it now 
i have a block and a circle, and when i rotate the circle, the object will automatically rotate too, but i need to catch the variable t.rotation, that is inside the local function rotateOBJ, i need this variable value to do this: block1.rotation = t.rotation , outside the rotationOBJ function, how i can do it?
if anything that you dont understand, tell me
thanks very much
[code]
local circle = display.newImage(“rodar.png”)
circle.x = 100;
circle.y=100;
local function rotateObj(event)
local t = event.target
local phase = event.phase
if (phase == “began”) then
–…some code
elseif t.isFocus then
if (phase == “moved”) then
–…some code
rotationAmt = angle1 - angle2
t.rotation = t.rotation - rotationAmt
–t.rotation=value
print ("t.rotation = "…t.rotation)
t.x1 = t.x2
t.y1 = t.y2
elseif (phase == “ended”) then
–…some code
end
end
return true
end
circle:addEventListener(“touch”, rotateObj)
local block1 = display.newImage(“block1_img.png”)
block1.rotation = t.rotation
block1.x = 40;
block1.y=50;
[/code] [import]uid: 26056 topic_id: 17727 reply_id: 317727[/import]