用户手册目录Contents3About Flash Remoting9Who should read this book9About Flash Remoting documentation9What’s new in Flash Remoting for Flash MX 2004 ActionScript 2.010Developer resources11Contacting Macromedia12Getting Started13About Flash Remoting13Flash Remoting data flow14Understanding the Flash Remoting service adapters16Building Flash applications with Flash Remoting16Understanding the Flash Remoting development environment16Using Flash Remoting17Connecting to a service18Building a Hello World application with Flash Remoting18Migrating existing applications to Flash Remoting for Flash MX 2004 ActionScript 2.022Making the minimum changes to your application for ActionScript 2.022Taking full advantage of Flash Remoting for Flash MX 2004 ActionScript 2.023Migrating the DataGrid application to Flash Remoting for Flash MX 2004 ActionScript 2.024Example: migrating the DataGrid application24Using Flash Remoting ActionScript29Flash Remoting application structure30Flash Remoting ActionScript classes32Properties and methods34Importing Flash Remoting ActionScript classes35Configuring Flash Remoting36Establishing the Flash Remoting gateway connection37Creating a gateway connection using the Service class37Specifying the gateway connection in a web page38Specifying a service39Authenticating a user to the application server40Using authentication in ColdFusion MX41Using authentication in JRun 441Calling service functions41Specifying functions42Calling functions using named arguments in ColdFusion43Handling service results and errors43Using the RelayResponder object for a service44Using PendingCall and RelayResponder objects for a specific service function45Using the ResultEvent class45Using the FaultEvent class46Using the Flash Remoting ActionScript API in the CustomerInfoExampleAPI application47CustomerInfoFormAPI()50onReveal()51updateDetails()51refreshCustomerData()51onCustGrid_Change()51onCustCat_Change()52onCategoryData()52onCustomerData()52onCustomerFault()52onCategoryFault()52Using the RemotingConnector component (Flash Professional only)53RemotingConnector parameters54Creating an instance of the RemotingConnector component56Using the RemotingConnector in the CustomerInfoExampleCon application57CustomerInfoFormCon()60onReveal()60updateDetails()61onCustGrid_Change()61onCustomerData()61onCategoryData()61onCustomerDataFault()61onCategoryDataFault()61Using Flash Remoting Data in ActionScript63About Flash Remoting and data types63Understanding Action Message Format64Converting from ActionScript to application server data types65Converting from application server data types to ActionScript67ColdFusion to ActionScript data conversion issues69About working with objects70Working with ActionScript typed objects71Working withJava serializable objects72About working with RecordSet objects73About record sets74RecordSet methods75Using RecordSet methods and properties76Creating RecordSet objects76Getting values and information from RecordSet objects76Changing record set data77Using notifications with RecordSet objects78Sorting and filtering record sets79Delivering RecordSet data to Flash applications in ColdFusion MX81Using Flash UI components with RecordSet objects83Using RecordSet objects directly83Using DataGlue methods84About working with XML85The NetConnection Debugger87Using the NetConnection Debugger87Enabling debugging87Disabling debugging89NetConnection events89Specific event information89Common event information91Client event messages92Application server event messages93ColdFusion event messages94Flash Communication Server events94Using the NetConnection Debugger in ActionScript94Using the Netdebug.initialize() method95Using the NetDebug.trace() method95Using connection-specific debugging methods95Configuring debugger output in ActionScript96Using Flash Remoting with ColdFusion MX97Using Flash Remoting with ColdFusion pages97Determining the Flash service name97Using the Flash scope to pass parameters to ColdFusion pages98Using Flash.Params to access parameters in a ColdFusion page99Accessing ActionScript objects101Returning results to ActionScript102Returning record sets to Flash103Returning record sets in increments104Using Flash Remoting with ColdFusion components105Determining the Flash service name105Returning results to ActionScript106Returning record sets in increments from a component106Passing parameters to ColdFusion components106Accessing ActionScript objects108Using component metadata with the Flash Remoting service109Using Flash Remoting with server-side ActionScript111Using CF.http()111Using CF.query()114Calling web services from Flash Remoting115Invoking web service methods using Flash Remoting115Securing access to ColdFusion from Flash Remoting116Assigning security roles to component functions117Handling errors with ColdFusion117Using Flash Remoting for Java119About Flash Remoting for Java120How Flash Remoting for Java works120Where Flash Remoting fits into the Java application architecture120Calling Java classes or JavaBeans from ActionScript121Making a Java class or JavaBean available to Flash Remoting121Getting a reference to a Java class or JavaBean in ActionScript122Invoking Java methods in ActionScript123Looking at a Flash application that calls a JavaBean123Looking at the JavaBean code124Looking at the user interface for the JavaBean125Looking at the ActionScript code that calls the JavaBean125Calling Enterprise JavaBeans (EJBs) from Flash128Getting a reference to an EJBHome object in ActionScript128Invoking EJB methods in ActionScript128Looking at a Flash application that calls an EJB129Looking at the EJB code130Looking at the user interface for the EJB130Looking at the ActionScript code that calls the EJB131Calling servlets and JSPs from Flash132Coding a servlet to use with Flash Remoting132Getting a reference to a web application in ActionScript132Calling a servlet or JSP133Calling JMX MBeans from Flash (JRun only)134Getting a reference to an MBean in ActionScript135Invoking MBean methods in ActionScript135Calling server-side ActionScript from Flash (JRun only)135Getting a reference to a server-side ActionScript file136Invoking server-side ActionScript functions136Handling function results in ActionScript137Using Flash Remoting with JRun security139Looking at the ActionScript authentication code139Looking at the JRun security settings139Passing XML objects between Flash and Java140Sending an ActionScript XML object to Java140Returning an XML object from Java to Flash141Viewing Flash Remoting log entries141Using Flash Remoting for Microsoft .NET143Flash Remoting for Microsoft .NET143Where Flash Remoting fits into the Microsoft .NET framework144Understanding the Flash Remoting for Microsoft .NET directory structure145Setting up a Flash Remoting ASP.NET application146Calling ASP.NET pages from Flash147Making an ASP.NET page available to Flash Remoting147Getting a reference to an ASPX-based service in ActionScript147Invoking ASPX pages in ActionScript148Using the Flash Remoting custom server control in ASPX pages149Using the Flash Remoting namespace in code-behind files150Using ASP.NET state management with Flash Remoting151Using ASP.NET exception handling152Using ADO.NET objects with Flash Remoting153Displaying a RecordSet object in Flash with ActionScript155Calling web services from Flash156Invoking web service methods using Flash Remoting157Invoking a remote web service from Flash158Calling ASP.NET assemblies from Flash159Calling assemblies from Flash159Returning an ActionScript object from an assembly160Creating an assembly that returns an ActionScript object160Handling the ActionScript object in Flash161Viewing Flash Remoting log entries162Using NetServices and Connection Classes163Creating a gateway connection using the NetServices object163Specifying the gateway in the NetServices createGatewayConnection() method164Using the NetServices setDefaultGatewayUrl() method164Authenticating a user to the application server165Creating the service object166Handling results for a Connection object167Directing all results for a service to a single responder object167Directing results for a service to specific responder objects168Handling errors for a Connection object169The error object170Error-handling hierarchy170Error-handling strategies171Index173文件大小: 2.1 MB页数: 180Language: English打开用户手册