Skip to content

Instantly share code, notes, and snippets.

Artem 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 Assets.as
package ru.inspider.site37.tools {
import flash.display.Bitmap;
import ru.inspider.framework.tools.ImageAtlas;
public class Assets {
[Embed(source = "../../../../../assets/atlas.png")]
private static const AtlasImgClass:Class
View StarlingTool.as
package {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.DisplayObject;
View build.xml
<target name="build.stats" description="Making swc lib">
<compc
failonerror="true"
use-network="false"
debug="false"
swf-version="22"
output="stats.swc">
<include-sources dir="Stats/src/">
<include name="**/*.as*" />
</include-sources>
View gist:1fcc08159e4cb724bbf2
package com.illuzor.communicationextension.functions;
import android.content.Intent;
import android.net.Uri;
import java.util.ArrayList;
import com.adobe.fre.*;
public class SendEmailFuntion implements FREFunction {
@Override
View gist:5b95daed941ab3ec5817
var xPercent:Number;
var yPercent:Number;
if (stage.mouseX < stage.stageWidth / 2) {
xPercent = 100 - stage.mouseX / (stage.stageWidth / 2) * 100;
mainContainer.rotationY = xPercent/6;
} else {
xPercent = (stage.mouseX - stage.stageWidth / 2) / (stage.stageWidth / 2) * 100;
mainContainer.rotationY = -xPercent/6;
}
View xml
<android>
<manifestAdditions><![CDATA[<manifest android:installLocation="auto">
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch" />
</manifest>]]></manifestAdditions>
</android>
View ImageAtlas.as
package com.illuzor.tools {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Shape;
import flash.display.Sprite;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.system.System;
import flash.utils.Dictionary;
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);
View RotatorDemo.as
var rotator:Rotator = new Rotator(rotatorBitmap.bitmapData, new Rectangle(0, 0, 32, 32));
addChild(rotator);
You can’t perform that action at this time.