Why changing x and y is not working?

Why this code do NOTHING at all when clicking the event trigger? (note that we tested with asserts and other means if the code is reaching the changes in x and y, and it is, but there is absolutely NO visual change on the screen)

local sky = display.newImage( “rafa.jpg” )

local function myTouchListener( event )

 

    if ( event.phase == “began” ) then

        sky.x = 350

        sky.y = 500 

    end

    return true

end

 

local myButton = display.newRect( 100, 100, 60, 60 )

myButton:addEventListener( “touch”, myTouchListener )

I tested using rect instead of that image and appears to working OK. How about for you?

[lua]

local sky = display.newRect( 100, 100, 100, 100 )

local function myTouchListener( event )

    if ( event.phase == “began” ) then

        sky.x = 350

        sky.y = 500 

    end

    return true

end

local myButton = display.newRect( 100, 250, 60, 60 )

myButton:addEventListener( “touch”, myTouchListener )

[/lua]

I tested using rect instead of that image and appears to working OK. How about for you?

[lua]

local sky = display.newRect( 100, 100, 100, 100 )

local function myTouchListener( event )

    if ( event.phase == “began” ) then

        sky.x = 350

        sky.y = 500 

    end

    return true

end

local myButton = display.newRect( 100, 250, 60, 60 )

myButton:addEventListener( “touch”, myTouchListener )

[/lua]