This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pollensoft.pbt.twitter | |
{ | |
import mx.core.mx_internal; | |
import mx.messaging.messages.IMessage; | |
import mx.rpc.AsyncToken; | |
use namespace mx_internal; | |
import org.osflash.signals.Signal; | |
import mx.rpc.events.ResultEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* User: jproulx | |
* Date: 12/21/10 | |
* Time: 10:15 AM | |
*/ | |
package | |
{ | |
import flash.utils.Dictionary; | |
import flash.utils.getDefinitionByName; | |
import flash.utils.getQualifiedClassName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Flash/Chrome/FireBug logging through console: | |
function logMe(message:String):void { | |
ExternalInterface.call("console.log", message); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lineTowards(g:Graphics, x:int, y:int, length:int):void | |
{ | |
var c:Number = Math.sqrt(Math.sqr(x) + Math.sqr(y)); | |
var ratio:Number = length / c; | |
g.lineTo(x*ratio, y*ratio); | |
} |
NewerOlder