Adobe AIR in Action
Adobe AIR in Action JOSEPH LOTT KATHRYN ROTONDO SAMUEL AHN ASHLEY ATKINS
MANNING Greenwich (74° w. long.)
For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. Sound View Court 3B fax: (609) 877-8256 Greenwich, CT 06830 email:
[email protected]
©2009 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed without elemental chlorine.
Manning Publications Co. Sound View Court 3B Greenwich, CT 06830
Development editor: Copyeditor: Typesetter: Cover designer:
Nermina Miller Benjamin Berg Dottie Marsico Leslie Haimes
ISBN 1-933988-48-7 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 14 13 12 11 10 09 08
contents preface xi acknowledgments xiii about this book xv
1
Introducing Adobe AIR 1.1
1
Anatomy of Adobe AIR
2
Developing for a runtime environment 2 Why build desktop applications? 3 Exploring AIR possibilities 4 ■
■
1.2 1.3
Running AIR applications 5 AIR application security and authenticity Understanding AIR application security application authenticity 7
1.4 1.5
6
■
6 Ensuring
Building AIR applications 9 Introducing AIR application descriptors
10
The application element 11 The id element 11 The version element 11 The filename element 11 The initialWindow element 12 The name element 13 The title and description elements 13 The installFolder element 14 The programMenuFolder element 14 The icon element 14 The customUpdateUI element 15 The fileTypes element 15 ■
■
■
■
■
■
■
■
■
■
v
■
vi
CONTENTS
1.6
Building AIR applications using Flex Builder
15
Configuring a new AIR project 16 Creating AIR project files 17 Testing the AIR application 17 Creating an installer 18 ■
■
1.7
■