PART 1:
What is the easiest way to bind the a property in the modellocator of cairngorm to a viewStacks selectedChild,
this is what i'm trying:::
<mx:Script>
<![CDATA[
private function handleCreationComplete():void
{
model = ModelLocator.getInstance();
}
]]>
</mx:Script>
<mx:ViewStack
id="subscriptionsViewStack"
width="100%"
height="100%"
selectedChild="{ model.someProperty }" >
<someview:SomeView id="somePropertyValue">
</mx:ViewStack>
So what I am thinking should happen is when the model.someProperty is changed, it will change the selected child, say if model.someProperty is changed to somePropertyValue, wouldn't it then selected the someView child as the selected Child?
I am getting errors about type coersion, not being able to bind string to the selectedChild property.. I understand what that means, but now I just need to know what the correct way of binding for this situation would be..
PART 2:
in the example above, if I change the viewStacks selectedChild to directly reference a child, IE:( selectedChild="{somePropertyValue}"), I get this error::
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
doeas anyone know what that what that mean??
thanks.
Smith
__._,_.___
--
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
Software development tool | Software development | Software development services |
Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___