cancel
 

 

Job type :

Zip Code :

community forums

Featuring over 100 topics of interest to DoItYourselfers.

Flash Professional 8 - How to Change the Properties of Movie Clips

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Video Transcript

I have got a few changes for the other elements that are going to assemble these pieces in front of our photo. So let us set up the flower. We are going to use these three pieces to create a flower that is going to be dropped right into our photograph just by modifying some properties just like what we have done on the photo. I will add a little comment so we make sure we know what we are doing later. Remember, a comment is anything that starts with two slashes in this case. We will go down to the next line and let us set up the three pieces of our flower. Our flower is going to be composed of this graphic here which is our green square. I am just going to squish the width of that to make it a tall skinny rectangle and it will form the flower stand. I will use mcSquare so I have access to the object. I will change its width so that it is squished down into a very skinny tall square. So, I will just access the underscore width property and let us set it equal to 10 pixels. I will also move it down. Right now it is currently hanging out there on top the stage and I will just change the Y value to push it down the stage. We will add another line for that property, mcSquare_y and we will set that to about 215. Now, notice when you start moving things around on the stage like this, you will going to need to get comfortable with the coordinates system of the stage itself. Zero zero is our top corner, our X values are all going to go up as we move from the left to the right of the screen. That is also going to be the zero location for our Y coordinate and the Y values will go up as you approach the bottom of the screen. Now that sounds a little counter intuitive but that is the way almost all of our screen systems are working. Let us try out our flower stem.

Okay, Ctrl Enter and you can see that that green square has been moved down, this is about our 215 Y location and we changed the width so it is a very skinny little stick now instead of a big square as it was before. Now, let me close these two up because what I would like to do for the flower petals and the center is let us do a little bit of both of what we have done so far. We can read off the values of one item. We can set the values of another item. I can do both in one statement just like this. I am going to take the flower, mcFlower. I would like to take its X coordinate, that is where position horizontally on the screen and I would like to set it in the same position that the green square is already been placed on the screen. So what I can do is I can set their two X components equal to each other. I will set it equal to mcSquare and I will make sure I put in ._X. So, I am going to put the flower in the same X location and at the square. Now, I will grab it, let us go ahead and change the X location as well and we should put flower right on top of the square, mcFlower ._Y and we will set it equal to mcSquare ._Y. let us try that out. Ctrl or command enter on the MAC and now you can see that the flower has been pulled off screen right down and its sitting right on top of the coordinate location that we have the square sitting at. Now remember, we set the flower so that it was center registered, so the zero point to the flower is actually sitting on the upper left hand point of the square. You can see, you will probably going to be much more aware of the registration points of your elements. And if I close these two windows up, you can always reference that location by the location of the crosshair on the graphics themselves.

Let us drop the dot in the center, we will do the same thing. And that one was called mcCircle. So I am going to set it at the same location as the flower, so we will do the X and Y coordinates just as we did before. Now to save ourselves a little bit of typing, I am simply going to select those two lines and copy them. We can use copy and paste directly anytime we want it to and the action script window. Now, you can use either Ctrl C and Ctrl V or Command C and Command V. you can use the edit panel or you can right click for contacts. And you get copy an
I have got a few changes for the other elements that are going to assemble these pieces in front of our photo. So let us set up the flower. We are going to use these three pieces to create a flower that is going to be dropped right into our... click to read more


How to Build a Shoe Storage Bench

sponsored articles of the day

diy centers

Research and explore a wealth of wisdom on these topics