AS3 - Custom Namespaces
I'm sitting in Gary Grossman's session on "Next Generation ActionScript". He just mentioned something interesting about having the ability to create custom namespaces for encapsulation of method calls in classes and packages.
So I'm used to having public, private and protected modifiers but AS 3.0 introduces the ability to create custom modifiers, I didn't get chance to take down the entire syntax but the resulting methods would look like this ...
myPrivateLibrary addWidget ( )
{
}
Interesting stuff ...
I am a Macromedia's FreeHand user since quite some time. When I heard about Adobe buying Macromedia I was in shock. I was almost sure Adobe would kill FreeHand just to make Illustrator the only wise guy in town.
Do you know where can I find information about this? Will FreeHand have a major improvement to make it a better tool, with better color workflow, which is Adobe's strong advantage, or will it die?
Posted by: Alex | April 07, 2006 at 01:53 AM
Custom namespaces are used with a lot of internal properties and methods in mx/UI-components in flex 2.0. When extending these components, the internal stuff can be made available for the extending classes by using 'use namespace mx_internal;' together with the import statements.
Posted by: Karsten | June 16, 2006 at 05:26 AM