in-game slideview, how?

Hi everybody!
I’m trying to include slideView (or similar) into my game, but i have no idea of where to start.
The part of the game i’m talking about is a character creation sheet, where you choose a body, head, eyes, etc…
There are also several background images to choose from.
My idea is that these backgrounds are able to slide as in slideView sample by Ansca Team (or any other). How can i integrate slideview in my code, in a way that it doesn’t interfere with other stuff?
There’s a background button that when pressed should activate the slideView, and when you press any other button (eyes for example), the slide View should deactivate in order to let you change eyes by swipe (not necessary by sliding the eyes, you just swipe and the eyes images changes).

Another question by the way. I’m loading 1024x768 px images since i’m working for ipad at full resolution. Will slideView compromise my memory?

If anyone could help me it would be great since i’m stuck at this point and i don’t believe it might be THAT difficult, it’s just i’m not very experienced yet.

Thanks! [import]uid: 105206 topic_id: 21122 reply_id: 321122[/import]

If you want that… you can add swipe to your background for instance and use this swipe code :

[code]
swipeEvent = “None”
allowSwipe = true

function getSwipe(self, touch)
local phase = touch.phase

if (phase == “began”) then
– Subsequent touch events will target button even if they are outside the contentBounds of button
display.getCurrentStage():setFocus( self )
self.isFocus = true

startPos = touch.x
prevPos = touch.x

if startPos == prevPos then
swipeEvent = “Tap”
end

elseif(self.isFocus) then
–If Moved
if (phase == “moved”) then
local delta = touch.x - prevPos
prevPos = touch.x
–If Ended or Cancelled
elseif (phase == “ended” or phase == “cancelled”) then
dragDistance = touch.x - startPos

if dragDistance < 10 then
swipeEvent = “Tap”
end

if (dragDistance < -40 ) then
swipeEvent = “Right”
–print(swipeEvent)
elseif (dragDistance > 40 ) then
swipeEvent = “Left”
–print(swipeEvent)
end
–If Cancelled
if (phase == “cancelled”) then
swipeEvent = “None”
end

– Allow touch events to be sent normally to the objects they “hit”
display.getCurrentStage():setFocus( nil )
self.isFocus = false
end
end

return true
end

– to call it
background.touch = getSwipe() – or whatever image you want to attach it to [import]uid: 84637 topic_id: 21122 reply_id: 83638[/import]