iTween 2.0 coming soon!
![]()
iTween is still in progress but here’s a very short teaser on what to expect: Watch it here.
![]()
iTween is still in progress but here’s a very short teaser on what to expect: Watch it here.
![]()
Makes Coda a ton easier. Why doesn’t OSX have this by default?
Hex Color Picker
![]()
Hot damn! Check it out.
Totally awesome tool for Unity: The Root Motion Computer
Always forget how to iterate “properly” through a hash in Unity… so:
function Awake () {
for (var child : Transform in transform) {
Global.footPlacements.Add(child.name,child);
}
for (var d : DictionaryEntry in Global.footPlacements){
print(d.Key + " " + d.Value);
}
}
I hate that we need to cast the hash objects as a non-recognizable type in UnityScript. Oh well.
To save other people from this headache:
import com.adobe.serialization.json.JSON;
var loader :URLLoader = new URLLoader();
var vid : String = "qE5hpp4YaH4";
loader.load(new URLRequest("http://gdata.youtube.com/feeds/api/videos/" + vid + "?v=2&alt=json-in-script&callback=remove"))
loader.addEventListener(Event.COMPLETE, onLoaded)
function onLoaded(e:Event):void{
var youTubeDataString : String = e.target.data
youTubeDataString=youTubeDataString.split("remove(").join("");
youTubeDataString=youTubeDataString.split(");").join("");
var youTubeDataObject : Object =JSON.decode(youTubeDataString)
trace("Title: " + youTubeDataObject.entry.title.$t)
var thumbnails : Object = youTubeDataObject.entry.media$group.media$thumbnail;
trace("Thumbnail: " + youTubeDataObject.entry.media$group.media$thumbnail[thumbnails.length-1].url)
trace("Description: " + youTubeDataObject.entry.media$group.media$description.$t)
}
The thumbnail section of this code grabs the HQ version which is 480×360 and is the last entry in the response JSON’s media$thumbnail area.
Good info: http://911-need-code-help.blogspot.com/2010/01/retrieve-youtube-video-title.html
![]()
Still working on the documentation and getting a list together of additions I’d like to put in. But this version is more than capable and ready to rock.
Grab it at it’s new home: http://www.pixelplacement.com/iTween
![]()
Fantastic framework for CSS work. Grab it here.