Flash and XML: A Developer's Guide (Paperback)

Dov Jacobson, Jesse Jacobson

  • 出版商: Addison Wesley
  • 出版日期: 2001-11-20
  • 定價: $1,050
  • 售價: 2.8$299
  • 語言: 英文
  • 頁數: 368
  • 裝訂: Paperback
  • ISBN: 0201729202
  • ISBN-13: 9780201729207
  • 相關分類: XML
  • 立即出貨(限量) (庫存=3)

買這商品的人也買了...

商品描述

"This book is an exceptional training manual to bring a web developer or flash designer with scripting skills into an entirely new world of coding."
--Christopher Ian Smith,
XML Developer, RespondTV.com

"This is a 'must-read' for any Flash developer."
--John Paul Rawlins, Editor
FlashNewz.com

Flash and XML shows designers and developers how to integrate these powerful technologies and create dynamic web sites. With this thoroughly readable guide you take Flash to the next level, interfacing ActionScript with XML. Empower your Flash projects with dynamic content, backend databases, server-based applications, peer-to-peer, and more.

Flash and XML is a tutorial that brings you up to speed on both technologies, offering clear and concise explanations. In addition, this book presents a number of important web technologies, including PHP, MySQL, and sockets. It shows how to work with these technologies to create n-tier, interactive systems that access the full resources of the Internet.

Sample projects (trivia game, XML browser, simple chat) showcase the capabilities of Flash and XML together and demonstrate important concepts, approaches, and techniques.

The companion web site at http://www.FlashandXML.com contains all of the source code referenced in the book, as well as updates, discussion groups, and links to other resources.

Containing plentiful examples, experience-based techniques, and just enough theory, Flash and XML is a one-stop sourcebook that will guide you in the development of web sites that are not only animated, interactive, and powerful, but extremely useful as well.

Specific topics covered include:

  • Flash architecture
  • ActionScript techniques
  • XML in detail--for Flash developers
  • DTD specification
  • Internet request and response: HTTP
  • Server scripting with PHP
  • Basic SQL syntax
  • Designing MySQL databases
  • From MySQL to Flash via XML and PHP
  • Cookies
  • Packet sniffers
  • Escaping the Domain Perimeter
  • XML Sockets and streaming data
  • Multi-user communication in Flash

Table of Contents

Preface.

Why this book, who should read it.


Acknowledgments.
1. Flash Basics.

Starting out: Buttons, graphics, text, sound, script.
The Background of Flash.
Practical Flash.
Event-Driven Graphics.
Building a Button.
Constructing a Round.
Making Keyframes.
Constructing the Responses.
Finishing Features.
Conclusion--and Beyond.


2. FlashActionScript: Objects and Events.

Core concepts: Object orientation, event handlers, dynamic text.
Object Orientation Concepts.
Object-Oriented Theory vs. ActionScript Reality.
Flash Objects.
Programmable Button.
Data Encapsulation.
Conclusion.


3. More ActionScript: Data-Driven Interfaces.

Practical work: Thin client, smart graphic elements, exposing data structure.
Data-Driven Decisions.
Data-Driven Everything.
Isolating the Data.
Dynamic Creation of Graphics.
Multiple Questions.
Conclusion.


4. XML Fundamentals.

Big picture: Inspiration, evolution, esthetic, promise.
XML Background.
How XML Works.
Designing the Data.
Conclusion.


5. XML Structure.

Definitions: Elements, names, tags, attributes, content, markup, etc.
Element.
Name.
Start Tag.
End Tag.
Attributes.
Text (Character Data).
Entity References.
Comments.
Processor Instructions.
Conclusion.


6. XML Validation: DTD.

Declaration: Entities, parameters, notations, namespaces.
Purpose of DTD.
Valid XML and Well-Formed XML.
DTD Declarations.
Entities.
Namespace.
Conclusion.


7. HTTP Connection.

Transaction: Request/response, GET, POST, load, variable scope.
Characteristics of HTTP.
Structure of HTTP.
Loading Data from a File.
Making a Self-Loading High Score Display.
Object-Oriented Implementation.
Data File.
Flash Download Security.
Conclusion.


8. XML Connection.

Download: XML files, ActionScript parser, debugger, DOM.
Downloading XML.
XML.load.
Debugging Flash.
Event-Driven Functionality.
Conclusion.


9. Recursive Approach.

Recursion: See Chapter 9.
Event-Driven Code.
Recursive Design.
Recursion.
Recursion in Practice.
Graphic XML Browser.
Interactive Node Viewer.
Conclusion.


10. XML Server.

Two tier: Server-side options, PHP, HTTP header variables.
XML Online.
Dedicated XML Server.
Middle-Tier Solutions.
PHP Basics.
PHP and XML.
XML-Driven Flash Client.
Conclusion.


11. Database Fundamentals.

DBMS 101: Purpose, technology options, relational, rows, columns, keys, joins.
Background.
Advantages of a DBMS.
Advantages of SQL.
Keys.
Conclusion.


12. SQL Syntax.

Practical DB: Building tables, data types, designing queries, getting records.
Varieties of SQL.
Prompt
Tables.
Guidelines for Building a Table.
Types of Data.
Adding Data to Tables.
Reading Records from the Table.
Conclusion.


13. Serving from SQL.

Middle tier: PHP and MySQL, MySQL/functions, results tables.
Connecting to a Database.
Interaction with a Database.
Parsing Commands.
Fetching a Row.
Trial-and-Error Approach.
Scalable Alternative.
Conclusion.


14. XML Upload.

Upload: ActionScript and PHP, HTTP, XML as HTML, XML in browser.
Flash Client.
Uploading to PHP.
Conclusion.


15. Two-Way XML.

Roundtrip: Object exchange, PHP parsing, expat, event-based parser, packet sniffing.
Event-Driven Parsing.
Building the PHP Parser.
Conclusion.


16. Cookies.

Persistence: ActionScript parsing, DOM-based parser, setting cookies, reading cookies.
ActionScript XML Objects.
Stateless Persistence.
Conclusion.


17. Three Tiers.

Three tier: Database, application, client; a flexible system.
Database.
Flexible Middle Tier.
Client Tier.
Conclusion.


18. Flash to the World.

Proxies: Domain perimeter, security, escape, RSS, newsfeeds, content browsing.
Domain Perimeter.
PHP Proxy.
Client.
RSS File.
RSS Browser.
Conclusion.


19. XML Sockets.

Realtime: Socket programming, ports, streaming XML, single-user communications.
Advanced Socket Programming.
XMLSocket.
Simple Socket System.
Simple Socket Server.
Conclusion.


20. Multiplexed XML Sockets.

Multisockets: Scalable, stream servers, multi-user environments, live peer Connections.
Chat.
Client with History.
Multiclient Server.
Beyond PHP.
Conclusion.
End Note.
Upload: ActionScript and PHP, HTTP, XML as HTML, XML in browser.


Appendix A: Microsoft Compatibility.

MS: XML in ASP, MSXML, PHP on IIS
ASP Code with Flash.
IIS and PHP.


Appendix B: Scalable Vector Graphics (SVG).

SVG: Flash without Flash, beyond the swf file


Appendix C: Tools and Sources.

Debuggers, editors, web sites, books, newsgroups, conferences.
Network Tool.
Servers.
XML Tools.
PHP Tools.
MySQL Tools.
Flash.

商品描述(中文翻譯)

這本書是一本非常出色的培訓手冊,可以將具有腳本技能的網頁開發人員或Flash設計師引入全新的編碼世界。--Christopher Ian Smith, XML Developer, RespondTV.com

這是任何Flash開發人員必讀的書籍。--John Paul Rawlins, Editor, FlashNewz.com

《Flash and XML》向設計師和開發人員展示如何整合這兩種強大的技術並創建動態網站。通過這本易讀的指南,您可以將Flash提升到更高的水平,將ActionScript與XML進行接口。讓您的Flash項目具有動態內容、後端數據庫、基於服務器的應用程序、點對點等功能。

《Flash and XML》是一本教程,讓您快速掌握這兩種技術,提供清晰簡潔的解釋。此外,本書還介紹了一些重要的網絡技術,包括PHP、MySQL和sockets。它展示了如何使用這些技術創建多層次、互動式系統,並訪問互聯網的全部資源。

示例項目(問答遊戲、XML瀏覽器、簡單聊天)展示了Flash和XML的能力,並演示了重要的概念、方法和技巧。

附帶的網站(http://www.FlashandXML.com)包含書中引用的所有源代碼,以及更新、討論組和其他資源的鏈接。

《Flash and XML》包含豐富的示例、基於經驗的技巧和足夠的理論,是一本一站式的資料來源,將指導您開發不僅具有動畫、互動和強大功能,而且非常實用的網站。

具體涵蓋的主題包括:
- Flash架構
- ActionScript技巧
- Flash開發人員的XML詳解
- DTD規範
- 網絡請求和響應:HTTP
- 使用PHP進行服務器腳本編寫
- 基本SQL語法
- 設計MySQL數據庫
- 通過XML和PHP將數據從MySQL傳輸到Flash
- Cookies
- 封包嗅探器
- 越過域邊界
- XML Sockets和流數據
- Flash中的多用戶通信

目錄:
前言
為什麼選擇這本書,誰應該閱讀它
致謝
1. Flash基礎
開始:按鈕、圖形、文本、聲音、腳本
Flash的背景
實用的Flash
事件驅動的圖形
構建按鈕
構建圓形
製作關鍵幀
構建響應
完成功能
結論和展望

2. FlashActionScript:對象和事件
核心概念:面向對象、事件處理程序、動態文本
面向對象的概念
面向對象理論與ActionScript現實
Flash對象
可編程按鈕
數據封裝
結論

3. 更多ActionScript:數據驅動界面
實用工作:瘦客戶端、智能圖形元素、暴露數據結構
數據驅動的決策
數據驅動的一切
隔離數據
動態創建圖形
多個問題
結論

4. XML基礎
大局觀:靈感、演變、美學、承諾
XML背景
XML的工作原理
設計數據
結論

5. XML結構
定義:元素、名稱、標籤、屬性、內容、標記等
元素
名稱
開始標籤
結束標籤
屬性
文本(字符...)