photoslide wont work

You must Login before you can answer or comment on any questions.

hey to all im currently having a problem with a Photoslide...im using android Os to develop...but for some reason i get a error in the app..can someone help me with this....i have the code at the bottom..thank you!

celebrity.js

function Celebrity(_args) {
    var self = Ti.UI.createWindow({
        title: 'Celebirty',
        barImage:'navbar.png',
    });
 
 
 
    var view2 = Ti.UI.createView({ backgroundImage:'/images/bonifacio.jpg' });
var view3 = Ti.UI.createView({  backgroundImage:'/images/mets.jpg' });
var view4 = Ti.UI.createView({backgroundImage:'/images/nelson.jpg' });
var view5 = Ti.UI.createView({ backgroundImage:'/images/orieles.jpg' });
var view6 = Ti.UI.create({backgroundImage:'/images/pits.jpg' });
var view7 = Ti.UI.createView({backgroundImage:'/images/ramirez.jpg' });
 
var scrollableView = Ti.UI.createScrollableView({
  views:[view2,view3,view4,view5,view6,view7],
  showPagingControl:true
});
 
var backBtn = Ti.UI.createButton({ title : 'Back' });
 
backBtn.addEventListener('click', function(){
    self.close();
});
self.setLeftNavButton(backBtn);
        self.open({
            modal : true,
            animated : false
        });
 
 
    self.add(backBtn);
    self.add(scrollableView);
 
    return self;
};
module.exports = Celebrity;

— asked 10 months ago by Ronny Rodriguez
2 Comments
  • When you get an error in an app, please post the content of the error so we have at least some idea of where to start.

    Also, I just pasted you code into a new project and it worked fine, so please refer to the Question Checklist on the wiki and provide enough information so that one may test the issue using a similar environment.

    — commented 10 months ago by Anthony Decena

  • i fixed it....i forgot..to put createView

    — commented 10 months ago by Ronny Rodriguez

Your Answer

This question has been locked and cannot accept new answers.