02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Playing With The TextFiled Properties

The scope of the course is saying hello to visual programing but if we are already talking about a TextFiled lets spend some time playing around with a few of its properties.

Video Transcript

00:00let's go back into our flash and in our flash file
00:03let me just get rid of that error and in our flash file if we look just down here
00:07we have our trace and we have everything set up for us already
00:10and now if we just click again if we type text hello
00:14and we type anything we're going to see that we get like this very interesting
00:19message box and let me just scroll down a bit so you can actually all see
00:24it inside of the window there we go
00:27okay so if I do if I again type my dot I'm gonna go all these properties and in
00:33these properties we actually could see in flashes giving me a little bit more
00:36information in CS5 is actually telling reminding you okay alpha what is alpha
00:40it's available since the display object anything that's a display object has an
00:45alpha it accepts a number which we know what numbers are we've worked with them
00:49and we can see a lot a lot of different properties and most a lot of them we
00:53already are familiar with some are not in work we'll get into them later on
00:57but some of them we already are familiar with so in our text field for
01:00example and let's try to find something that's exclusive to the text field and
01:03change it
01:04okay so let's say we want let's say we want to play with our borders
01:08alright so I'm going to set a border set to true so I'm just going to type
01:12your border and I could just type enter as soon as it shows me my border and
01:19I'm going to set it to true because I store in the hints that it's expecting
01:23a true or false and if I run my application one time now my application
01:28will have a border fantastic let's see what other properties we could do in
01:33that way we'll just play around with just a couple and let's say we want to
01:37change our background color want to do a background want to make sure that we
01:43do have a background and we're going to now set our background color background
01:54color and it was expecting a u int and our u int is actually a hex value and the
02:00way we type a hex values we're going to we're just going to type 0x and then
02:06type our x value so for example we want our background color to be really really
02:11red so it's an RGB so I'm going to type FF for fully red 0 0 0 0 for nothing in
02:19the rest now if you don't really know what values to put in here you could
02:23always go into your main and we'll type f4 again just to get the full color
02:27palette and you could go to the color palette select a color and you could see
02:30that up on the top you're going to get the color value and you could just grab
02:34those values of six digits and place them instead without the hash mark you
02:39want to do 0x and then put that number right but basically what it is
02:43there's a between 0 and 255 which is represented by FF and hex and we'll
02:49look into that in future videos of how X actually works which a number between
02:550 and 255 so it goes from 0 through f for the characters so you could play
03:01around with 0 through f and 0 through f which these define the reds the next two
03:06define RG green and the next two define blue alright so if I run my application
03:12one more time I'm going to get my text the low and this time around it's
03:15going to have a red background

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!