Skip to content

Instantly share code, notes, and snippets.

@aolba
aolba / dictionaryitenirate.cs
Last active March 25, 2016 04:06
itinerar a traves de un diccionario
foreach(var kvp in delegateLookup){
Debug.Log("<color=yellow>" +kvp.Key +"</color>");
Debug.Log("<color=yellow>" +kvp.Value +"</color>");
}
@aolba
aolba / loadxml.as
Created December 4, 2013 19:38
load cml
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.display.Loader;
private var myXML:XML;
// pass the path to the xml, and the function to execute once it's loaded
private function loadXML (path:String, nextFunc:Function):void
{
@aolba
aolba / easenone.as
Created December 4, 2013 18:28
GreenSocks no easing
//No easing is called "Linear"
Tweenlite.to(target, 1, {param:value, ease:Linear.easeNone});
// Add any movieclip with (in this example) "my_mc" as the instance name.
makeButton(my_mc, my_mc_over, my_mc_out, my_mc_click);
function my_mc_over(evt:MouseEvent):void { trace("Rollover"); }
function my_mc_out(evt:MouseEvent):void { trace("Rollout"); }
function my_mc_click(evt:MouseEvent):void { trace("Clicked"); }
function makeButton(which_mc:MovieClip, overFunction:Function, outFunction:Function, clickFunction:Function):void {
which_mc.buttonMode = true;