enterFrame during touch

how do i make an enterFrame listener during a touch event [import]uid: 38977 topic_id: 20302 reply_id: 320302[/import]

  
local function gameLoop()  
 -- do stuff every frame  
end  
  
local function yourTouchHandler(event)  
 if event.phase == "ended" then  
 Runtime:addEventListener("enterFrame", gameLoop)  
 end  
end  
  
local myButton = display.newImage("button.png")  
myButton:addEventListener("touch", yourTouchHandler)  
  

[import]uid: 19626 topic_id: 20302 reply_id: 79325[/import]