Skip to content

Instantly share code, notes, and snippets.

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
чем
f
.func1().v2()
.func3().v3()
.func2()
отличается от
f
.func1() as Fluent3
.func3() as Fluent2
<?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>
/*
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="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">
<?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);
@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));
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,
////////////////////////////////////////////////////////////////////////////////
//
// © 2007 BlooDHounD
//
////////////////////////////////////////////////////////////////////////////////
package by.blooddy.abc.swf {
import flash.utils.ByteArray;
/**
package arp.utils {
import flash.display.BitmapData;
import flash.display.DisplayObject;
import flash.geom.Matrix;
import flash.geom.Rectangle;
public function getVisibleBounds(source:DisplayObject, padding:int = 0):Rectangle {
var matrix:Matrix = new Matrix()
matrix.tx = -source.getBounds(null).x + padding;
matrix.ty = -source.getBounds(null).y + padding;