(function() { var application = Ti.UI.createWindow(); var contentURL = 'http://vjs.zencdn.net/v/oceans.mp4'; var url = Ti.UI.createLabel({ text:'Hello World.', color:'#4c566c', font:{ fontSize: 14, fontFamily:'Helvetica Neue' }, height:50, top:10, shadowColor: '#e2e2e2', shadowOffset: { x:1, y:1 }, textAlign: 'left' }); url.addEventListener('click',function(){ Ti.Platform.openURL(contentURL); }); application.add(url); application.open(); })();
Code for Application; forgot that I didn't copy this.