This is what mine looks like:
[Bindable]
public class ModelLocator implements
com.adobe.cairngorm.model.ModelLocator
{
protected static var
modelLocator:com.domain.projects.PSA.model.ModelLocator;
And then my getInstance() method:
public static function
getInstance():com.fmr.projects.PSA.model.ModelLocator
{
if(modelLocator == null)
{
modelLocator = new com.fmr.projects.PSA.model.ModelLocator();
modelLocator.arr_selectedPlans = new ArrayCollection([]);
}
return modelLocator;
}
HTH,
Ben
--- In [email protected], "julien castelain" <[EMAIL PROTECTED]>
wrote:
>
> hi list,
>
> i'm trying to use Cairngorm in a flex project (1st attempt), i have a
> "ModelLocator" class that implements the
> "com.adobe.cairngorm.model.ModelLocator" interface, my ModelLocator
> class is in a package (org.something.myapp.model), each time i try to
> use it i get this error
> "Circular type reference was detected in ModelLocator" -- should i
> name it differently?
>
> thanks for the help
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/