Skip to content

Instantly share code, notes, and snippets.

View mcongrove's full-sized avatar

Matthew Congrove mcongrove

View GitHub Profile
@mcongrove
mcongrove / TiLoad.js
Created April 6, 2011 17:12
A loading screen that can be shown and hidden from anywhere within an application
var TiLoad = {
visible: false,
init: function(_properties) {
var options;
if(_properties && _properties.rotate) {
options = {
orientationModes: [
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT,
@mcongrove
mcongrove / TiDrop.js
Created April 1, 2011 22:13
A quick and simple example of how to do drag+drop in Titanium
var TiDrop = {
touching: false,
position: {
elementYStart: 0,
elementXStart: 0,
yStart: 0,
xStart: 0,
yCurrent: 0,
xCurrent: 0
},