Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Creating a First Web Site with Flash Professional CS5 shows how to make a fully functional, dynamic web site in Flash Professional CS5. This course covers the fundamentals of creating and importing content, adding smooth 2D and 3D transitions, and adding button functionality that goes beyond links. This course will also show how to integrate and control video and audio as well as how to implement a gallery and a contact form. Exercise files are included with the course.
Now you don't necessarily want to import all of your images into your Flash project. You really just want to import the main content and then keep optional information and optional content external from the file. That's going to make your initial file size smaller and only load in the images as the user requests them, and that's what I want to do here. Notice as I scroll through to this Portfolio section I have this empty frame right here. So what I want to happen in this dynamically I want to load an image in this area.
Okay that frame is actually a part of the Portfolio bkgd, so I will just double click on that movie clip and come in here. So right in this area this where I want to load in that image, so I going to rename layer 1 to be loaded image. That's where my image is going to go, and in order to load an image in here, I am going to use a component. So let me just move this up some and right in this area, if I go to Window > Components, I can check out all of the components available that I can add to my project.
The component is basically a movie clip with additional functionality. I am going to go into the user interface folder, and I encourage you to check out all of the options we have in here, quite a few, but I am going to choose this UIloader down at the bottom. Very handy because all I need to do is drop it on to my page, and then I can reposition it. Let me close this. I am going to lock down these other layers, so I don't accidentally select them just by clicking these little lockouts right there.
All right, I can position this sort of right here and what I can do from there is I can resize it, so I can use the Free Transform tool to resize it if I want to and let's not forget that if want exact control, I can modify the properties in the Properties panel. So maybe I want the width to about to be 350. I can type that in, and the height in this case is going to be about 240. I happen to know the size of the image that I am loading in here.
That's why I am adjusting this precisely, and then I can move it into position. All right, so this is where my content is going to load, but now I need to determine the content I am going to load in. So in the Properties panel it actually lists out this source. Okay, and if I click on that, notice I can type something in there, but I actually need to make sure an image is in the right location. So I am going to go to my desktop, and I am going to go to the assets folder, into my images folder, and this port1.jpg is the image that I want to load in.
So I am going to copy this image, and I am going to go into my folder. This is where my FLA file exists and want I want to do is I want to create a new folder, and I am going to call it images and within that folder that's where I am going to paste in the image I want to access. Okay so now I know where it is in the images folder. I am going to target port1. So I am going to back in the Flash, change the source to point to images forward slash, because it's in that folder, port 1.jpg just like that.
All right, I have targeted that image, Now I need to go ahead and test this project and make sure that image gets loaded in. I will click on Portfolio and sure enough it loads in this image. So that's perfect. I want to load in this image when they click on the Portfolio section, but I don't want to make it actually part of this file as in that it's embedded because that's again going to add to the file size. And now this is actually set up for me to work on some other functionality by adding the ability to load in more images.
Find answers to the most frequently asked questions about Creating a First Web Site with Flash Professional CS5.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.