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
import gT.display.shareButton.*; | |
var settings:Object = { | |
itemWidth: 48, | |
items: [{id:"twitter", icon:"twitter-48x48.png"}, | |
{id:"facebook", icon:"facebook-48x48.png"}] | |
} | |
var sb:ShareButton = new ShareButton; | |
sb.initWithObject(settings); |
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
/** | |
* | |
* | |
* ScaleBitmap | |
* | |
* @author Didier Brun | |
* @author Jerôme Decoster | |
* @version 1.1 | |
* | |
*/ |
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
/** | |
* stats.as | |
* https://github.com/mrdoob/Hi-ReS-Stats | |
* | |
* Released under MIT license: | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* How to use: | |
* | |
* addChild( new Stats() ); |
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
/** | |
Divide array in equal parts | |
@param array:Array reference array | |
@param parts:uint Number of Parts to divide | |
@returns Divided Array thus [[1,2,3],[4,5,6],[7,8,9,10]] | |
*/ | |
public static function divideArray (array:Array, parts:uint):Array | |
{ | |
if (parts <= 1) | |
throw new ArgumentError("Parts arguments must be integer greater than 1"); |
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
var cuadrado = new Cuadrado(); | |
var cuadrado2 = new Cuadrado(); | |
cuadrado.x = contenedor1.width/2 - cuadrado.width/2; | |
cuadrado.y = contenedor1.height/2 - cuadrado.height/2; | |
contenedor1.addChild(cuadrado); | |
contenedor2.addChild(cuadrado2); |
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
import com.greensock.TweenMax; | |
import fl.motion.easing.*; | |
stop(); | |
var splatSounds:Array = [new SplatSound1(), new SplatSound2()]; | |
function crearSapoPintable(color1, color2, xPos, yPos) { | |
var sapo = new Sapos(); | |
sapo.addEventListener(MouseEvent.CLICK, intercambiar); |
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
import com.greensock.TweenMax; | |
var now:Date; | |
var endDate:Date; | |
var seconds:Number; | |
var isRunning:Boolean; | |
var wasInitialized:Boolean; | |
function updateTime(e:Event):void { | |
var currentDate:Date = new Date(); |
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
import flash.events.MouseEvent; | |
mouseChildren = false; | |
mouseEnabled = false; | |
// Adds the events listener to the stage | |
stage.addEventListener(MouseEvent.MOUSE_MOVE, actualizarCursor); | |
stage.addEventListener(MouseEvent.MOUSE_DOWN, actualizarCursor); | |
stage.addEventListener(MouseEvent.MOUSE_UP, actualizarCursor); | |
stage.addEventListener(Event.MOUSE_LEAVE, mouseLeave); |
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
import com.goto.display.ImageView; | |
import com.goto.display.layout.HLayout; | |
import com.greensock.*; | |
import com.greensock.easing.*; | |
import flash.events.Event; | |
// Creo un layout horizotal para agregar las imágenes | |
var layout:HLayout = new HLayout(); | |
// Agrego una separación de 10 px para cada objeto del layout | |
layout.gab = 10; |
OlderNewer