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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to