Re: [flexcoders] Re: LinkBar | mx:dataProvider | does not work
It'll never work. When you're declaring the ViewStack inside your declaration of the LinkBar it becomes a *property* of the LinkBar, but it's not a *child* (in the display-hierarchy-sense) of anything. simply creates a new class (and a matching IFactory IIRC), so that unfortunately won't help in this case either. It's for when you want to make a lot of instances of something without the bother of a new MXML file. -Josh On Thu, Nov 6, 2008 at 2:06 PM, sunild99 <[EMAIL PROTECTED]> wrote: > Hi, > > Just a guess: when you specify the dataProvider that way, maybe need to > put your view > stack inside of a tag: > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote: > > > > HmmmI would have expected that to work. > > > > It seems you have to specify the dataprovider property as part of the > > LinkBar... > > > > > > > > http://www.adobe.com/2006/mxml";> > > > horizontalAlign="center" > > paddingTop="10" paddingBottom="10" paddingLeft="10" > > paddingRight="10"> > > > dataProvider="{myViewStack}"/> > > > > > height="80%"> > > > label="Search" width="100%" height="100%"> > > > > > > > label="Customer Info" width="100%" height="100%"> > > > > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "ilikeflex" wrote: > > > > > > Hi > > > > > > I have below sample code(Code1) which is working fine and i have > > > taken from livedocs. Now i have made modification to code1 and > > > changed to code2. > > > > > > In code2 i am declaring the dataprovider property of the linkbar in a > > > different way.I am using the tag.In this case > > > linkbar does not show viewstack contents. > > > > > > I have been putting my head into this but could not find any solution. > > > Any pointers are highly appreciated. > > > > > > Thanks > > > Rajan > > > > > > > > > Code1: > > > > > > > > > http://www.adobe.com/2006/mxml";> > > > > > > > > height="75%" width="75%" horizontalAlign="center" > > > paddingTop="10" paddingBottom="10" paddingLeft="10" > > > paddingRight="10"> > > > > > > > > dataProvider="{myViewStack}"/> > > > > > > > > > > > width="100%" height="80%"> > > > > > > > > label="Search" width="100%" height="100%"> > > > > > > > > > > > > > > label="Customer Info" width="100%" height="100%"> > > > > > > > > > > > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > > > > > > > > > > > > > > > > > Code2: > > > > > > > > > http://www.adobe.com/2006/mxml";> > > > > > > > > height="75%" width="75%" horizontalAlign="center" > > > paddingTop="10" paddingBottom="10" paddingLeft="10" > > > paddingRight="10"> > > > > > > > > > > > > > > >> > width="100%" height="80%"> > > > > > label="Search" width="100%" height="100%"> > > > > > > > > > > > > > > label="Customer Info" width="100%" height="100%"> > > > > > > > > > > > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: LinkBar | mx:dataProvider | does not work
Hi, Just a guess: when you specify the dataProvider that way, maybe need to put your view stack inside of a tag: --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote: > > HmmmI would have expected that to work. > > It seems you have to specify the dataprovider property as part of the > LinkBar... > > > > http://www.adobe.com/2006/mxml";> > horizontalAlign="center" > paddingTop="10" paddingBottom="10" paddingLeft="10" > paddingRight="10"> > dataProvider="{myViewStack}"/> > > height="80%"> > label="Search" width="100%" height="100%"> > > > label="Customer Info" width="100%" height="100%"> > > > label="Account Info" width="100%" height="100%"> > > > > > > --- In flexcoders@yahoogroups.com, "ilikeflex" wrote: > > > > Hi > > > > I have below sample code(Code1) which is working fine and i have > > taken from livedocs. Now i have made modification to code1 and > > changed to code2. > > > > In code2 i am declaring the dataprovider property of the linkbar in a > > different way.I am using the tag.In this case > > linkbar does not show viewstack contents. > > > > I have been putting my head into this but could not find any solution. > > Any pointers are highly appreciated. > > > > Thanks > > Rajan > > > > > > Code1: > > > > > > http://www.adobe.com/2006/mxml";> > > > > > height="75%" width="75%" horizontalAlign="center" > > paddingTop="10" paddingBottom="10" paddingLeft="10" > > paddingRight="10"> > > > > > dataProvider="{myViewStack}"/> > > > > > > > width="100%" height="80%"> > > > > > label="Search" width="100%" height="100%"> > > > > > > > > > label="Customer Info" width="100%" height="100%"> > > > > > > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > > > > > > > > > Code2: > > > > > > http://www.adobe.com/2006/mxml";> > > > > > height="75%" width="75%" horizontalAlign="center" > > paddingTop="10" paddingBottom="10" paddingLeft="10" > > paddingRight="10"> > > > > > > > > > >> width="100%" height="80%"> > > > label="Search" width="100%" height="100%"> > > > > > > > > > label="Customer Info" width="100%" height="100%"> > > > > > > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > > > > > > > > > >
[flexcoders] Re: LinkBar | mx:dataProvider | does not work
HmmmI would have expected that to work. It seems you have to specify the dataprovider property as part of the LinkBar... http://www.adobe.com/2006/mxml";> --- In flexcoders@yahoogroups.com, "ilikeflex" <[EMAIL PROTECTED]> wrote: > > Hi > > I have below sample code(Code1) which is working fine and i have > taken from livedocs. Now i have made modification to code1 and > changed to code2. > > In code2 i am declaring the dataprovider property of the linkbar in a > different way.I am using the tag.In this case > linkbar does not show viewstack contents. > > I have been putting my head into this but could not find any solution. > Any pointers are highly appreciated. > > Thanks > Rajan > > > Code1: > > > http://www.adobe.com/2006/mxml";> > > height="75%" width="75%" horizontalAlign="center" > paddingTop="10" paddingBottom="10" paddingLeft="10" > paddingRight="10"> > > dataProvider="{myViewStack}"/> > > > width="100%" height="80%"> > > label="Search" width="100%" height="100%"> > > > > label="Customer Info" width="100%" height="100%"> > > > > label="Account Info" width="100%" height="100%"> > > > > > > > > Code2: > > > http://www.adobe.com/2006/mxml";> > > height="75%" width="75%" horizontalAlign="center" > paddingTop="10" paddingBottom="10" paddingLeft="10" > paddingRight="10"> > > > > >width="100%" height="80%"> > label="Search" width="100%" height="100%"> > > > >label="Customer Info" width="100%" height="100%"> > > > >label="Account Info" width="100%" height="100%"> > > > > > > > >