New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Creating a Portfolio Web Site Using Flash CS4 Professional
Illustration by

Linking to web sites and email addresses


From:

Creating a Portfolio Web Site Using Flash CS4 Professional

with Paul Trani

Video: Linking to web sites and email addresses

Loading in SWF Content is fairly easy using the UILoader component, but what if you want to link to content on other sites? Well, this can be done a number of ways. And I need to do it in this about.fla file. So if I open that up, you can see that I've text in here, and quite frankly, you're probably going to have some text that you want to link out to a place on the Web. Say, for instance, if I just select this word, 'Adobe,' and I want this to link to Adobe systems site, I can select that word and in the Properties panel, down right under Options, twirl that down, if it's not already open and in the Link field, you can go ahead and type in http://www.adobe.com.
Expand all | Collapse all
  1. 1m 41s
    1. Welcome
      1m 7s
    2. Using the exercise files
      34s
  2. 24m 1s
    1. Understanding web design
      2m 44s
    2. Creating a Flash file
      3m 18s
    3. Importing a design from Photoshop
      7m 45s
    4. Optimizing the design
      10m 14s
  3. 13m 59s
    1. Dynamically loading an image
      3m 37s
    2. Loading random images
      10m 22s
  4. 47m 38s
    1. Creating menu buttons
      8m 18s
    2. Adding functionality to buttons
      8m 56s
    3. Adding navigation
      9m 45s
    4. Creating transitions
      12m 0s
    5. Simplifying code
      8m 39s
  5. 26m 11s
    1. Creating web site sections
      7m 41s
    2. Dynamically loading sections
      11m 7s
    3. Linking to web sites and email addresses
      7m 23s
  6. 29m 18s
    1. Setting up a portfolio
      12m 31s
    2. Adding functionality to thumbnails
      10m 10s
    3. Allowing for unlimited thumbnails
      6m 37s
  7. 41m 17s
    1. Benefits of using XML
      4m 42s
    2. Loading XML content
      4m 34s
    3. Sorting XML content
      7m 32s
    4. Displaying XML content
      7m 35s
    5. Using XML to create thumbnails
      8m 41s
    6. Displaying content with thumbnails
      8m 13s
  8. 25m 59s
    1. Creating and importing video
      9m 47s
    2. Adding a Full Screen button
      4m 15s
    3. Creating custom video controls
      4m 50s
    4. Adding functionality to video thumbnails
      7m 7s
  9. 9m 12s
    1. Adding audio to buttons
      5m 30s
    2. Adding audio to dynamically created buttons
      3m 42s
  10. 21m 19s
    1. Applying professional transitions
      9m 26s
    2. Creating a preloader
      8m 56s
    3. Publishing a web site
      2m 57s
  11. 3m 15s
    1. Reviewing the "corporate" Flash site
      1m 40s
    2. Reviewing the "artistic" Flash site
      1m 35s
  12. 12s
    1. Goodbye
      12s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Creating a Portfolio Web Site Using Flash CS4 Professional
4h 4m Intermediate Feb 17, 2010

Viewers: in countries Watching now:

Flash and ActionScript are ideal for creating flexible, easily updatable web sites that are both unique in design and small in file size. In Creating a Portfolio Web Site Using Flash CS4 Professional, Adobe Certified Instructor Paul Trani shows how to exploit Flash to create a web site that showcases work to clients and prospective employers. Find out how to add dynamic navigation, animation, and video to a page, and how to load, sort and display XML that enables portfolio content to be updated without opening Flash. This course is designed to take your existing tweening skills and gotoAndPlay code and walk away with a fully functional Flash site. Exercise files accompany the course.

Topics include:
  • Optimizing and publishing a Flash web site
  • Designing a professional photo or video portfolio
  • Adding button interactivity
  • Adding functionality to portfolio thumbnails
  • Displaying content with XML
  • Adding audio to portfolio presentations
Subjects:
Web Web Design Projects
Software:
Flash Professional
Author:
Paul Trani

Linking to web sites and email addresses

Loading in SWF Content is fairly easy using the UILoader component, but what if you want to link to content on other sites? Well, this can be done a number of ways. And I need to do it in this about.fla file. So if I open that up, you can see that I've text in here, and quite frankly, you're probably going to have some text that you want to link out to a place on the Web. Say, for instance, if I just select this word, 'Adobe,' and I want this to link to Adobe systems site, I can select that word and in the Properties panel, down right under Options, twirl that down, if it's not already open and in the Link field, you can go ahead and type in http://www.adobe.com.

Now if I want to open up a new browser window, I can select _blank. That way it keeps them on my site, but also serves up the information that they're after on Adobe's site. So that's done and that word is still highlighted. And probably what you're going to want to do is make it look different, so it looks like a link, so it stands out more. Currently, most of my buttons are red and that's kind of my signature color for this site. I'll change the color of that to red as well. Well, what about email addresses? Well, right down here, I have an email address.

And I want this link to link to john@johndoe.com. So I am going to select that text and in the same area under Options in the Link field, I can type in mailto: john@johndoe.com. Just like in HTML you do it the same way. It's pretty simple, just hit Return. I won't worry about the Target at all, but that's set up and the last thing I need to do for that is change the color to red. All right.

It's looking good so far, so let me just do Ctrl+Test Movie and if I click on Adobe, it opens up Adobe's site. Great! Close that. You see email. If I click on that email link, it will open up my default email client with that email address in the To field and I can type whatever I want, since they'll be emailing John@johndoe. It's done that easily and I'll close that.

Well, what about your own sort of standalone button? What if it's not text in a sentence? Well, I need to do that a little bit differently, because I need to set this up as a button, give it an instance name and then do a navigate to the URL. So I'm going to close that SWF and I'm going to open up the Timeline panel and I'm going to select New layer. I'm going to change this layer name to AS, because my ActionScript is going to go here.

Now the first thing I need to do is select this item and currently, it just says it's an instance of a Blog button, but it's really just a Movie Clip. Well, to be honest, I want to make this actually a button. Okay, so I'm just going to go ahead and do a Modify. I'm going to do a Convert to Symbol. It's the equivalent of just dragging it into my Library, but I'm going to do a Convert to Symbol and then, I can type in 'blog' and I'm going to make sure this is a Button, and select OK. All right.

So this is now a Button. So just to confirm in my Properties panel, it says that it's a button and I need to give it an instance name, blog_btn, just like that. I want to remember this name, so I'm just going to do a Command+C to copy it, copy that instance name. Now I'm going to go to that layer I have created. I'm going to select that first frame. I'm going to go to Window and open up my Actions panel. Now right in here, this is where I'm going to write my code. So just a comment, Link to website, I'm going to paste in blog_btn and I'm going to add an EventListener, just like I've done in the past, MouseEvent, I'm going to listen for the CLICK and then it's asking me for another parameter, which I'm going to put in visitSite.

So that's the name of the function that is going to be called when they click on this button. So visitSite. All right. Now I need to make this function, function visitSite, and it's going to accept a MouseEvent and then I'll just type in void, because it's not going to return to anything. But this is the basic structure for any function and it's looking good so far. But right in here, within these two curly braces, this is where I want to put a URL request and then a navigate to URL.

So I need to create a variable called req or request. It could be called anything you want it to be called. Just remember the name and I want this to be a URLRequest. So I'm creating a variable that is a URLRequest and it's a new URLRequest. And you know it's correct, because it will change colors usually to that blue and then you can go ahead and type in your URL.

That's this blog so - all right. There we have it, a new URLRequest I've just created. So within this container called req, exists this URL. Now I can use that wherever I want, but really the only place I need to use it, currently, is in the navigateToURL function. So I'm going to create this call to this function, called navigateToURL, and I'm just going to say req for request.

So that's my variable and then I can do a comma and if you want, you can also type in _blank within quotes and that will open up a new web page. So let me just get rid of this last line. So that's how it's done, to sort of create a container that's going to contain that URL and then just put that variable into the navigateToURL function call is what it is, and then make sure it opens up in a new window. Now let's do a Ctrl+Test Movie.

These buttons I know it'll work, these links, but let's check this one out. Click Visit Blog and sure enough, it opens up my personal blog in your default browser. So, it works out great. Pretty simple to do for the most parts. And really, it's again, all back to EventListeners and then just adding a navigateToURL that passes in that certain URL Request. And that's really how you link to a content that exists outside of your site.

Find answers to the most frequently asked questions about Creating a Portfolio Web Site Using Flash CS4 Professional.


Expand all | Collapse all
please wait ...
Q: While following along with the course, I encountered the following error in Flash CS4: 
1120: Access of undefined property content_mc.
What is causing this error?
A: Flash is looking for something (the content movieclip) with the instance name “content_mc” but it is not finding it. Select the content movieclip on the stage. In the Properties panel give it an instance name of “content_mc”. Make sure there are no spaces before or after. That should resolve the error.
Q: What is the best strategy for integrating 720/60P HD video into a website? Would creating a blank page that opens in full HD resolution be the best way to view the full quality of the HD video file?
A: A video file that large would just be unreasonable for most users to open.  These settings are a good place to start: 600x400is
24-25fps
Audio: 128kbps
Codec: On2VP6
Bitrate level: 1,000kbps
Bitrate Encoding: VBR These are just recommendations, and can be modified to preference. Also keep in mind that in Flash, one of the buttons that can be added is a full screen button, which is part of the skins.
 
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.
Upgrade now


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 Upgrade now

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 Creating a Portfolio Web Site Using Flash CS4 Professional.

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?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

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 preferencesfrom 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.

Are you sure you want to delete this note?

No

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.