'<eof>' expected near end

I’m building an app to tell a little bit about me. The app uses Enhanced slider and I want to incorporate that into director class as just one change scene..

I’m trying to change out the rect slides with my own slides and have a back button to the menu.

[code]
local function initSetup()

–You may create your slides individually, or in a loop. Each slide is a display group, so objects placed within each “slide” are
–in positional reference to that slide! If you set something to “x=20”, it will be x=20 in relation to the slide, not the screen.
–IMPORTANT!!! Every element that you add to a slide (images, text, whatever) MUST be added to its display group “thisSlideGroup”.

local thisSlideGroup

–create 4 sample slides using a loop:
for i=1,4 do

thisSlideGroup = display.newGroup() --IMPORTANT!!! Create a new display group for each slide!
localGroup:insert(thisSlideGroup) --ACTIVATE THIS LINE IF USING DIRECTOR

– slide 1
textInfo_tbl = { “Slider”, “by Microsheep”, “microsheep.com” }
btnInfo_tbl = { “microsheep_logo_white_med” }
slide_sprt = renderSlide( 1, textInfo_tbl, btnInfo_tbl )
btn_sprt = renderSlideBtn( 1, 256 )
– slider
slider.addSlide( slide_sprt, btn_sprt )

– slide 2
textInfo_tbl = { “Slider”, “Swipe with your finger,”, “or tap on one of the buttons,”, “to move between slides” }
btnInfo_tbl = {}
slide_sprt = renderSlide( 2, textInfo_tbl, btnInfo_tbl )
btn_sprt = renderSlideBtn( 2, 256 )
– slider
slider.addSlide( slide_sprt, btn_sprt )

– slide 3
textInfo_tbl = { “Slider”, “Feel free to use Slider.”, “If you like it,”, “please download”, " and rate my game:", “Fingerless 3D” }
btnInfo_tbl = { “fingerless3D_icon_90x90” }
slide_sprt = renderSlide( 3, textInfo_tbl, btnInfo_tbl )
btn_sprt = renderSlideBtn( 3, 256 )
– slider
slider.addSlide( slide_sprt, btn_sprt )

– slide background (image or just a simple rect in this example)
local rect = display.newRect( -ox, -oy, cw+ox+ox, ch+oy+oy-110 )
thisSlideGroup:insert( rect )
rect:setFillColor( i*55, 255-i*55, 220 )
– add more elements to slide
local txt = display.newText( " SLIDE "…i, 0, 0, native.systemFontBold, 48 )
thisSlideGroup:insert( txt )
txt:setTextColor( 255, 255, 255 )
txt:setReferencePoint(display.CenterLeftReferencePoint) ; txt.x = 0 ; txt.y = 128

sliderGroup:insert( thisSlideGroup )
thisSlideGroup.x = ((sliderGroup.numChildren-1)*slideDist)
end
[/code] [import]uid: 88495 topic_id: 31406 reply_id: 331406[/import]

[I’m actually having trouble with line 16 and 21. It says to add my own slides if I am using director class. I added the three slides from **Microsheep.com** because he has a url button on one of his slides. My slide would take up the whole length of the screen. [import]uid: 88495 topic_id: 31406 reply_id: 125538[/import]

I’m not familiar with this library - however the error in the thread title is because you have no matching ‘end’ statement for your function.

[import]uid: 93133 topic_id: 31406 reply_id: 125565[/import]

Thanks for the comment. [import]uid: 88495 topic_id: 31406 reply_id: 125624[/import]

[I’m actually having trouble with line 16 and 21. It says to add my own slides if I am using director class. I added the three slides from **Microsheep.com** because he has a url button on one of his slides. My slide would take up the whole length of the screen. [import]uid: 88495 topic_id: 31406 reply_id: 125538[/import]

I’m not familiar with this library - however the error in the thread title is because you have no matching ‘end’ statement for your function.

[import]uid: 93133 topic_id: 31406 reply_id: 125565[/import]

Thanks for the comment. [import]uid: 88495 topic_id: 31406 reply_id: 125624[/import]