Skip to content

Instantly share code, notes, and snippets.

View alebianco's full-sized avatar

Alessandro Bianco alebianco

View GitHub Profile
@alebianco
alebianco / DriverInfo.as
Created June 15, 2012 14:57
Check system and Stage3D info
package
{
import flash.display.Sprite;
import flash.display.Stage3D;
import flash.display3D.Context3D;
import flash.display3D.Context3DRenderMode;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.system.ApplicationDomain;
import flash.system.Capabilities;
@alebianco
alebianco / touchsimulator.ant
Created July 14, 2012 17:12
Run Flash CS6 Touch Simulator Panel from Flash Builder
<!--
Run Flash CS6 Touch Simulator Panel from Flash Builder (on anywhere else you
like) to test your AIR applications.
Instructions:
Just drop the file in your project folder, change the APP_NAME property
appropriately and maybe fix the tools' paths so they will work on your system.
Gotchas:
- windows only, for now
@alebianco
alebianco / MyDirtyConfig.as
Created September 8, 2012 14:49
Robotlegs & Flex: automediate popups
package
{
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import mx.core.IUIComponent;
import mx.managers.ISystemManager;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
import robotlegs.bender.extensions.viewManager.api.IViewManager;
@alebianco
alebianco / CrashTest.as
Created November 7, 2012 17:33
Inspect crash problems
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextField;
/**
* CONTEXT:
* I'm experiencing some weird crashes with the Flash Player 11.4
* that won't happen in the debug version of the same.
@alebianco
alebianco / wrap.as
Created November 21, 2012 16:13
High order functions for arrays
/*
Author:
Daniel Gasienica
[email protected]
http://gasi.ch/
Originally published on
http://gasi.ch/blog/functional-actionscript-part-3/
@alebianco
alebianco / SendBytes.java
Last active September 23, 2016 14:46
Work with ByteArray on an AIR Native Extension
/**
* Project: ANE-Google-Analytics
*
* Author: Alessandro Bianco
* Website: http://alessandrobianco.eu
* Twitter: @alebianco
* Created: 23/12/12 10.42
*
* Copyright © 2013 Alessandro Bianco
*/
@alebianco
alebianco / FlaCompiler.as
Last active December 18, 2018 03:17
Compile *.fla to *.swf from an AIR application at runtime.
import flash.desktop.NativeProcess;
import flash.events.ProgressEvent;
import flash.desktop.NativeProcessStartupInfo;
import flash.filesystem.File;
import flash.net.FileFilter;
import flash.events.Event;
import flash.filesystem.FileMode;
import flash.events.MouseEvent;
import flash.filesystem.FileStream;
@alebianco
alebianco / gist:6638818
Created September 20, 2013 14:58
ANE-Google-Analytics android build output
ext_and:
[mkdir] Created dir: /Users/alessandro.bianco/SkyDrive/Workspace/Personal/ANE-Google-Analytics/bin/native/android
[mkdir] Created dir: /Users/alessandro.bianco/SkyDrive/Workspace/Personal/ANE-Google-Analytics/temp
Setting ro project property: ant.file -> /Users/alessandro.bianco/SkyDrive/Workspace/Personal/ANE-Google-Analytics/build/build.xml
Setting ro project property: ant.file.ANE-Google-Analytics -> /Users/alessandro.bianco/SkyDrive/Workspace/Personal/ANE-Google-Analytics/build/build.xml
Setting ro project property: ant.project.default-target -> compile
Setting ro project property: ant.project.name -> ANE-Google-Analytics
Setting ro project property: ant.project.invoked-targets -> package
Setting ro project property: ant.file.type -> file
Setting ro project property: ant.file.type.ANE-Google-Analytics -> file
@alebianco
alebianco / pom.xml
Created September 23, 2013 13:41
example build for AIR + Apache Flex + FlexUnit4
<?xml version="1.0" encoding="UTF-8"?>
<!--
Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC.
Copyright (C) 2008-2012 Marvin Froeder <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@alebianco
alebianco / gist:7229718
Created October 30, 2013 09:36
logs from ANE-Google-Analytics for tracking a screen
10-30 09:15:23.774: I/GAV2(32379): Thread[Service Reconnect,5,main]: falling back to local store
10-30 09:15:23.774: V/GAV2(32379): Thread[GAThread,5,main]: dispatch running...
10-30 09:15:23.854: V/GAV2(32379): Thread[GAThread,5,main]: ...nothing to dispatch
10-30 09:15:23.854: I/GAV2(32379): Thread[GAThread,5,main]: PowerSaveMode initiated.
10-30 09:15:31.802: I/GAV2(32379): Thread[GAThread,5,main]: putHit called
10-30 09:15:31.802: I/GAV2(32379): Thread[GAThread,5,main]: Sending hit to store
10-30 09:15:31.832: I/GAV2(32379): Thread[GAThread,5,main]: PowerSaveMode terminated.
10-30 09:16:16.280: V/GAV2(32379): Thread[GAThread,5,main]: dispatch running...
10-30 09:16:16.280: I/GAV2(32379): Thread[GAThread,5,main]: User-Agent: GoogleAnalytics/2.0 (Linux; U; Android 4.3; en-gb; Nexus 4 Build/JWR66Y)
10-30 09:16:16.280: I/GAV2(32379): Host: ssl.google-analytics.com