Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now let's talk about applying accessibility to text fields. If you're following along I'm working in 03_Text_Fields.fla, in the Chapter 10 folder, in the Exercise Files folder. On the stage in this file are three text fields. The top text field is the Static text field. Static text fields are not made accessible in Flash files. If you have a Static text field selected and you choose Window, Other panels, Accessibility for example, you get a message that the current selection cannot have accessibility applied to it. The second text field on the stage is the Dynamic text field. Notice that it also has an instance name lynda_txt.
If you're going to make a Dynamic or Input text field accessible, that text field needs to have an instance name. If the text file doesn't have an instance name and you make it accessible, Flash will create an instance name for you. So to make a Dynamic text field accessible, in Accessibility panel you can click the Make object accessible button, then you can type the text in the Description field, that is a description of that text field. This description is the information that is inside the text field. So what I'm going to do is just write the exact information that is inside of this text field, which is Lynda.com.
The Description field gets read by screen readers. Tab and Index refers to the tabbing order of text fields. So we'll give this a tab index of one, specifying, this is the first text field in our Tab order. So let's select the Input text field on the stage. Notice that it has an instance name as well as input_txt. I have the Make object accessible box checked in the Accessibility panel and here we can give the text field a name. So let's say we wanted to build a form and this field accepted the users name. So you can type name and then for description we can type Enter your name here.
The Shortcut field associates an object with the keyboard shortcut and is applicable to Input text fields and buttons and movie clips. Placing a shortcut in this field does not directly associate the object with that keyboard shortcut. You actually have to specify what happens when the user presses that keyboard shortcut in ActionScript and you do that in the same way that you specify any keyboard shortcut. If you want more information about working with key presses, you can look at the other Lynda.com ActionScript 3.0 titles.
For Tab index for this field we'll just enter two. And there's a look at adding accessibility to text fields. If you'd like more information about accessibility and Flash you can press F1 on your keyboard or choose Help, Flash Help and search for Accessibility. In Flash Help, you can look up Creating accessible content and Flash will tell you what else you can do to make your Flash movies accessible.
Get unlimited access to all courses for just $25/month.Become a member
58 Video lessons · 59303 Viewers
61 Video lessons · 92241 Viewers
82 Video lessons · 104072 Viewers
56 Video lessons · 106806 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.