Storyboard - how to move existing screen

I have continues scenes in a story board and I’m using fromRight effect for switching one screen to other.

The new scene is loading perfectly, but  the existing image is not moving to its left. 

it looks looks like the new scene is overlapping on top of the existing scene rather than current scene moved out and new scene entered.

can some one let me know the API to kick off the existing scene?

~Sudheer

Are you adding the display objects to the scene’s group?

Try using “slideLeft” instead of “fromRight”.

yes I’m adding all the objects to self.view

    local group = self.view

I tried to move the group but didnt work.

function scene:exitScene( event )

        local moveOut = self.view

        transition.to(moveOut, { x = -100,  }) 

end

Please post your entire scene’s code

Correct me if I am wrong, but isn’t the storyboard scene is always replaced by another (ie gotoScene).

Could you place all objects in a group and move that? That way you might get the control you want. 

function scene:createScene(event)

    print (“Moving to A Screen”)

    local group = self.view

    local bg=display.newImage(“Train.jpg”,0,0)

    group:insert(bg)

function LoadImages()

    

        local screenGroup = display.newGroup()

        print (“Loading  Images A…”)

        local Letter = display.newImage( “A.png”      , 0 ,0 )

        local Name   = display.newImage( “AName.png”  , 0 ,0 )

        local Image  = display.newImage( “AImage.png” , 0 ,0 )

        

        Letter:setReferencePoint(display.CenterReferencePoint);

        Name:setReferencePoint(display.CenterReferencePoint);

        Image:setReferencePoint(display.CenterReferencePoint);

        Letter.x , Letter.y = 150, 210

        Name.x , Name.y = 230, 260        

        Image.x , Image.y = 340, 200        

        group:insert(Letter)

        group:insert(Name)

        group:insert(Image)

        

end 

LoadImages()

end

scene:addEventListener ( “createScene”, scene )

function scene:exitScene( event )

    print(“called when scene unloaded”)

        local moveOut = self.view

    transition.to(moveOut, { x = -100,  }) --, onComplete=zoomBack})

end

scene:addEventListener ( “exitScene”, scene )

The is button code which move to next screen 

local function onButtonTap(event)

    print (“Got Button Event”)

    Button:removeSelf()

    storyboard.gotoScene(“view2”, “fromRight”, 1500)

end

    

which is loading perfectly, but the existing code is not moving to  X -100

Are you adding the display objects to the scene’s group?

Try using “slideLeft” instead of “fromRight”.

yes I’m adding all the objects to self.view

    local group = self.view

I tried to move the group but didnt work.

function scene:exitScene( event )

        local moveOut = self.view

        transition.to(moveOut, { x = -100,  }) 

end

Please post your entire scene’s code

Correct me if I am wrong, but isn’t the storyboard scene is always replaced by another (ie gotoScene).

Could you place all objects in a group and move that? That way you might get the control you want. 

function scene:createScene(event)

    print (“Moving to A Screen”)

    local group = self.view

    local bg=display.newImage(“Train.jpg”,0,0)

    group:insert(bg)

function LoadImages()

    

        local screenGroup = display.newGroup()

        print (“Loading  Images A…”)

        local Letter = display.newImage( “A.png”      , 0 ,0 )

        local Name   = display.newImage( “AName.png”  , 0 ,0 )

        local Image  = display.newImage( “AImage.png” , 0 ,0 )

        

        Letter:setReferencePoint(display.CenterReferencePoint);

        Name:setReferencePoint(display.CenterReferencePoint);

        Image:setReferencePoint(display.CenterReferencePoint);

        Letter.x , Letter.y = 150, 210

        Name.x , Name.y = 230, 260        

        Image.x , Image.y = 340, 200        

        group:insert(Letter)

        group:insert(Name)

        group:insert(Image)

        

end 

LoadImages()

end

scene:addEventListener ( “createScene”, scene )

function scene:exitScene( event )

    print(“called when scene unloaded”)

        local moveOut = self.view

    transition.to(moveOut, { x = -100,  }) --, onComplete=zoomBack})

end

scene:addEventListener ( “exitScene”, scene )

The is button code which move to next screen 

local function onButtonTap(event)

    print (“Got Button Event”)

    Button:removeSelf()

    storyboard.gotoScene(“view2”, “fromRight”, 1500)

end

    

which is loading perfectly, but the existing code is not moving to  X -100