This link should clear up issue #1:
http://livedocs.macromedia.com/flex/2/langref/statements.html#static
--- In flexcoders@yahoogroups.com, "malik_robinson" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am trying to understand the ModelLocator and how Cairngorm works.
> I have been reading, but I think I need some additional information
> on the code below if possible.
>
> 1. What is the difference between Public function and Public Static
> function. I assume Public functions can be called from anywhere in
> the application. But what about the "public static"
>
> 2. Any info about the ModelLocator would be helpful.
>
> [Bindable]
> public class ModelLocator implements
> com.adobe.cairngorm.model.ModelLocator
> {
> private static var
> modelLocator:code.model.ModelLocator;
>
> public static function getInstance() :
> code.model.ModelLocator
> {
> if ( modelLocator == null )
> modelLocator = new
> code.model.ModelLocator();
>
> return modelLocator;
> }
>
> //---------------------------------------------------
> ----------------------
>
> public function ModelLocator()
> {
> if ( code.model.ModelLocator.modelLocator !=
> null )
> throw new Error( "Only one
> ModelLocator instance should be instantiated" );
> }
>
> //---------------------------------------------------
> ----------------------
>
> public function initialise() : void
> {
> }
>
> Thanks,
>
> Malik
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___