This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// сам синглтон | |
package { | |
public class Singleton { | |
private static var _instance:Singleton; | |
public var value:String = "всё ок"; | |
public function Singleton(protector:Protector) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
public function get SoundManager():ISoundManager | |
{ | |
return _instance||= new SoundManagerImpl(); | |
} | |
} | |
import flash.media.Sound; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.k0t0vich.utils.net.tar { | |
import flash.utils.IDataInput; | |
[Event(name="fileParsed", type="ru.riot.utils.net.tar.TarParserEvent")] | |
[Event(name="archiveParsed", type="ru.riot.utils.net.tar.TarParserEvent")] | |
public class StreamTarParser extends TarParser { | |
private static const BLOCK_SIZE: int = 512; | |
private var _operation: Function; | |
private var _needSize: uint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.events.Event; | |
import flash.utils.Format; | |
/** | |
* EventDispatcher class. Provides a basic AS3 EventDispatcher | |
* functionality. | |
* @author k0t0vich | |
*/ | |
class flash.events.EventDispatcher | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.yandex.utils.math { | |
public class AngleRange { | |
private var _min:Number; | |
private var _max:Number; | |
/** | |
* Диапазон углов. | |
* <p> | |
* Этот класс не учитывает систему отсчета углов. Это может быть геометрическая |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package feathers.examples.mxml.data { | |
import flash.events.EventDispatcher; | |
[Bindable] | |
public class Model extends EventDispatcher { | |
public var label:String = "Some Value"; | |
public var width:Number = 100; | |
public var height:Number = 20; | |
public function Model() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function addStack():void { | |
if (!_inited) return; | |
try { | |
throw new Error("getStack"); | |
} catch (e:Error){ | |
trace (e.getStackTrace()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package components { | |
/** | |
* | |
* @author Dimarik | |
* @version 1.0 | |
* @langversion 3.0 | |
* @playerversion Flash 10 | |
* @playerversion AIR 1.5 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package components | |
{ | |
/** | |
* | |
* @author Dimarik | |
* @version 1.0 | |
* @langversion 3.0 | |
* @playerversion Flash 10 | |
* @playerversion AIR 1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.riot.utils.net.tar { | |
import flash.display.Shape; | |
import flash.events.Event; | |
import flash.utils.IDataInput; | |
[Event(name="fileParsed", type="ru.riot.utils.net.tar.TarParserEvent")] | |
[Event(name="archiveParsed", type="ru.riot.utils.net.tar.TarParserEvent")] | |
public class StreamTarParser extends TarParser { | |
private static const BLOCK_SIZE: int = 512; | |
private static const frameListener:Shape = new Shape(); |