Setting Up Our MovieClip
In this video we grab our newly imported image and convert it into a movieclip. We add a TextField into our movieclip as well and prep out movieclip to the things it will do soon.
Video Transcript
00:00So I have my asset right now, which is not a movie clip it's not accessible for code
00:03I don't have a way to make it accessible to code
00:05What I want to do is actually I want to add that as a child of my movie clip and to do it is quite easy
00:12And again, I'm just going to select it first and then I'm going to modify
00:18Convert to symbol and I'll convert it into a movie clip. I'll make sure first of all my registration point is on the top
00:25Left as it should be
00:27I'm going to turn it into a movie clip and I'm going to call it MC
00:31Home the reason I'm calling it MC home is because I want this to be my button that takes me back home on the home page
00:39Done
00:41Now the next step I want to double click into my movie clip and as you notice there's a timeline going on in the top
00:46Of screen which we didn't really get into because actually I want to double click into my movie clip and that will reveal to me
00:53That my movie clip has a timeline of its own as well
00:57If I go back one step, you'll see they have the same name so it's hard to see it
01:00But let's say we change the name here to content
01:02And again, if I double click into my movie clip
01:06We'll see that right now we're inside of MC home and it has its own layer, right?
01:11It's not the same thing. It's since it's inside of it does I could create also if I wanted to another layer
01:15Which I do want to do that
01:17whoopsie
01:19I'm going to add here a layer and this we're going to call we're going to call this
01:24image and
01:26this one we're going to call
01:28text and
01:30I just need now my text
01:33Field, which I'm going to add right now right here. I'm just going to type into it home and they want to
01:42Doop doop doop doop. I just want to push it a bit underneath here and
01:49I want it also to be
01:52aligned to the left
01:55Okay, so there we go. So my text field is aligned to the left. I currently see that it's a I
02:00Repeat I see it's a dynamic text field
02:02But just to confirm I'm going to click on it go to my properties because it's quite important for me for it to be a
02:08Dynamic text field and it is and the next step is I want to give it a name
02:12So I'm going to give the name of TXT home
02:17Next step now is actually is is important to me because I want to embed only those characters home into this text field
02:24Because I'm actually going to animate them in
02:27So I'm going to click on my embed
02:29And I'm going to make sure that I'm including only those characters. So and include characters
02:34I'm just going to set them all in uppercase home
02:36And I'm going to click ok which would then save those and actually add them into the flash file
02:43Enabling me to animate them and store them in memory making sure that it will always be alvetica as it runs
02:49Very good. So if I publish my file right now, it's not going to be very spectacular
02:53But we got our everything I feel a and we have our home
02:57The next step is is time to get into our code and to do that
03:01I first want to make sure that one is that our movie clip itself has a name. So I'm going to call it MC home
03:08Okay, so I have an MC home which inside of it
03:10I have an MC or I have inside of it a TXT home
03:15Let's see how that works
03:16If I want to now output from inside of flash from inside of my main if I want to reach all the way
03:21To that text field, how would I do that?
