HomeAbout

SuperViewStack

From the site:

For a Flex project I’m working on I decided I would need a ViewStack that also showed the children underneath the selectedChild.

[...]

SuperViewStack by default displays all of its children that are underneath its selectedChild.
You can easily adjust the factor with which underlying children fade, and with what tint. It is also possible to switch back to normal ViewStack mode.
SuperViewStack has almost all of the functionality that ViewStack has, and all the child-methods (for example addChild()) are still functional.

rubenswieringa.com/blog/superviewstack

LcBroadcast

From the site:

LcBroadcast provides an easy mechanism to broadcast messages to different instances of the flash payer running on local machine. It addresses a limitation of the localConnection object, in that localConnection must know the connection name of each instance to communicate with.

http://www.freesome.com/lcbroadcast

Delegate

Improvemnt on Macromedia’s Delegate that allows it to pass additional arguments, and also a reference to the delegate function that was created.

http://dynamicflash.com/2005/02/delegate-class-refined

ButtonEventHandler

from the docs:

The ButtonEventHandler class allows for timeline-based instances (MovieClips) to receive button events and allows for those events to bubble up to parent clips. This is contrary to normal button event behavior (Buttons and MovieClips) which starts at the parent clip, or the first parent clip with any kind of button event assigned to it, and prevents any child clips from receiving any button events at all. A list of all supported events are as follows:

  • onPress
  • onRelease
  • onReleaseOutside
  • onRollOver
  • onRollOut
  • onDragOver
  • onDragOut
  • onMouseWithin

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/com/senocular/events/ButtonEventHandler.as
Part of senocular’s Actionscript library.

ButtonEvent

from the docs:

The ButtonEvent class defines event objects used by ButtonEventHandler. ButtonEvent instances contain properties regarding movie clips handled by ButtonEventHandler and manages the events they receive. These instances are created by ButtonEventHandler and returned from a call to ButtonEventHandler.initialize. It is also the object provided to event handlers and provides information regarding the event and the state of the movie clip receiving it. Other objects can be set to listen to events handled by ButtonEvent instances using addEventListener.

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/com/senocular/events/ButtonEvent.as

Part of senocular’s Actionscript library.

EventBroadcaster

Event broadcaster used by composition.

http://www.createage.com/blog/?p=102

Proxy

Flash's Delegate class doesn't allow you to pass extra parameters to a method when using Delegate.create(). Use the Proxy class instead.

http://www.person13.com/articles/proxy/Proxy.htm

Actionscript:
  1. class SomeClass {private var _sProperty:String;public function SomeClass(sURL:String) {var lvInstance:LoadVars = new LoadVars();// The syntax for ascb.utils.Proxy.create( ) is similar to that of Delegate.create( ).
  2. // However, you can also specify additional parameters to pass along to the method.
  3. lvInstance.onData = ascb.utils.Proxy.create(this, assignText, "some property value");
  4. lvInstance.load(sURL);
  5.  
  6. }
  7.  
  8. private function assignText(sText:String, sAnotherParameter:String):Void {
  9.  
  10. _sProperty = sText;
  11.  
  12. // Much simpler.
  13.  
  14. trace(sAnotherParameter);
  15.  
  16. }
  17.  
  18. }</div>
  19. <div>