• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

strange: can't access public var in model in Cairngorm

Explorer ,
Oct 19, 2010 Oct 19, 2010

Copy link to clipboard

Copied

I can access the public const but not the pubic var in my model. Can someone tell me what's the problem?  Thanks in advance.

package model

{

import com.adobe.cairngorm.model.IModelLocator;

[Bindable]

public class ModelLocator implements IModelLocator {

// Single Instance of Our ModelLocator

private static var instance:ModelLocator;

public function ModelLocator(enforcer:SingletonEnforcer) {

if (enforcer == null) {

throw new Error( "Hey, You Can Only Have One ModelLocator" );

}

}

// Returns the Single Instance

public static function getInstance() : ModelLocator {

if (instance == null) {

instance = new ModelLocator( new SingletonEnforcer );

}

return instance;

}

//MY VARIABLES HERE 

public var  workflowState:uint = 0;

public var  gotit:String = "Dameon";

//MY CONSTANTS

public static const SEARCH_SCREEN = 0;

public static const DIAGRAM_SCREEN =1;

}

}

// Utility Class to Deny Access to Constructor

class SingletonEnforcer {}

Views

318

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 20, 2010 Oct 20, 2010

Copy link to clipboard

Copied

LATEST

This appears to be a Flex question. Please try the flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines