Flex 2 Namespacing Methods and Properties Example

November 9th, 2006

I came across the Namespace class while looking up some information about ActionScript 3.0’s E4X and XML. I didn’t know, will lets say, I didn’t make the connection between the Namespace class and using it with methods and properties of components. This example is very basic and is not meant to be a good use of namespaces. It shows how to use it for methods and properties.

In the example there is one method name and one property name to change a button from being rounded or square looking and being filled with red or blue colors.

Live Example Here

You can right click on the swf to view the source.

Entry Filed under: Adobe Flex, Rich Internet Applications

3 Comments Add your own

  • 1. Tink  |  2006-11-10 at 5.15 am

    Never used em either. Thanks for the example!

  • 2. Josh Tynjala  |  2006-11-10 at 10.42 am

    Cool. Another interesting way to use namespaces like this would be to support runtime language localization.

  • 3. Renaun Erickson  |  2006-11-10 at 10.43 am

    Actually the documentation showed that very example. I did not think that was the best way because there is the resources bundles method to do language localization. But if you needed run-time localization, it would be a decent approach to the problem.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

November 2006
S M T W T F S
« Oct   Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Most Recent Posts


Flex.org - The Directory for Flex