g Text Version
Beauty & Self
Books & Music
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
News & Politics
Religion & Spirituality
Travel & Culture
TV & Movies

Bored? Games!
Take a Quiz
Rate My Photo

Holiday/Seasonal Cooking
Crafts for Kids
Computer Careers
Mexican Food
Autism Spectrum Disorders

All times in EST

Clairvoyance: 08:00 PM

Full Schedule
g Flash and Animation Site

BellaOnline's Flash and Animation Editor


Flash Pro CS5.5 Code Snippets and Bitmaps

Since the beginning of FlashR, it has been the standard to use vector graphics as much as possible because the Flash Player processes vector graphics better than raster. Since the introduction of mobile devices, we need to think differently about the graphics we use in our mobile projects.

Because the mobile processors have a lower performance when asked to render vector graphics, we need to use raster graphics as much as possible. But we don't need to reinvent the wheel or redraw all of our graphics. Flash CS5.5 has new methods for exporting your vector graphics as bitmaps.

The first method is to simply select the object on the stage and choose Modify - Convert to Bitmap. From this point on, you will treat your graphic like any other bitmap including editing it in Photoshop.

But you may wish to keep your graphic editable as a vector graphic as long as possible while working on your project. In this case, you can set Flash to make the change when it exports your project. You will set this in the Properties panel. From the Display section, choose Export as Bitmap from the Render options.

One of the best new features for developing mobile apps in Flash Pro CS5.5 is the new code snippets. Before this upgrade, we needed to add code manually that would work with the mobile environment. But now the new snippets in the Code Snippets panel will add the code to your document and give you instructions as to how the code works so that you can customize the code for your project. Let's take a look at some of the code snippets for mobile devices.

In the Mobile Touch Events folder we have three snippets.

Tap Event
Touch and Drag Event
Long Press Event

In the Mobile Gesture Events folder we have five snippets.

Two Finger Tap Event
Pinch to Zoom Event
Pan Event
Rotate Event
Swipe Event

In the Mobile Actions folder we have five snippets.

Swipe to Go to Next/Previous Frame and Stop
Swipe to Go to Next/Previous Frame and Play
Move with Accelerometer
Deactivate/Activate Event
Menu Key Pressed Event

In the AIR for Mobile folder we have two snippets.

Show Geolocation
Re-orient Object on Device Rotation

In the AIR folder we have seven snippets

Click to Close AIR Window
Click to Minimize AIR Window
Click to Maximize or Restore AIR Window
Drag to Move Air Window
Click to Read from a Text File
Click to Write to a Text File
Save and load Preferences

*Adobe provided a review copy to me free of charge.

Join us in the Flash forum. | Join us in the Digital Art and Design forum.


Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Twitter Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Facebook Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to MySpace Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Del.icio.us Digg Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Yahoo My Web Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Google Bookmarks Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Stumbleupon Add Flash+Pro+CS5%2E5+Code+Snippets+and+Bitmaps to Reddit


RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map

For FREE email updates, subscribe to the Flash and Animation Newsletter

Past Issues

Printer Friendly
tell friend
Tell a Friend
Email Editor

Content copyright © 2015 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.


g features
Snow Flurry Emitter in Apple Motion

Background Clips in Apple Motion Project

VideoHive Project Requirements

Archives | Site Map


Past Issues

Less than Monthly

BellaOnline on Facebook

| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2015 Minerva WebWorks LLC. All rights reserved.

BellaOnline Editor