Flash Professional CS5: Code Snippets and Templates in Depth
Illustration by John Hersey

Touring the Code Snippets panel


From:

Flash Professional CS5: Code Snippets and Templates in Depth

with David Gassner

Video: Touring the Code Snippets panel

When you first open Flash Professional CS5, you won't see the Code Snippets panel visible in any of the predefined workspaces. For example, I'm currently looking at the Essentials workspace, which includes the Properties and Library panels on the right, and the Timeline and Motion Editor at the bottom. I'll switch to the Designer workspace, and once again you won't see the Code Snippets panel visible. If you have the Welcome Screen opened, which is opened automatically when you first opened Flash Professional, and then you go to the Window menu, you also won't see the Code Snippets panel there.
Expand all | Collapse all
  1. 4m 40s
    1. Welcome
      1m 32s
    2. Understanding the prerequisites
      1m 42s
    3. Using the exercise files
      1m 26s
  2. 39m 39s
    1. Using code snippets
      4m 7s
    2. Touring the Code Snippets panel
      2m 51s
    3. Adding a simple code snippet
      3m 28s
    4. Adding a complex code snippet
      7m 45s
    5. Applying code snippets to movie clip instances
      5m 25s
    6. Showing and hiding movie clip instances
      3m 20s
    7. Handling common mouse events
      8m 1s
    8. Handling keyboard events
      4m 42s
  3. 36m 21s
    1. Adding Play and Stop actions
      5m 27s
    2. Handling the enterFrame event
      8m 5s
    3. Managing multi-scene presentations
      8m 14s
    4. Adding drag and drop
      6m 33s
    5. Rotating objects
      5m 5s
    6. Fading objects
      2m 57s
  4. 27m 14s
    1. Starting and stopping sounds
      7m 24s
    2. Showing video with FLV Player and ActionScript
      5m 15s
    3. Showing video with NetStream
      4m 19s
    4. Stopping, pausing, and resuming video
      5m 19s
    5. Seeking a cue point
      4m 57s
  5. 22m 49s
    1. Loading external SWF files
      4m 50s
    2. Adding library symbol instances to the Stage
      6m 40s
    3. Loading external images
      7m 26s
    4. Loading external text
      3m 53s
  6. 14m 36s
    1. Exploring the Code Snippets XML file
      4m 12s
    2. Modifying an existing code snippet
      3m 0s
    3. Adding a custom code snippet
      3m 41s
    4. Managing code snippet categories
      3m 43s
  7. 36m 5s
    1. Understanding template types and categories
      4m 33s
    2. Creating clickable advertising presentations
      6m 10s
    3. Reusing movie clip symbols from templates
      6m 10s
    4. Replacing content in a new file template
      6m 56s
    5. Randomizing movement in movie clip symbols
      6m 1s
    6. Scripting movement in animations
      6m 15s
  8. 18m 50s
    1. Creating a photo album
      4m 38s
    2. Creating a simple slideshow presentation
      4m 13s
    3. Creating an advanced slideshow presentation
      5m 35s
    4. Creating a desktop slideshow with Adobe AIR
      4m 24s
  9. 18m 45s
    1. Counting down dates
      3m 38s
    2. Panning a landscape
      5m 51s
    3. Revealing text with masks
      3m 48s
    4. Animating with inverse kinematics and bones
      5m 28s
  10. 42s
    1. Goodbye
      42s

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now
please wait ...
Watch the Online Video Course Flash Professional CS5: Code Snippets and Templates in Depth
3h 39m Intermediate Aug 27, 2010

Viewers: in countries Watching now:

In Flash Professional CS5: Code Snippets and Templates in Depth, David Gassner shows designers how to use Flash Professional CS5's Code Snippets panel and file templates to get started with ActionScript 3 and implement best practices. This course describes how to insert snippets into existing Flash presentations, includes a detailed explanation of the code behind the snippets, and shows how to use the many templates included with Flash Pro CS5 to quickly create customized presentations. Exercise files are included with the course.

Topics include:
  • Touring the Code Snippets panel
  • Adding simple and complex code snippets
  • Handling mouse and keyboard events
  • Starting and stopping video and sounds
  • Loading external SWF files, images, and text
  • Customizing code snippets
  • Understanding template types and categories
  • Replacing template content
  • Creating a slide show
Subject:
Web
Software:
ActionScript Flash Professional
Author:
David Gassner

Touring the Code Snippets panel

When you first open Flash Professional CS5, you won't see the Code Snippets panel visible in any of the predefined workspaces. For example, I'm currently looking at the Essentials workspace, which includes the Properties and Library panels on the right, and the Timeline and Motion Editor at the bottom. I'll switch to the Designer workspace, and once again you won't see the Code Snippets panel visible. If you have the Welcome Screen opened, which is opened automatically when you first opened Flash Professional, and then you go to the Window menu, you also won't see the Code Snippets panel there.

You can only get to the Code Snippets panel if either the Welcome Screen isn't opened or if you've created or opened a Flash presentation in the design area. So, to give you a tour of the Code Snippets panel, I'll create a new file. I'll select File > New, choose ActionScript 3.0, and click OK. Then I'll go to the menu and choose Window > Code Snippets. Once again, depending on which workspace you currently have opened, the Code Snippets panel might appear in a panel group by itself, or it might be grouped with other panels.

The Code Snippets panel has three buttons across the top labeled Add to current frame, Copy to clipboard, and then the final is the Options menu, which when you click the Down Arrow, opens up a menu of options. Within the main body of the Code Snippets panel, there are a number of categories. The Actions category includes code snippets that take particular actions. The Timeline Navigation category includes code snippets that manipulate the Timeline and so on. I'll be giving you a tour of many of these code snippets during the video series.

The Add to current frame button allows you to add a particular selected code snippet to the current frame of your timeline. You can accomplish the same thing by simply double-clicking the code snippet you want to use. Alternatively, if you don't want the code to be added automatically, you can select the code snippet and then click the Copy to clipboard button. The code will be added to the clipboard and then you can paste it wherever you want. Finally, the Options menu allows you to modify your code snippets. You can select the menu option Create a New Code Snippet, which takes you into this Create New Code Snippet dialog box.

You can also edit the code snippet's XML file, delete a code snippet, and import and export XML content that defines code snippets. I'll talk about how to customize your code snippets in a separate chapter of the video course. So, that's a brief tour of the Code Snippets panel. In the other videos of this chapter, I'll show you how to use a number of very common code snippets, both simple code snippets that execute when the playhead enters a particular frame of the timeline and object code snippets that are executed when a particular event is dispatched from a movie clip symbol instance.

There are currently no FAQs about Flash Professional CS5: Code Snippets and Templates in Depth.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Flash Professional CS5: Code Snippets and Templates in Depth.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.