Hi
Try to make separate mxml component and use custom event.
"A journey of a thousand miles Begins with a single step."
Thanks
Kunal Pagariya
On Wed, May 20, 2009 at 12:08 PM, Ravi Mishra <[email protected]>wrote:
>
> Kshama,
>
> Search for 'custom events' and Event propagation in Flex. That will
> surely help you a lot understanding the concept of passing the values
> between different views using events.
>
> HTH,
>
> -Ravi
>
> On May 20, 1:30 am, "[email protected]" <[email protected]>
> wrote:
> > Hi Frnds,
> >
> > I am working on developing a application in Flex, which will be
> > accessed only by our employees only .So in order to follow modular
> > approach, I have split the main application into many mxml files. But
> > then I often come across 'Access to undefined property' error when my
> > accessing objects across 2 mxml files.
> >
> > For e.g. My Tilelist is filtered by combobox and they are both in
> > separate mxml files.So In order to access the combobox selected
> > Index, I have to instantiate the relevant mxml file.
> >
> > myItem.mxml
> >
> > <mx:Script>
> > var myshop :Shop = new Shop() // shop contains definition of
> > combobox
> >
> > function filterfunction() {
> > if (item.price >= myshop.combobox.selectedindex.rangestart){
> > -----
> > ------
> > }
> > }
> > <mx:/script>
> >
> > <mx:TileList ...>
> >
> > </mx:TileList >
> >
> > And now I have many such instantiations all over the place and too
> > many public variables...and that conflicts the theory of
> > encapsulation. Is there a better way of doing this ?
> >
> > Please advise.
> >
> > Kshama
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---