make sure you have a crossdomain.xml file on ur server On 8/26/07, Tracy Spratt <[EMAIL PROTECTED]> wrote: > > "Works local but not on server" often indicates a security issue. Are > you sure you are getting your data? > > > > Also, this is probably not the best thing: > > playlist=userRequest.lastResult.videolink.video > > > > Use a result handler function to assign the event.result(don't use > lastResult, it is intended for binding espressions) to a local variable. > The result handler will also let you verify that/when your data result is > returned. > > > > Tracy > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Ary > *Sent:* Sunday, August 26, 2007 6:07 PM > *To:* [email protected] > *Subject:* RE: [flexcoders] filterFunction on ArrayCollection > > > > Hi Alex, thx for replying, yes i thought so too...but > if it is...it won't work on local either..but it works > on localhost... > > here's the code > private function startFilter(toFilter:String):void { > categoryString=toFilter; > tabSwitch(toFilter); > playlist=userRequest.lastResult.videolink.video > playlist.filterFunction=processFilter; > playlist.refresh(); > dgUserRequest.selectedIndex=0; > } > > private function processFilter(item:Object):Boolean > { > var result:Boolean=false; > if (!item.videocategory.length || > item.videocategory.toUpperCase().indexOf(categoryString) > >= 0){ > result=true; > } > return result; > } > > and here is the httpservice, trigerred on > creationComplete app. userRequest.send(); > <mx:HTTPService id="userRequest" url="_fxrequest.php" > useProxy="false" method="POST" > result="playlist=userRequest.lastResult.videolink.video" > > > > thanks! > ary > > --- Alex Harui <[EMAIL PROTECTED] <aharui%40adobe.com>> wrote: > > > please post some code. Sounds like you might be > > filtering before the > > results come back from the server. > > __________________________________________________________ > Need a vacation? Get great deals > to amazing places on Yahoo! Travel. > http://travel.yahoo.com/ > > >
-- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --------------------------------------- post your flex tips on http://flextips.corank.com

