Skip to content

Instantly share code, notes, and snippets.

View ylazy's full-sized avatar
👻
yay!

Ylazy ylazy

👻
yay!
View GitHub Profile
@cardin
cardin / Enumerable.as
Created July 6, 2011 06:22
Enumerations in Actionscript 3
package src.Lib
{
/**
* Enumerable.as
* @version Dated 6 July 2011
* ---------------
* Faux enumerations in Actionscript. Done through code reflection and static initializers.
*
* Adapted from:
* http://scottbilas.com/2008/06/01/faking-enums-in-as3/
@rottor
rottor / Convert MCs to Sprites.jsfl
Last active October 11, 2021 17:24
JSFL script converting all MovieClips based symbols in Flash library to Sprite based, if they has 1 frame
itemArray = fl.getDocumentDOM().library.items;
fl.trace(itemArray.length + ' items in library');
var it, n = 0;
for( var i=0; i< itemArray.length; i++ )
{
it = itemArray[i];
if ( it.itemType == 'movie clip'
&& it.linkageClassName != undefined
@cstrahan
cstrahan / Showdown.as
Created October 27, 2010 10:04
Showdown.as: An AS3 port of John Fraser's showdown.js
// UPDATE: For latest code, see https://github.com/cstrahan/Showdown.as
//
// Showdown.as -- An ActionScript port of showdown.js
//
// Copyright (c) 2010 Charles Strahan.
//
// Original Showdown Copyright (c) 2007 John Fraser.
// <http://attacklab.net/showdown/>
//
// Original Markdown Copyright (c) 2004-2005 John Gruber
@mikelikespie
mikelikespie / colors.js
Created October 22, 2010 23:01
Quick code to convert sRGB to CIE L*a*b* and back.
/*
* To try it:
* c = $c.sRGB8(23,58,32);
* c.Lab();
* c.Lab().sRGB8();
*/
var $c = {};
(
function () {
@nsdevaraj
nsdevaraj / ColorUtil.as
Created October 21, 2010 10:37
Static functions for conversions like RGB to CMYK, RGB to HSV, HSV to RGB, ColorTransformation, int color value to RGB and Color Calculations.
package
{
import flash.geom.ColorTransform;
public class ColorUtil
{
/**
* RGBColorTransform Create an instance of the information.
* @ Param rgb RGB integer value that indicates (0x000000 - 0xFFFFFF)
* @ Param amount of fill adaptive value (0.0 - 1.0)
* @ Param alpha transparency (0.0 - 1.0)
@jasonm23
jasonm23 / sparklist.rb
Created May 28, 2010 05:34
Spark project AS3 library list

Spark project AS3 library list

Graphics/Color (AS3)

@jasonm23
jasonm23 / list.csv
Created May 28, 2010 04:10
Adrian Parr's List of AS3 Libraries - filtered
@jasonm23
jasonm23 / Embed types for AS3 & Flex
Created May 5, 2010 21:16
Embed types for AS3 & Flex
// Embed types for AS3 & Flex
/*
Note, mxmlc recognizes your src folder "Default Package" as '/' (root) when using:
[Embed], source="@Embed('')" or @font-face tags.
For example... if your assets folder is a sibling of the src folder, you access using
the slightly odd path: