Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 238
to keyframes by their frame number, you refer to them by their label. So, even if
you move your destination keyframes as you edit, the labels remain with their
keyframes. To reference frame labels in ActionScript, you must enclose them in
quotation marks. The command gotoAndStop("label1") makes the playhead go
to the keyframe with the label called label1.
1 Select frame 10 on the content layer.
2 In the Properties inspector, enter label1 in the Label Name field.
A tiny flag icon appears on each of the keyframes that have labels.
3 Select frame 20 on the content layer.
4 In the Properties inspector, enter label2 in the Label Name field.
5 Select frames 30 and 40, and in the Properties inspector, enter corresponding
names in the Label Name field: label3 and label4.
A tiny flag icon appears on each of the keyframes that have labels.
6 Select the first frame of the actions layer and open the Actions panel.
Adobe FLAsh ProFessIonAL Cs6 CLAssroom In A book
229