Parallax Speed Change with a button. (Hold button down problems)

Hi, I need some help with altering the speed of my parallax scrolling background using a button. What’s holding me back is making my event (mountain_big.x = mountain_big.x - xOffset*0.100 in my case) continue functioning while the button is held down. As it is now, it slows down for a second and then stops; not continuously. Here’s my code:

[code]
local function speedChange(event)

if event.phase == “began” then

mountain_big.x = mountain_big.x - xOffset*0.100

elseif ( event.phase == “ended” or event.phase == “canceled” ) then

mountain_big.x = mountain_big.x - xOffset

end
end [import]uid: 66329 topic_id: 18915 reply_id: 318915[/import]