Chapter 6

29
Chapter 6 Preparing and Publishing Applications

description

Chapter 6. Preparing and Publishing Applications. Chapter 6 Lessons. Publish movies Reduce file size to optimize a movie Create a preloader Publish AIR applications Create and publish applications for mobile devices. Prepare and Publish Movies. Introduction - PowerPoint PPT Presentation

Transcript of Chapter 6

Page 1: Chapter 6

Chapter 6

Preparing and Publishing Applications

Page 2: Chapter 6

Chapter 6 Lessons

1. Publish movies 2. Reduce file size to optimize a movie 3. Create a preloader4. Publish AIR applications5. Create and publish applications for mobile

devices

Page 3: Chapter 6

• Introduction– Flash provides several features that help you

generate the files that are necessary for delivering movies successfully to the target audience over the Internet

– Adobe provides you with Device Central, a program that allows you to preview and test mobile content on an assortment of mobile devices

Prepare and Publish Movies

Page 4: Chapter 6

• Introduction– It is important that you keep the file size down

when delivering content over the Internet, so that movies play smoothly regardless of the user’s connection speed

– Adobe provides a version of its Flash Player, called Flash Lite, that is specifically developed to optimize the playing of Flash movies using mobile devices

Prepare and Publish Movies

Page 5: Chapter 6

Publish Movies• The Flash Publish feature generates the files

necessary to deliver the movies on the web.• When you publish a movie using the default

settings, a Flash (.swf) file is created that can be viewed using the Flash Player.

• An HTML file is also created.

Page 6: Chapter 6

Flash Player version

Click to select a different profile

Selected formats

Publish Movies

Action Script version

Page 7: Chapter 6

• The GIF, JPEG, and PNG formats create still images that can be delivered on the web.

• The projector formats in the Publish Settings dialog box are executable files.

Publish Movies

Page 8: Chapter 6

Available Flash tab settings:– A profile which is a set of

selected settings– The target version of the Flash

Player– The version of ActionScript– The quality for JPEG images

and audio– Other options, such as

compressing the movie

Publish Movies

Page 9: Chapter 6

• The GIF tab settings allows you to change:• The dimensions in pixels• Playback as a static image or an

animated GIF• Loop options• Appearance settings

Publish Movies

Page 10: Chapter 6

• You can use the Publish Preview command on the File menu to publish a movie and display the movie in either your default browser or the Flash Player.

• You can use this command to view HTML, GIF, JPEG, PNG, and Projector files.

Publish Movies

Page 11: Chapter 6

Reduce File Size To Optimize a Movie

• Before you publish a movie, be sure you have maximized its optimization in order to improve its delivery.

• Remember that users are turned off by long waits to view content, jerky animations, and audio that skips.

Page 12: Chapter 6

• As you develop Flash movies, the following guidelines are good to keep in mind.– Use symbols and instances for every element

that appears in a movie more than once– Use tween animations rather than frame-by-

frame animations when possible

Reduce File Size To Optimize a Movie

Page 13: Chapter 6

– Use movie clips rather than graphic symbols for animation sequences

– Confine the area of change to a keyframe so that the action takes place in as small of an area as possible

– Use bitmap graphics as static elements rather than in animations

Reduce File Size To Optimize a Movie

Page 14: Chapter 6

– Group elements, such as related images– Limit the number of fonts and font styles– Use gradients and alpha transparencies

sparingly

Reduce File Size To Optimize a Movie

Page 15: Chapter 6

The Bandwidth Profiler

The Bandwidth Profiler allows you to view a graphical representation of the size of each frame

Playback head at frame 38

Stimulated bandwidthset in the View menu

Information on selected frame (38)

Reduce File Size To Optimize a Movie

Page 16: Chapter 6

• The Bandwidth Profiler provides information regarding:– Movie information: dimensions, frame rate, file

size, duration, and preload– Settings: simulated bandwidth (specified in the

View menu option)– State: number of the selected frame and size of

the contents in that frame

Reduce File Size To Optimize a Movie

Page 17: Chapter 6

• When testing a movie, you can simulate downloading Flash movies using different connection speeds.

– Dial-up: phone connection that provides a slow download speed– Broadband (DSL and cable): a type of data transmission in which a

wide band of frequencies is available to transmit more information at the same time

– T1: provides an extremely fast connection speed and is widely used in businesses

Reduce File Size To Optimize a Movie

Page 18: Chapter 6

Selecting the connection speed for a simulated download

Click, even if already checked

Reduce File Size To Optimize a Movie

Page 19: Chapter 6

• A preloader frame includes a simple animation that starts in frame 1 and loops until the rest of the movie has been downloaded.

• The purpose of the animation is to indicate to the viewer that the movie is being loaded.

Create a Preloader

Page 20: Chapter 6

The completed preloader with the animation and ActionScript

The preloader animation plays in frames 1 through 10

The startofMovie frame label in frame 11

The preloader ActionScript code in frames 1 and 10

Create a Preloader

Page 21: Chapter 6

Publish AIR Applications

• Flash provides another technology, AIR (Adobe Integrated Runtime), that creates applications that can be played without a browser.

Page 22: Chapter 6

An AIR app can be displayed on:• mobile device• stand-alone computers• the Internet and even on television sets

Publish AIR Applications

Page 23: Chapter 6

Publish Air Applications

AIR applications are cross-platform• Windows• Mac

Page 24: Chapter 6

The Publish Settings dialog box

Publish Air Applications

Page 25: Chapter 6

• Flash CS6 allows you to quickly and easily develop applications for mobile devices, such as smartphones and tablets.

• It specifically targets Android and iOS (Apple) devices.

Create and Publish Applications For Mobile Devices

Page 26: Chapter 6

There are five tabs in the Publish Settings dialog box:• General• Deployment• Icons• Permissions• Languages

Create and Publish Applications For Mobile Devices

Page 27: Chapter 6

While you can take an already developed Flash file and repurpose it for mobile devices by completing the AIR publishing process, it will not have any of the features users are accustomed to, such as pinch to zoom or swipe, unless you have specifically added these features, called gestures and events, to your Flash file.

Create and Publish Applications For Mobile Devices

Page 28: Chapter 6

• Gestures and events can be incorporated into a Flash file using Code Snippets.

• Code Snippets are small blocks of code that you apply to an object in your app or the app in general.

Create and Publish Applications For Mobile Devices

Page 29: Chapter 6

Create and Publish Applications For Mobile Devices

Code Snippets panel with the Pinch to Zoom Event