Thanks for the code Mat, but this is just about what I have in my movie except you use an object to hold the listener functions while I just use functions.
What I have found after much a sleepless night is that the movie plays and executes fine in Flash Player 8 and Player 7 but just fails miserably in Flash Player 9. I am not sure why this is happening but am looking for a solution. It may have something to do with the Flash movies I have beinf made for Flash 7 that is causing the prolem, but I am not certain at this point. But at least it's a start... Thanks, liam m- --- "Miles, Mathew" <[EMAIL PROTECTED]> wrote: > I had this problem about 6 months ago and I don't remember how I solved > it. However, here is the code that I currently use to make the > connection and return results. Hope it helps. > > ######################################################################## > ######### > > import mx.remoting.Service; > import mx.services.Log; > import mx.rpc.RelayResponder; > import mx.rpc.FaultEvent; > import mx.rpc.ResultEvent; > import mx.remoting.PendingCall; > import mx.remoting.RecordSet; > > > //#######################SETUP CONNECTION########################### > var contactService:Service = new Service( > "http://abish.byui.edu/flashservices/gateway?", > //"http://localhost:8500/flashservices/gateway?", > null, > "wsmri.WsmriDate1", > null, > null); > //##################################################################### > > > //######GET RECORDS################################################# > function fgetMarriageRecords(fName, lname, strID, searchType, > state_Svar, county_Svar, dateLimit, bDate, eDate){ > var pc:PendingCall = contactService.getRecordsWDate({FirstName: > fName, LastName: lname, strID: strID, searchType: searchType, mState: > state_Svar, county: county_Svar, dateLimit: dateLimit, bDate: bDate, > eDate: eDate}); > var oResult:Object = new Object(); > oResult.onResult = function(re:ResultEvent){ > var rs:RecordSet = RecordSet(re.result); > var nCount:Number = rs.length; > recNum_label.text = rs.length; > //trace("length is : " + rs.length); > //if no results returned show message screen > if (rs.length == 0) { > noResults1_mc._visible = true;; > this.noResults1_mc.ok_btn.setFocus(); > } > results_dg.dataProvider = rs; > results_dg.selectedIndex = 0; > searchInProgress1_mc._visible = false; > // marker for mouse pointer > > }; > oResult.onFault = function(re:ResultEvent){ > //trace("> fault >"); > for(var i in re){ > //trace(i + " = " + re[i]); > for(var j in re[i]){ > //trace(j + " = " + re[i][j]); > } > } > }; > pc.responder = new RelayResponder(oResult, "onResult", "onFault" > ); > } > ###################END GET RECORDS################################### __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

