You can also create action script classes (Model objects) and use it in your
mxml



On Wed, May 20, 2009 at 2:01 AM, Kunal Pagariya <kunal.pagar...@gmail.com>wrote:

> 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 <ravi.achi...@gmail.com>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, "kshama.pa...@gmail.com" <kshama.pa...@gmail.com>
>> 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 flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to