ts.stackData = [2963,"Tweeter","HyperCard",{tweetSentCallback:function(a,b){var _=arguments.callee.__
var $g=ts.Global
_.e='to'
var _g=$g.$GLOBALS
if(_g["lastTweetURL"]==undefined)_g["lastTweetURL"]=''
_.d=this.stack().tile("Settings").tile().field("Username")
_g["lastTweetURL"]="http://twitter.com/"+_.d+"/status/"+$g.$get(_.a,"id")
this.send("go",_.e,this.stack().tile("TweetSent"))
},arrowKey:function(a){var _=arguments.callee.__
var $g=ts.Global
_.b=_.a
}},"A simple stack that allows you post an update (tweet) to twitter. Simply click preferences, type in your username and password and then press save. Then simply type your tweet and press \"Send Tweet\", that's all there is too it! Inspect this stack to see how simple it is to interact with web services like Twitter using TileStack!
\r\n
\r\nNote: Your username and password are never saved, the values in the fields are an example.",0,0,0,0,[0,0,284,88],[[2008,null,,0,0,1,null,[]]],[[2009,"Tweeter",{idle:function(){var _=arguments.callee.__
var $g=ts.Global
_.a=(140-$g.$get($g.$chunk(0,this.background().field("Tweet",true).toString(),0),"number"))
if((_.a<=35)&&(_.a>=11)){this.background().field("CharCount",true).set('textColor',"green")
}else if((_.a<=10)){this.background().field("CharCount",true).set('textColor',"red")
}else{this.background().field("CharCount",true).set('textColor',"#A9A9A9")
}this.background().field("CharCount",true).$setContents(_.a)
}},2008,0,0,0,1,null,[[1,"Send Tweet",0,{mouseUp:function(){var _=arguments.callee.__
var $g=ts.Global
_.d='to'
_.c='tweetSentCallback'
_.a=this.stack().tile("Settings").tile().field("Username")
_.b=this.stack().tile("Settings").tile().field("Password")
this.send("post","xml","http://twitter.com/statuses/update.xml?status="+this.background().field("Tweet",true),_.a,_.b,_.c)
this.send("go",_.d,this.stack().tile("Sending"))
}},"183,61,278,83",2,"Helvetica",12,1,"0,0,0","255,255,255",3,null,1,0,1,0,0,null,1,0,null,,null],[6,"Tweet",1,,"57,6,278,55",0,"Comic Sans MS",12,0,"0,0,0","255,255,255",7,null,1,0,0,0,0,1,0,0,0,0,16,0,null,null],[9,null,1,,"6,6,101,25",0,"Verdana",12,1,"0,0,0","transparent",0,"Tweet:",1,0,0,0,0,1,1,0,0,0,16,0,null,null],[10,"Preferences",0,{mouseUp:function(){var _=arguments.callee.__
var $g=ts.Global
_.a='to'
this.send("go",_.a,this.stack().tile("Settings"))
}},"84,61,179,83",2,"Helvetica",12,1,"0,0,0","255,255,255",3,null,1,0,1,0,0,null,1,0,null,,null],[11,"CharCount",1,,"2,58,69,86",0,"Verdana",22,1,"169,169,169","0,128,0",0,"140",1,0,0,0,0,1,1,0,0,0,29,0,null,null]]],[2010,"Settings",,2008,0,0,0,1,null,[[9,"Save",0,{mouseUp:function(){var _=arguments.callee.__
var $g=ts.Global
_.a='to'
this.send("go",_.a,this.stack().tile("Tweeter"))
}},"183,62,278,84",2,"Helvetica",13,1,null,null,3,null,1,0,1,0,0,null,1,0,null,,null],[10,"Username",1,,"79,3,279,25",0,"Verdana",12,0,"0,0,0","255,255,255",2,null,1,0,0,0,0,1,0,0,0,0,16,0,null,null],[11,"Password",1,,"79,28,279,52",0,"Verdana",12,0,"0,0,0","255,255,255",2,null,1,0,0,0,0,1,0,0,0,0,16,0,null,null],[12,"Username:",0,,"-6,3,89,25",2,"Helvetica",12,1,"0,0,0","255,255,255",0,null,1,0,1,0,0,null,1,0,null,,null],[13,"Password:",0,,"-6,28,89,50",2,"Helvetica",12,1,"0,0,0","255,255,255",0,null,1,0,1,0,0,null,1,0,null,,null]]],[2011,"TweetSent",{openTile:function(){var _=arguments.callee.__
var $g=ts.Global
this.stack().tile("Tweeter").tile().field("Tweet").$setContents("")
}},2008,0,0,0,1,null,[[1,"Tweet Again",0,{mouseUp:function(){var _=arguments.callee.__
var $g=ts.Global
_.a='to'
this.send("go",_.a,this.stack().tile("Tweeter"))
}},"185,63,280,85",2,"Helvetica",12,1,"0,0,0","255,255,255",3,null,1,0,1,0,0,null,1,0,null,,null],[2,"View Tweet",0,{mouseUp:function(){var _=arguments.callee.__
var $g=ts.Global
_.d='new'
_.b='with'
_.e='window'
_.c='a'
var _g=$g.$GLOBALS
if(_g["lastTweetURL"]==undefined)_g["lastTweetURL"]=''
this.send("go",_g["lastTweetURL"],_.b,_.c,_.d,_.e)
}},"87,63,182,85",2,"Helvetica",12,1,"0,0,0","255,255,255",3,null,1,0,1,0,0,null,1,0,null,,null],[3,"Tweet Posted Succesfully!",0,,"0,0,284,59",2,"Helvetica",22,1,"0,0,0","255,255,255",0,null,1,0,1,0,0,null,1,0,null,,null]]],[2012,"Sending",,2008,0,0,0,1,null,[[1,"Sending Tweet...",0,,"6,26,199,63",2,"Helvetica",20,1,"0,0,0","255,255,255",0,null,1,0,1,0,0,null,1,0,null,,null],[2,"Loading",0,,"199,16,265,70",2,"Helvetica",12,1,"0,0,0","255,255,255",0,null,1,0,1,0,0,"AjaxIndicator-Medium.gif",0,0,null,,null]]]],["AjaxIndicator-Medium.gif","LargeIcon.png"]];