Are you new to game development? Struggling to find your footing in the ActionScript game development world? So am I. Although ActionScript and programming are not new to me, game development and gaming in general are. In my blog I’ll be exploring how to get a game going, what kinds of existing games are out there, cutting edge technologies, and how various technologies work together towards a great gaming experience.
Come along for the ride, and please share your experiences and insights! http://actionscriptandotherthings.wordpress.com/
Optimizing Performance for the Adobe Flash Platform contains a treasure trove of tips on less obvious performance enhancements. For example, chapter 3, “Minimizing CPU usage”, highlights the following CPU management features:
- Pause and resume SWF files based on screen exposure: This is an automatic feature in Flash Player since version 10.1. Flash Player minimizes processing when SWF content goes off-screen.
- Instance management: This feature introduced the
hasPriority HTML parameter. By default, Flash Player doesn’t start SWF content that is not visible. You can override this behavior in most cases by using the
- Sleep mode: On mobile devices, Flash Player and AIR detect when the device backlight goes into sleep mode. When this event occurs, rendering of SWF content stops, and frame rates drop to 4fps. Because the frame rate stays above zero, all open data connections can remain open.
- Freezing and unfreezing objects: You can use
ADDED_TO_STAGE events to keep objects that are no longer in the display list from consuming unnecessary CPU cycles.
- Activate and deactivate events: By using events to detect when your application is activated or deactivated, you can reset the frame rate, freeze or unfreeze objects, or perform other CPU optimizations.
- Mouse interactions: Detecting mouse interaction on many objects simultaneously can be CPU-intensive. You can reduce that overhead by disabling mouse interactions on objects that do not respond to mouse events.
- Timers versus
ENTER_FRAME events: To execute code at specific intervals you can choose between a timer or
ENTER_FRAME events. The optimal choice for your situation depends on a number of factors, such as whether your application uses animation.
- Tweening syndrome: Minimize the use of tweens, especially for content intended for low-performance mobile devices.
Visit the Optimization Guide to find out more about these topics and many others, including memory management, efficient use of the ActionScript language, rendering, networking, and database access.
Problems building and debugging the Starling example on Adobe Developer Connection? This blog posting might help.
The Flash Player 11/AIR 3.0 (Serrano) release fulfills a long-standing developer request by introducing a native ActionScript JSON API. With this API, you can import and export objects using JSON encoding. Native JSON functionality correlates closely with the ECMA-262 (5.1 Edition) specification for JSON. Because of this, its syntax is somewhat different from the third-party as3corelib JSON library. You can find out more about these differences in community member Todd Anderson’s blog posting at the Infrared5 company blog.
The API itself consists of a top-level class named JSON. This class provides two methods:
stringify() for encoding, and
parse() for decoding JSON strings. The JSON feature also supports
toJSON() member functions in any class. Visit the official documentation at these locations:
ActionScript 3.0 Reference
ActionScript 3.0 Developer’s Guide
The prerelease ActionScript 3.0 Reference for Flash Player 10.3 (“Wasabi”) Beta is now available. You can find this documentation here.
The Wasabi project represents the convergence of Flash Player and AIR streams into a single quarterly update.
Highlights include the following new features and classes:
Acoustic echo cancellation (Flash Player)
Exclude unwanted echo artifacts from microphone audio captures.
Media measurement (Flash Player)
Implement media usage analysis on the Flash Player platform rather than as a player plugin. Collect stats independently of the video player being used.
HTMLLoader updates (AIR)
The HTMLLoader class now dispatches
locationChange events with a
LocationChangeEvent object as the payload.
Important! To see the beta classes, remember to set your Runtimes filter to include Flash Player 10.3 and earlier.
Please use the Comments area at the bottom of each page to give us feedback on this beta documentation.
Flash Player 10.3 beta software is ready for download at Adobe Labs! Flash Player 10.3 provides key features for developers, content publishers, and end-users. Adobe urges the developer community and technically savvy users to test these new features, which include:
- Media measurement — Implement your own video analytics.
- Acoustic echo cancellation — Create real-time online collaboration experiences that provide high-quality audio without requiring a headset.
- Integration with browser privacy controls for managing local storage — Users can easily clear local storage from the browser settings interface.
- Native Control Panel — New streamlined controls make it easier to manage Flash Player privacy, security, and storage settings.
- Auto-update notification for Mac OS — Mac users: Get automatic notification of Flash Player updates on Mac OS, and stay current with the latest capabilities.
Flash Player 10.3 beta supports these features on the desktop. Adobe plans to bring them to mobile devices in the future.
Watch upcoming entries on our blog for more detailed descriptions. Also, stay tuned for a new posting of the Adobe ActionScript 3.0 Reference that describes Flash Player 10.3 APIs.
See the official FAQ: http://icomm.corp.adobe.com/Library/?pid=55466
Does your Flash Player application feature a video player? And if so, are you looking for a way to improve the video performance?
For several releases, Flash Player has supported GPU hardware acceleration for decoding H.264 videos. However, the rest of the rendering process still required the CPU. Flash Player 10.2 brings hardware acceleration support full circle by introducing the StageVideo API. Stage video lets you apply hardware acceleration to the entire video decoding and rendering process, thus freeing up CPU and memory resources.
A StageVideo API has previously been available only to AIR 2.5 for TV application developers, and through the Flash 10.1 Beta for Google TV. The StageVideo API in Flash Player 10.2 expands on these existing classes. It adds events for handling behavior in a browser context.
To learn how your application can take advantage of this new feature, see the following documentation:
Use your programming skills and web design know-how to help the US government improve its websites!
Adobe is a platinum sponsor for a contest called Design for America. The goal of the contest is to show government agencies better ways to present information to the public. Winners get cash awards and will have their entries showcased at the Gov 2.0 Expo in May in Washington, DC.
For details, visit this site: