Skip to content

Instantly share code, notes, and snippets.

Artem Zanin illuzor

Block or report user

Report or block illuzor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View build.config
name = AntBuildDemo
flex.home = C:/Program Files (x86)/FlexSDK/AIR SDK
compile.config = /obj/AntBuildDemoConfig.xml
release.folder = release
debug.build = false
android.cert = cert/android/AntBuildDemo.p12
android.cert.pass = fd
View Main.as
package com.illuzor.antbuilddemo {
import com.illuzor.antbuilddemo.generators.AndroidTextGenerator;
import com.illuzor.antbuilddemo.generators.FlashPlayerTextGenerator;
import com.illuzor.antbuilddemo.generators.IOSTextGenerator;
import com.illuzor.antbuilddemo.interfaces.IGenerator;
import flash.display.Sprite;
import flash.events.Event;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
View Classes.as
package com.illuzor.antbuilddemo.interfaces {
public interface IGenerator {
function getText():String;
}
}
package com.illuzor.antbuilddemo.generators {
View gist:3a699ce575966d560745
-define+=CONFIG::flashplayer,true
-define+=CONFIG::android,false
-define+=CONFIG::ios,false
View atf_converter.xml
<project name="Graphics Converter" default="atlasses">
<property name="C:/Program Files (x86)/Adobe Gaming SDK 1.4/Utilities/ATF Tools/png2atf.exe"/>
<property name="graphics.souce" location="../_sources/atlasses_ready." />
<property name="graphics.destanation" location="../bin/graphics" />
<macrodef name="png2atf">
<attribute name="from" />
<attribute name="to" />
<sequential>
View GafTextureFormat.as
var gafConverter:ZipToGAFAssetConverter = new ZipToGAFAssetConverter();
gafConverter.textureFormat = GAFGFXData.ATF;
...
View SendBytes.java
/**
* Project: ANE-Google-Analytics
*
* Author: Alessandro Bianco
* Website: http://alessandrobianco.eu
* Twitter: @alebianco
* Created: 23/12/12 10.42
*
* Copyright © 2013 Alessandro Bianco
*/
View RotatorDemo.as
var rotator:Rotator = new Rotator(rotatorBitmap.bitmapData, new Rectangle(0, 0, 32, 32));
addChild(rotator);
View Rotator.as
package com.illuzor.display {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.utils.Timer;
View Main.as
var atlas:ImageAtlas = new ImageAtlas(atlasBitmapData, atlasXML);
You can’t perform that action at this time.