... title,
author, publisher, and ISBN. For example: Developing iOS Applications with Flex
4. 5 by Rich Tretola (O’Reilly). Copyright 2011 Rich Tretola, 978-1 -44 9-30836-0.”
If you think your use of code ... . . . . . 47
Accelerometer 47
GPS 49
Camera UI 52
Camera Roll 57
Microphone 60
Multitouch 62
GestureEvent 62
ix
www.it-ebooks.info
TransformGesture 65
Busy Indicator 6...
... title,
author, publisher, and ISBN. For example: Developing Android Applications with Flex
4. 5 by Rich Tretola (O’Reilly). Copyright 2011 Rich Tretola, 978-1 -44 9-3 053 7-6.”
viii | Preface
If you feel your ... publisher:
O’Reilly Media, Inc.
10 05 Gravenstein Highway North
Sebastopol, CA 9 54 7 2
800-998-9938 (in the United States or Canada)
707-829- 051 5 (international or loca...
... and have it
update all menus whose checked state you do monitor, as shown in Example
5 -4.
Example 5 -4. Adding Toggle menus to xFly
<menubar id="appbar">
<menu label="File"> ... sample, you can add this
functionality with a few simple updates. In the xfly.js file in the xFly
package, add the function defined in Example 5- 3
.
Example 5- 3. Addi...
... JavaScript that should be executed when
that event is triggered. Example 5- 5
shows some basic button activation
events.
Example 5- 5. Basic event handler attributes
<window onload="dump('this ...
http://www.w3.org/DOM/.
5. 3. Adding Scripts to the UI
Once you are comfortable with how JavaScript works in the context of the
user interface layer and are familiar with...
... Chapter 5. Scripting Mozilla- P3
5. 3.3. Changing an Element's CSS Style Using JavaScript
Much of what makes the Mozilla UI both flexible and programmable is its ... components and the application
services they provide to the interface is shown in Figure 5 -4
.
margin : 50 px;
}
You can call setAttribute in your script to hide the button at runtime.
<script> ...
ma...
... Chapter 5. Scripting Mozilla- P4
Figure 5 -4. How XPConnect fits into the application model
In Mozilla, XPConnect is the ... letting you
focus on creating your Mozilla application without having to implement
XPCOM nsIFile objects manually from your script.
5. 5.1 .4. Using the FileUtils class
To create an instance of ... only once to use its members
and handle local files robustly...