Skip to content

Instantly share code, notes, and snippets.

private var _mrgsMetrics:Object = {
MetricType.NOT_GOOGLE_AUTH : 425,
MetricType.FIRST_RACE_START : 426,
MetricType.SECOND_RACE_FINISH : 427,
MetricType.FIRST_CAR_BUY : 428,
MetricType.THIRD_RACE_FINISH : 429,
MetricType.FIRST_QUEST_FINISH : 430,
MetricType.TUTOR_FINISHED : 431,
MetricType.LEVEL_UP : 432,
MetricType.FIRST_CAR_UPGRADE : 433,
@k0t0vich
k0t0vich / gist:55ad25f534cd7e88444a
Created June 9, 2015 19:22
reload android application
private function handler_androidRelaunch( event:Event ):void {
NativeApplication.nativeApplication.removeEventListener( Event.DEACTIVATE, handler_androidRelaunch );
var id:String = NativeApplication.nativeApplication.applicationID;
if (_useAirPrefix) id = "air." + id;
var url:String = "intent:#Intent;" +
"action=android.intent.action.MAIN;" +
"category=android.intent.category.LAUNCHER;" +
"component=" + id + "/.AppEntry;" +
"end";
navigateToURL(new URLRequest(url));
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="MyProject" basedir="." default="main">
<property name="fs.dir" value="../racemania/lib/graphics/gui/daily"/>
<property name="fs.includes" value="*"/>
<property name="fs.excludes" value="**/*.tmp"/>
<target name="main">
<script language="javascript"> <![CDATA[
importPackage(java.io);
//importClass(java.io.File);
importClass(java.security.MessageDigest);
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="MyProject" basedir="." default="main">
<property name="fs.dir" location="../racemania/lib/graphics/gui/"/>
<!-- <property name="fs.includes" value="*"/> -->
<property name="fs.excludes" value="**/modding/**"/>
<property name="rewriter" value="rewriter.json"/>
<property name="output.dir" location="bin-debug/lib"/>
<property name="output.release.temp.dir" location="bin-release-temp/lib"/>
<target name="main">
/*
Copyright (c) 2011, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
<?xml version="1.0" encoding="utf-8"?>
<ivy-module version="2.0">
<info organisation="ru.yandex.flash" module="streetview-player">
<description>
streetview-player
</description>
</info>
<dependencies>
@k0t0vich
k0t0vich / Main.hx
Created August 31, 2012 17:34
Similar test
class Main extends Sprite
{
private var shape:Shape;
public function new()
{
super();
#if iphone
Lib.current.stage.addEventListener(Event.RESIZE, init);
#else
private static var MAXIMUM_POOL_LENGTH:uint = 5000;
private static var POOL:Array = [];
public function SphericalCoordinates(azimuth:Number = 0, elevation:Number = 0,
radius:Number = 1) {
this.elevation = elevation;
this.azimuth = azimuth;
this.radius = radius;
}
чем
f
.func1().v2()
.func3().v3()
.func2()
отличается от
f
.func1() as Fluent3
.func3() as Fluent2
protected function loader_completeHandler(event:Event):void {
var loaderInfo:LoaderInfo = event.currentTarget as LoaderInfo;
var bytes:ByteArray = loaderInfo.bytes;
var definitionFinder:DefinitionFinder = new DefinitionFinder(bytes);
var definitions:Array = definitionFinder.getDefinitionNames();
log(" defs:\r" + String(definitions));
for (var i:int = 0; i < definitions.length; i++) {
var defName:String = definitions[i];