My First ACCESSIBLE Flash Movie

43
My First ACCESSIBLE Flash Movie

description

My First ACCESSIBLE Flash Movie. Course notes. Detailed course notes, a printable copy of my slides, and all the samples shown today can be downloaded from www.McClurgStudios.com/flashforward. Getting to know your speaker. - PowerPoint PPT Presentation

Transcript of My First ACCESSIBLE Flash Movie

Page 1: My First ACCESSIBLE Flash Movie

My First ACCESSIBLE Flash Movie

Page 2: My First ACCESSIBLE Flash Movie

Course notesDetailed course notes, a printable copy of my slides, and all the samples shown today can be downloaded from www.McClurgStudios.com/flashforward.

Page 3: My First ACCESSIBLE Flash Movie

Getting to know your speaker

Page 4: My First ACCESSIBLE Flash Movie

What is accessibility?

Accessibility is all about creating a level playing field where anyone can access and understand the information in your Flash movie, regardless of disability.

Page 5: My First ACCESSIBLE Flash Movie

Common DisabilitiesHearing Impairments

●Caption all audio content that provides information (spoken and unspoken).

●Avoid playing background sounds as words are being spoken.

●If background audio is essential, make it 20 decibels (4x quieter) than the foreground audio.

Page 6: My First ACCESSIBLE Flash Movie

Common DisabilitiesHearing Impairments

Audio content can make it difficult to hear a screen reader. If you have audio content, it's best to:

●Detect if a screen reader is present

●If so, don't automatically play the audio

●Instead, give the customer a button to play the audio

Page 7: My First ACCESSIBLE Flash Movie

Common DisabilitiesMotor impairments

● Use a logical tab order for the buttons in your ad.

● Don't make users chase a button across the screen.

Page 8: My First ACCESSIBLE Flash Movie

Common DisabilitiesCognitive impairments

● Give customers time to read any text you put on screen.

● Play the movie more than once.

● If you can't play the movie more than once, give the customer a replay button.

● Use the simplest language possible in all of your text.

Page 9: My First ACCESSIBLE Flash Movie

Common DisabilitiesPhoto-sensitivity

● Do not cause any part of the ad to flash (change rapidly from light to dark) more than twice per second.

● For a more detailed description of what the W3C thinks “flashing” is, see “general flash threshold” here: www.w3.org/TR/WCAG20/appendixA.html

Page 10: My First ACCESSIBLE Flash Movie

Common DisabilitiesLow vision

● Use large text

● Avoid thin or light fonts

● Don't convey information solely through color.

● Make sure the color and brightness of your text contrasts sharply with its background. To download tools for testing contrast, visit: www.visionaustralia.org.au/info.aspx?page=614

Page 11: My First ACCESSIBLE Flash Movie

Screen Readers

Page 12: My First ACCESSIBLE Flash Movie

Screen Readers

Screen Readers are programs that use a speech synthesizer or Braille device to share text content with the user.

Flash-Enabled Screen Readers:● JAWS: www.freedomscientific.com● Window-Eyes: www.gwmicro.com● Home Page Reader: www-306.ibm.com/able/solution_offerings/hpr.html

Page 13: My First ACCESSIBLE Flash Movie

Designing for Screen Readers● Screen readers only work with Flash if the customer

uses Internet Explorer for Windows.

● Screen readers can only read text

● Give “names” (descriptions) to any visual content that provides significant meaning.

● Do not change text over time except when a user clicks a button to initiate the change.

Page 14: My First ACCESSIBLE Flash Movie

Designing for Screen Readers

● Hide animated text from the screen reader and make another copy available to the screen reader.

● Interactive elements that change over time are a problem for screen readers.

● Screen readers can't see objects offstage.

● Screen readers can't see color. Black text on a black background may be invisible to the sighted, it's clear as day to a screen reader.

Page 15: My First ACCESSIBLE Flash Movie

Designing for Screen Readers

● WMODE – an attribute used to give Flash movies a transparent background when viewed in a browser. Using this attribute will make the entire movie completely invisible to a screen reader.

● “Click to Activate” is more than a nuisance to a screen reader.

Page 16: My First ACCESSIBLE Flash Movie

Taking Charge:The Accessibility Panel

Page 17: My First ACCESSIBLE Flash Movie

The Accessibility PanelEditing the Movie

● Leave everything checked.

● Do not give names or descriptions to your movie. They are not well supported.

Page 18: My First ACCESSIBLE Flash Movie

The Accessibility PanelMovie Clip Symbols

● Make object accessible – uncheck to hide the movie clip from screen readers

● Name – use to add descriptions of visual content, text alternatives for animated text, etc. Use \r and\” instead of line breaks and double quotes.

● Other fields - ignore

Page 19: My First ACCESSIBLE Flash Movie

The Accessibility PanelButton Symbols

● Make object accessible – uncheck to hide the button from screen readers

● Name – use to “label” your buttons. This is more predictable than relying on text on the button's timeline.

● Other fields - ignore

Page 20: My First ACCESSIBLE Flash Movie

The Accessibility PanelButton Symbols

Unless a button has an Up, Over and Down state,screen readers will not read the name property

eliably.

Don't Do This:

Page 21: My First ACCESSIBLE Flash Movie

The Accessibility PanelGraphic Symbols

Page 22: My First ACCESSIBLE Flash Movie

Let's Make a Movie

Page 23: My First ACCESSIBLE Flash Movie

Here's What We're Going to Build

Page 24: My First ACCESSIBLE Flash Movie

A bucket for text

1) Open a new Flash movie 200 x 300

2) Create a rectangle (1 pixel high, 200 wide) and convert it to a movie clip symbol. This will contain the text alternatives for the movie.

3) Give the movie clip an instance name.

4) Align the symbol to the top, left of the stage

5) Select the movie clip, then enter your text alternatives into the name field of the Accessibility panel.

Page 25: My First ACCESSIBLE Flash Movie

Make the ad clickable

1) Create a rectangle (299 pixels x 200 wide) and convert it to a button symbol.

2) Give the button an instance name and add ActionScript to make the button work.

3) Align the button to the top, left of the stage, then nudge it down 1 pixel.

4) While the button is selected, enter give it a description in the name field of the Accessibility panel. Something like, “Learn more.”

Page 26: My First ACCESSIBLE Flash Movie

A new stage for animation

1) Create a small rectangle. Align it to the top, left of the stage. Convert it to a movie clip symbol.

2) Give the new clip an instance name.

3) Select the clip and uncheck “Make object accessible” in the Accessibility panel.

4) Double-click the new symbol to edit it in place. Delete the rectangle. You now have a new stage to use for your animation.

Page 27: My First ACCESSIBLE Flash Movie

Go to town!

Page 28: My First ACCESSIBLE Flash Movie

What our stage can holdOur new stage can contain text, graphic symbols, movie clips, bitmaps, even video.

It just can't contain:

●Audio●Buttons●Text input fields●Or other interactive elements

So, start animating!

Page 29: My First ACCESSIBLE Flash Movie

Working in the real world

Our movie is accessible.

All our visual content is in a movie clip symbol, hidden from screen readers.

But movie clip symbols don't stream. Doh!

Page 30: My First ACCESSIBLE Flash Movie

Splitting the stage

1) Return to the main stage.

2) Copy the frame that contains our new stage.

3) Add a layer and paste the frame onto it.

4) Select each copy of the movie clip on the stage and duplicate the clip. You should now have 3 copies of the symbol in your library – the original, plus the two on the stage.

Page 31: My First ACCESSIBLE Flash Movie

Splitting the stage

1) Edit the top copy of the symbol. Delete the all layers except those that contain text.

2) Edit the second copy of the symbol. Delete all the text layers.

3) Return to the main stage. Select the symbol with the non-text elements and convert it to a graphic symbol using the Properties panel. Set it to play once and stop. Add enough empty frames to the main timeline that the animation will play once.

Page 32: My First ACCESSIBLE Flash Movie

Adding a preload

1) Add an empty frame to the end of the movie for all layers.

2) Move the keyframes for the animated movie clip and graphic symbols from frame 1 to frame 2.

3) Add your preload code to the actions layers on frame 1.

Page 33: My First ACCESSIBLE Flash Movie

Multiple Buttons

Page 34: My First ACCESSIBLE Flash Movie

Multiple Buttons

Button Row – if the hit areas of your buttons are all the same height and are vertically aligned, they should always read left to right by default. If one sticks out above the others, it will be read first.

Page 35: My First ACCESSIBLE Flash Movie

Multiple Buttons

Button Column – if the hit areas of your buttons are all left aligned, they should always read top to bottom.

Scripting tab order – Another good reason to give all symbols instance names. Controlling tab order through ActionScript is as easy as:

[instancename].tabIndex = [number]

main_btn.tabIndex = 1;secondary_btn.tabIndex = 2;

Page 36: My First ACCESSIBLE Flash Movie

Adding Sound

Page 37: My First ACCESSIBLE Flash Movie

Remember from before...

●Caption all audio content that provides information (spoken and unspoken).

●Avoid playing background sounds as words are being spoken.

●If background audio is essential, make it 20 decibels (4x quieter) than the foreground audio.

Page 38: My First ACCESSIBLE Flash Movie

Remember from before...

Audio content can make it difficult to hear a screen reader. If you have audio content, it's best to:

●Detect if a screen reader is present

●If so, don't automatically play the audio

●Instead, give the customer a button to play the audio

Page 39: My First ACCESSIBLE Flash Movie

Create a sound object

On the first frame, add this code to the actions layer:

var soundtrack_sound:Sound = new Sound();

var soundPlaying:Boolean = false;

Page 40: My First ACCESSIBLE Flash Movie

Test for screen readers

On the frame you wish the audio to start on, place this code:

if (!(Accessibility.isActive())){

soundtrack_sound.loadSound("felicetti1.mp3", true);soundPlaying = true;

}

The movie must be active for at least 2 seconds before this code is executed or it will return "false" even if a screen reader is present.

Page 41: My First ACCESSIBLE Flash Movie

A secret button...

●Select the main button and make it 1 pixel shorter.

●Copy the main button and paste it onto a new layer.

●Give it a new instance name.

●Resize it to 1 pixel high.

●Align it to the bottom of the stage.

●Select the button and enter “play soundtrack” into the name field of the Accessibility panel.

Page 42: My First ACCESSIBLE Flash Movie

Now, add this code to the actions layer on the first frame:

sound_btn.onRelease = function(){

if (soundPlaying){

soundPlaying = false;soundtrack_sound.stop();

}else{

soundPlaying = true;soundtrack_sound.loadSound("felicetti1.mp3", true);

}}

A secret button...

Page 43: My First ACCESSIBLE Flash Movie

Questions