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
//Created by Action Script Viewer - http://www.buraks.com/asv | |
package flash.utils { | |
public function setTimeout(closure:Function, delay:Number, ... _args):uint{ | |
return (new SetIntervalTimer(closure, delay, false, _args).id); | |
} | |
}//package flash.utils | |
import flash.events.*; |
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 | |
{ | |
import flash.display.MovieClip; | |
import org.osflash.signals.Signal; | |
/** | |
* This class needs to be associated with a movie clip symbol containing two blank frames on its timeline. | |
* Usage: | |
* | |
* var dispatcher:EnterFrameDispatcher = new EnterFrameDispatcher(); |
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 | |
{ | |
import org.osflash.signals.Signal; | |
import flash.display.Sprite; | |
public class SignalsHelloWorld extends Sprite | |
{ | |
private var radio:Radio; | |
private var messageListener:MessageListener; | |
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
<?xml version="1.0"?> | |
<!-- | |
~ RegFormRLSExample - RegView.mxml | |
~ | |
~ Copyright (c) 2010. Newtriks Ltd <simon@newtriks.com> | |
~ Your reuse is governed by the Creative Commons Attribution 3.0 License | |
--> | |
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/halo" |
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
//Created by Action Script Viewer - http://www.buraks.com/asv | |
package flash.net { | |
import flash.events.*; | |
import flash.utils.*; | |
public class URLLoader extends EventDispatcher { | |
private var stream:URLStream; | |
public var dataFormat:String;// = "text" | |
public var data; |
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 { | |
dynamic final class Vector$object { | |
function Vector$object(length:uint=0, fixed:Boolean=false){ | |
super(); | |
this.length = length; | |
this.fixed = fixed; | |
} | |
private function _shift(){ | |
if (this.fixed){ |
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
/** | |
* Makes an object inherit from a class. | |
* Modifies the inheritance chain and calls the class constructor. | |
* Commonly used to make a movie clip such as the root timeline | |
* inherit from a custom class, e.g. | |
* // on main timeline | |
* applyClassToInstance(MyDocumentClass, this); | |
* Works for AVM1 only, i.e. AS1 and AS2. | |
* @param theClass | |
* @param theInstance |
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
class NoCake | |
{ | |
private var _clicked:Signal; | |
private var _data:Object; | |
public function NoCake(mc:MovieClip, data:Object) | |
{ | |
_clicked = new Signal(Object); | |
_data = data; | |
mc.addEventListener(MouseEvent.CLICK, onClick); |
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
All the Singletons, all the Singletons | |
All the Singletons, all the Singletons | |
All the Singletons, all the Singletons | |
All the Singletons, all the Singletons | |
If you liked it then you shoulda put an instance on it | |
If you liked it then you shoulda made it global static | |
Don't be mad once you see you can't unit test it | |
If you liked it then you shoulda made a Singleton |
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
protected function listenerValid(listener:Function):Boolean | |
{ | |
var scope:Array = getLexicalScopes(listener); | |
var scopeXML:XML = flash.utils.describeType(scope[0]); | |
// No clue on how to get the "name" of the function passed. I had to use a hard coded string of "hearSignal" for this test | |
var functionDescriptionXML:XML = scopeXML.factory.method.(@name == "hearSignal")[0]; | |
var params:XMLList = functionDescriptionXML..parameter; | |
} |
OlderNewer