Hi! 

I was just wondering is it possible to make a filterfunction work between 
ViewStack 
components. What i mean is i'm calling the HTTP service in my main.mxml but 
showing 
the results in MovieView.mxml passing the data works fine. But i can't figure 
out where i 
should write the filter function:

                // Filter function 
                        public function movieFilter(item:Object):Boolean
                        {
                var result:Boolean=false;
                if (!item.title.length
            || item.title.toUpperCase().indexOf(filterInput.text.toUpperCase()) 
>= 0)
            if (!item.genres.length
            || 
item.genres.toUpperCase().indexOf(genresInput.selectedItem.data.toUpperCase
()) >= 0)
                result=true;
            
            return result;
                         }

and where i should put:

movieCollection.filterFunction=movieFilter;

>From the beginning i had all that in my Main.mxml and it worked fine. Can 
>somebody help 
me, if you even get what i mean ?




--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to