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
Watching:

Adding interaction


From:

Flash Catalyst CS5 Essential Training

with Mordy Golding

Video: Adding interaction

We're creating a really cool widget. It's an interactive game that we can put on our web site. So far, we've taken artwork from Illustrator, brought it into Flash Catalyst, created components, and we've created separate pages. The pages tell you whether you have lost, won or are about to start playing the game. However, there's no logic yet. We haven't really specified what happens when you click on a button, and how you get to win or lose the game. Specifically, we want to make it so that when somebody interacts with this widget, when they click on one of the flavored bottles, that action will trigger a move to a different page.
Expand all | Collapse all
  1. 9m 24s
    1. Welcome
      1m 29s
    2. Key concepts
      4m 33s
    3. When should I use Flash Catalyst?
      2m 51s
    4. Using the exercise files
      31s
  2. 33m 12s
    1. Creating a new project
      5m 14s
    2. Defining components
      6m 26s
    3. Adding pages
      5m 41s
    4. Adding interaction
      6m 20s
    5. Adding transitions
      7m 12s
    6. Publishing options
      2m 19s
  3. 21m 37s
    1. Planning your project
      8m 11s
    2. Starting your project in Illustrator
      4m 9s
    3. Starting your project in Photoshop
      4m 22s
    4. Starting your project in Fireworks
      3m 10s
    5. Starting your project in Flash Catalyst
      1m 45s
  4. 30m 55s
    1. Understanding components
      5m 14s
    2. Creating a button component
      7m 10s
    3. Creating a checkbox component
      3m 55s
    4. Creating a radio button component
      5m 10s
    5. Creating a toggle button component
      2m 4s
    6. Creating a text input component
      1m 35s
    7. Creating horizontal and vertical slider components
      2m 46s
    8. Creating horizontal and vertical scrollbar components
      3m 1s
  5. 31m 55s
    1. Using the drawing and selection tools
      5m 52s
    2. Setting object properties
      4m 48s
    3. Importing artwork
      2m 27s
    4. Editing artwork in Illustrator
      6m 29s
    5. Editing artwork in Photoshop
      4m 27s
    6. Working with text
      3m 39s
    7. Optimizing artwork
      4m 13s
  6. 28m 56s
    1. Understanding pages and layers
      9m 50s
    2. Editing pages and states
      7m 24s
    3. Using grids, guides, and rulers
      1m 40s
    4. Aligning and arranging objects
      2m 27s
    5. Moving elements between pages and states
      4m 33s
    6. Using the Library panel
      3m 2s
  7. 54m 43s
    1. Understanding interaction types
      8m 24s
    2. Creating conditional interactions
      3m 6s
    3. Understanding the timeline
      7m 40s
    4. Creating smooth transitions
      7m 44s
    5. Defining Move transitions
      3m 33s
    6. Defining Resize transitions
      3m 53s
    7. Defining Rotate transitions
      2m 53s
    8. Defining Rotate 3D transitions
      3m 35s
    9. Adjusting basic timing
      5m 57s
    10. Creating an action sequence
      7m 58s
  8. 18m 11s
    1. Creating Flash video files
      3m 32s
    2. Placing video into a project
      3m 51s
    3. Controlling video playback
      3m 51s
    4. Adding sound effects
      3m 17s
    5. Integrating Flash content
      3m 40s
  9. 25m 53s
    1. Using a Data List to define repeating elements
      4m 11s
    2. Creating a basic Data List pt. 1: Building the components
      5m 31s
    3. Creating a basic Data List pt. 2: Adding the data
      3m 8s
    4. Planning a complex Data List
      1m 57s
    5. Creating a complex Data List pt. 1: Building the components
      6m 33s
    6. Creating a complex Data List pt. 2: Adding the data
      4m 33s
  10. 12m 14s
    1. Publishing an SWF file to view locally or offline
      2m 30s
    2. Publishing an SWF files to upload to the web
      2m 35s
    3. Integrating an SWF file into a web page with Dreamweaver
      2m 25s
    4. Integrating an SWF file into a web page with an HTML text editor
      2m 48s
    5. Publishing an Adobe AIR file
      1m 56s
  11. 7m 52s
    1. Creating custom components
      4m 27s
    2. Working with Library Packages
      1m 47s
    3. Using the Code view in Flash Catalyst
      1m 38s
  12. 22s
    1. Goodbye
      22s

please wait ...
Watch the Online Video Course Flash Catalyst CS5 Essential Training
4h 35m Beginner Apr 12, 2010

Viewers: in countries Watching now:

In Flash Catalyst CS5 Essential Training, author Mordy Golding demonstrates how to create and publish fully interactive Flash (SWF) micro sites, widgets, portfolios, and applications from static Photoshop, Illustrator, and Fireworks artwork—all without writing code. The course covers planning a project, importing and organizing assets, creating interactive components, defining repeating data lists, and publishing final projects. Exercise files are included with the course.

Topics include:
  • Organizing a Flash Catalyst project with layers and pages
  • Roundtrip editing with Photoshop and Illustrator
  • Sharing artwork across pages and states
  • Creating data lists for repeating elements in the Design-Time Data panel
  • Defining conditional parameters for an interaction
  • Integrating audio and video
  • Triggering state changes with interactions
  • Creating custom components
  • Exporting to SWF or AIR
  • Placing a SWF file into an HTML page on a web site
Subject:
Web
Software:
Flash Catalyst
Author:
Mordy Golding

Adding interaction

We're creating a really cool widget. It's an interactive game that we can put on our web site. So far, we've taken artwork from Illustrator, brought it into Flash Catalyst, created components, and we've created separate pages. The pages tell you whether you have lost, won or are about to start playing the game. However, there's no logic yet. We haven't really specified what happens when you click on a button, and how you get to win or lose the game. Specifically, we want to make it so that when somebody interacts with this widget, when they click on one of the flavored bottles, that action will trigger a move to a different page.

In Flash Catalyst, we refer to this as an Interaction. An Interaction makes something happen inside of your project. If you've taken the time to really think about your project in advance, and if you've named all of your pages, this is probably going to be one of the easiest parts of creating this project. In Flash Catalyst, we define all of our interactions through the Interactions panel which is right here. First, let's decide which of these flavors are going to result in a winner. I'm thinking about rosemary. So I'm actually going to go ahead now and click on that bottle to select it first.

And then I'll come here to the Interactions panel and I click on this button here called Add Interaction. This brings up now a dialog box, where I can specify exactly what happens when somebody interacts with that button. The first pop-up over here allows me to identify what action on the user's part triggers this Interaction. I can choose On Click, On Mouse Down, On Mouse Up, On Roll Out or On Roll Over. In this case here, I'll choose On Click. That way when somebody clicks on the button, I want something to happen.

What do I want to happen? Well, I can choose to Play Transition to another state. Since we want rosemary to be the winning choice, I will choose from the Choose State pop-up, the Winner state. This is where it becomes obvious that naming your pages is really important. If I had kept things as Page1, Page2 or Page3, this can be a little bit confusing. But I'll choose Winner, and I can also choose exactly when that happens. For example, do I want that button to be active at any state? Well, probably not.

So in this case here, I want it to only happen when I am in the PlayGame state. Now I'll click OK to add that Interaction. Now, let's add interactions for the other two buttons. It might be easier to select these elements from the Layers panel, so I'll close the Results layer, open up the Bottles layer, and I'll click on the next Button over here which is the Mandarin Orange flavor. In the Interactions panel, I'll click to Add an Interaction, On Click, I want to Play Transition to a State. Which state? Well, in this case here they are going to be a Loser.

And again, I'll specify this happens only in the PlayGame state and I'll click OK. Finally, I'll choose to the Jalapeno flavor and I'll do the same. Add Interaction, choose State to the Loser state, when in the state of PlayGame and click OK. One of the things that I really like about Flash Catalyst is this pure and simple menu-based control. Let's specify Interactions for the other buttons in our project. Let's switch to the Winner page. We want to make it so that when they click on the Learn More button, it takes them to the web site.

To select that button, I'll come over here to the Results layer, reveal the contents of the Winner layer, and click on the Button down over here to select it. Next, I'll Add an Interaction, but this time, On Click, I don't want to play a transition to a state; instead, I want to Go To URL. When I choose this option, I have a field here where I can actually specify a different URL. I'll type in, let's say http ://, Let's put in right now, http://www.lynda.com just for now.

And I can also choose to open that in a new window. I'll click OK to accept that. And let's talk for a moment about the Submit button. Normally, I'd need to have a script to actually create some kind of Submit function online, and as a designer, I don't know how to do that. However, the component itself is a regular button. So what I could do is I could hand this file off to a developer, and they could write the necessary script for me. It's just another way that designers and developers can work easily with each other when using Flash Catalyst.

Let's take a look at the elements that are on the Loser page. I'll use the Layers panel here to select those elements. Let me go over here to the Loser folder, click on this Button right here for Learn More, Add an Interaction which will On Click Go To a URL and I'll specify a web site again. I can choose to open it in A new window, and I'll click OK. Now for the Play Again button, I simply want them to return back to page one. So I'll select that button, and I'll add an interaction that on click, I want to play a transition to state. Which state? Back to the PlayGame state.

Next, I'll click OK and let's go back to the PlayGame state as I see it right here. Before we test this, let's go ahead and save our file. I am going to choose File > Save As. I'll save this one as olive_game4, and I'll click Save, and then I'll go ahead and choose File > Run Project to test this in our Web browser. Notice now that when I mouse over these buttons, they light up as we specified, but when I click on them, they are actually functional. If I click on Jalapeno, I'll see that I have lost the game.

Let me try to play again. I click on the Play Again button. I come back to the original state. I'll try the Mandarin Orange flavor. No, that's not the right one either. I can choose Play Again, and if I can click on the Rosemary flavor, that's the right answer. I can click on this field here and actually type in my e-mail address, and while the Submit button is not functional yet, I can click on the Learn More button to actually open up lynda.com. Let me close this browser window though and go back to this project one more time. In fact, I'll choose to Reload it here inside of my window because I want to focus on one other aspect or element of this project.

You see that when I click on any of these buttons, the transition goes directly from one page to another. From a design perspective, I'd really like to have some kind of expressive motion happen between these two states of my design. To do that, I'll need to create something called a transition, and we'll cover that in our next movie.

Find answers to the most frequently asked questions about Flash Catalyst CS5 Essential Training .


Expand all | Collapse all
please wait ...
Q: In Flash Catalyst, is it possible to control two sound sources being played at the same time? For example, the main audio will take priority, and the secondary audio will only be played at 20% (or any user defined percentage) of the main audio?
A: In the 1.0 version of Flash Catalyst, this is not possible.
 
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 Catalyst CS5 Essential Training.

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


OK

Upgrade to View Courses Offline

login

With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

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:

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.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts.
lynda.com provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now
 

A trusted source for knowledge.

 

We provide training to more than 4 million people, and our members tell us that lynda.com helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

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.