Hello,
Is it possible to insert a slideView object inside a scrollView ??
thanks [import]uid: 185094 topic_id: 33230 reply_id: 333230[/import]
Hello,
Is it possible to insert a slideView object inside a scrollView ??
thanks [import]uid: 185094 topic_id: 33230 reply_id: 333230[/import]
yes, but slide and scroll are the same things. use widget scrollview. [import]uid: 13560 topic_id: 33230 reply_id: 132062[/import]
my first thought was that…because its very easy… to use scroll view like an image slider… but this dont support transitions for changing image views…
this is the code for this…
[code]
local scrollView = widget.newScrollView{
top = 50,
width = 320,
height = 430,
scrollWidth = 320,
scrollHeight = 900,
hideBackground=true,
maxVelocity=4,
maskFile=“mask1.png”
}
scrollView.content.verticalScrollDisabled = false
scrollView.content.horizontalScrollDisabled= true
scrollView.isHitTestMasked = true;
local imageslider= widget.newScrollView{
top = 0,
width = 320,
height = 200,
scrollWidth = 960,
scrollHeight = 200,
hideBackground=true,
maxVelocity=4,
maskFile=“mask.png”
}
imageslider.content.verticalScrollDisabled = true
imageslider.content.horizontalScrollDisabled= false
imageslider.isHitTestMasked = true;
local image1 = display.newImageRect(“HELIESSA1.JPG”,320,200)
image1:setReferencePoint(display.TopLeftReferencePoint)
image1.x=0
image1.y=0
imageslider:insert(image1)
local image2 = display.newImageRect(“HELIESSA2.JPG”,320,200)
image2:setReferencePoint(display.TopLeftReferencePoint)
image2.x=320
image2.y=0
imageslider:insert(image2)
local image3 = display.newImageRect(“HELIESSA3.JPG”,320,200)
image3:setReferencePoint(display.TopLeftReferencePoint)
image3.x=640
image3.y=0
imageslider:insert(image3)
scrollView:insert(imageslider)
[import]uid: 185094 topic_id: 33230 reply_id: 132065[/import]
yes, but slide and scroll are the same things. use widget scrollview. [import]uid: 13560 topic_id: 33230 reply_id: 132062[/import]
my first thought was that…because its very easy… to use scroll view like an image slider… but this dont support transitions for changing image views…
this is the code for this…
[code]
local scrollView = widget.newScrollView{
top = 50,
width = 320,
height = 430,
scrollWidth = 320,
scrollHeight = 900,
hideBackground=true,
maxVelocity=4,
maskFile=“mask1.png”
}
scrollView.content.verticalScrollDisabled = false
scrollView.content.horizontalScrollDisabled= true
scrollView.isHitTestMasked = true;
local imageslider= widget.newScrollView{
top = 0,
width = 320,
height = 200,
scrollWidth = 960,
scrollHeight = 200,
hideBackground=true,
maxVelocity=4,
maskFile=“mask.png”
}
imageslider.content.verticalScrollDisabled = true
imageslider.content.horizontalScrollDisabled= false
imageslider.isHitTestMasked = true;
local image1 = display.newImageRect(“HELIESSA1.JPG”,320,200)
image1:setReferencePoint(display.TopLeftReferencePoint)
image1.x=0
image1.y=0
imageslider:insert(image1)
local image2 = display.newImageRect(“HELIESSA2.JPG”,320,200)
image2:setReferencePoint(display.TopLeftReferencePoint)
image2.x=320
image2.y=0
imageslider:insert(image2)
local image3 = display.newImageRect(“HELIESSA3.JPG”,320,200)
image3:setReferencePoint(display.TopLeftReferencePoint)
image3.x=640
image3.y=0
imageslider:insert(image3)
scrollView:insert(imageslider)
[import]uid: 185094 topic_id: 33230 reply_id: 132065[/import]