Ruben’s blog

Ruben Swieringa on Actionscript and a whole lot of other stuff..

Month: August, 2007

Ambiguous reference bug for namespaces in Flex

Before coming up with a solution for binding read-only accessors a few months ago, I had already tried out various alternatives, among which the following (which was later also pointed out by others through the comments):
[Bindable]
// public getter:
public function get someProperty ():String {
return this._someProperty;
}
// protected setter:
protected function set someProperty (value:String):void {
this._someProperty [...]

Alias for ASDoc @see

You may have noticed that when using the @see tag in your ASDocs, that it uses the actual hyperlink-address as a text.
In short, stating @see com.somedomain.MyClass will look somewhat like ../../com/somedomain/MyClass.html in the generated documentation.
However, some time ago I discovered that you can actually use aliases to make your @see’s look prettier, just enter an [...]

’some basic async stuff’

..or so he calls it. My good friend Michael Avila, Roger Braunstein and Jeff Yamada made this way awesome system for asynchronous action-handling in Actionscript3.0.
I suggest you go check it out:
some basic async stuff – kirupaForum
We knew ahead of time that we’d be dealing with a lot of the obvious stuff like loading, animating, preparing [...]

Event.bubbles, Event.cancelable, and Event.currentTarget

Perhaps some of you may not know this, but event-bubbling in Actionscript3.0 is way cool and well worth your attention. So read on.
With event-bubbling you can let one Event subsequently call on every ancestor (containers of containers of etc.) of the DisplayObject that originally dispatched the Event, all the way up to the surface (read: [...]