Академический Документы
Профессиональный Документы
Культура Документы
White Master
Mihai Corlan
Platform Evangelist, Adobe
gotoAndSki(), June 2010
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Phones: Motorala Droid, HTC Desire, Google Nexus One (ARMv7 processor)
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Multi-Touch
If no physical keyboard then the virtual one is bring on for text input fields
Accelerometer input
Accelerometer class allows developer to read acceleration values on X,Y, and Z axes
Accelerometer.isSupported
flash.events.StatusEvent
flash.events.AccelerometerEvent (UPDATE)
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Screen Orientation
Stage object dispatches a StageOrientationEvent object when the orientation of the screen
containing the stage changes
stage.orientation
StageOrientationEvent.ORIENTATION_CHANGING
StageOrientationEvent.ORIENTATION_CHANGE
Geolocation
Geolocation class
geoLocation.addEventListener(GeolocationEvent.UPDATE, handleLocationRequest);
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Keyboard.MOBILE_BACK_KEY
Keyboard.MOBILE_MENU_KEY
Keyboard.MOBILE_SEARCH_KEY
Full-Screen AS-only
stage.displayState = StageDisplayState.FULL_SCREEN;
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
navigateToURL(new URLRequest("tel:
+ 00407668));
navigateToURL(new URLRequest("sms:
+ 00407668);
navigateToURL(new URLRequest(http://corlan.org));
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Optimizations
Smart Rendering
Sleep Mode
Flash content thats not visible to the user will not be rendered and will receive limited CPU
time
The player will be put to sleep along with the device to conserve power
Out-of-Memory Management
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
What languages/frameworks
For browser you should stick to ActionScript projects. While Flex 4 works in
browser, you might not get the performance you are looking for
For AIR I found Flex 4 framework could be a good choice. Test for your
specific use case because your mileage could vary
http://dgrigg.com/post.cfm/04/28/2010/Alpha-Release-of-Skinnable-Minimal-Components
http://blog.kevinhoyt.org/?p=548
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
Android SDK
This oers the command line tools necessary for installing/uninstalling APK
files, displaying the Console, screen capturing and so on
http://developer.android.com/sdk/
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
http://labs.adobe.com
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
10
adb devices
This command should list your device
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
11
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
12
<application xmlns="http://ns.adobe.com/air/application/2.5">
<supportedProfiles>mobileDevice</supportedProfiles>
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
13
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
14
java -jar /Users/mcorlan/Desktop/Android/adt.jar -package -target apk -storetype pkcs12 -keystore /Users/mcorlan/Desktop/
Android/mcorlan2.pfx -storepass 12cor13 install.apk main-app.xml main.swf
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
15
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
16
You can use Device Central CS 5 for testing your Flash Application
In Device Central you add a Nexus One profile and load the SWF
Then you can use the emulator for testing the app on the phone, including
the accelerometer, keyboard
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
17
Resources
http://www.webkitchen.be/package-assistant-pro/
http://flashmobileblog.com
http://corlan.org
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
18
Q&A
Replace with
a graphic
White Master
Thank You!
http://corlan.org
Twitter: mcorlan
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
19
Flash Builder 4
Standard
Flash Builder 4
Premium
ColdFusion
Builder
$249 / $99
$699 / $299
$299
175 / 69
Y30000 / Y12000
519 / 229
Y85000 / Y36000
215
Y34000
Standalone or included in
ColdFusion Builder
Standalone or included in
Flash Builder 4 Premium
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
20
Copyright 2010 Adobe Systems Incorporated. All rights reserved. Adobe confidential.
21