MACROMEDIA FLASH 8-EXTENDING FLASH Manuel d'utilisateur Page 5

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 17
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 4
2003 Macromedia, Inc. 5
Creating your .NET Class to Invoke from Flash
In this tutorial you will create the RemoteCatalog class, which returns a
recordset from the sports database.
Although we will only be using a simple .NET Class in this example, there
are several ways to retrieve dynamic data in .NET and make it available to
Flash Remoting, including ADO.NET, ASP.NET, Web Services, and
DLLs. (You may refer to Chapter 7: Using Flash Remoting MX for .NET
in the Flash Remoting documentation for additional information).
Steps
The following needs to be performed by you:
Examine the C# code that is provided with the tutorial
C:\Inetpub\wwwroot\flashremoting\samples\flashwidgets\RemoteCatalog.cs
Compile the C# code into a Class file and locate it in the local
assembly where the .NET server can find it.
C:\Inetpub\wwwroot\flashremoting\samples\flashwidgets\RemoteCatalog.dll
Examining RemoteCatalog
The following is the implementation of RemoteCatalog that connects to the
“sports2000” database and contains:
A method getCategories() that retrieves all the categories of products.
This method queries the category table and returns a recordset
containing all categories.
A method getProductsByCategory(int catId) that retrieves products
for a given category. This method queries the product table returning
all products for a selected category.
Vue de la page 4
1 2 3 4 5 6 7 8 9 10 ... 16 17

Commentaires sur ces manuels

Pas de commentaire