
2003 Macromedia, Inc. 10
16. Use the catalogService remote service to invoke the getCategories()
method:
catalogService.getCategories();
17. Save the document.
18. Test the movie: Cntl + enter
19. The Output panel should display the message NetServices info 1:
getCategories_Result was received from server: [object Object].
20. Go back to the authoring environment: Cntl + W.
21. Select Window Æ NetConnection Debugger.
22. Test the movie again.
23. Review the Result event in the NetConnection Debugger window.
Notice the data returned from RemoteCatalog:
Conclusion
You have now successfully invoked a .NET class from Flash. Although
the example here is a simple one it demonstrates the ease of accessing
services from your Flash UI and returning a recordset created dynamically
from a database. Congratulations! Now it’s time to create the Flash UI that
will use this dynamic data.
Kommentare zu diesen Handbüchern