Creating A Button
Wow that was quick lets jump right in and create out first button. The idea shouldn't look to odd as its basically the same the way we created a graphic. We add a few extra points regarding how to play with visual elements on the stage.
Video Transcript
00:00And I'm going to go and create a new oval.
00:02Let's give it a different color so we could differentiate it.
00:05And I'm going to create a new oval right here.
00:08And again, I'm going to select my V.
00:10And I'm going to select my element.
00:12And now I actually want to convert it
00:14into something that could be actionable to code.
00:17So I'm going to go to Modify again, Convert to Symbol.
00:19And this time around, I'm going to select a button.
00:23I'm going to give it a name again of BTN for Button.
00:26And I'm going to give it a name of button move.
00:35All right, so our button name is going to be button move.
00:38Now our button name is, again, our button name.
00:42Again, it's only a library element.
00:44It doesn't really have a name yet.
00:46There's no property name for it, which our button
00:49is accessible to code.
00:50So it would have a property name.
00:53And again, we could have deleted our button.
00:55And it would still exist inside of our library.
00:57So then we could reuse our button.
00:58And if we wanted, we could create a few different instances
01:02of that button.
01:03I'm just going to, right now, just hit the spacebar
01:07and then drag my content on the stage.
01:11And I'm going to click the F4 to get a nice full view.
01:14Oopsie.
01:15So I got a nice full view.
01:16All right, but I don't really need that right now.
01:19So let me just set that up like that,
01:21because I want to have access to these babies.
01:23All right, so I have my button.
01:25And if I want, I could also, another shortcut,
01:27just so you know, you could use the alt or option.
01:31And that would enable you to duplicate the element.
01:33And you could see that the arrow turns into a plus.
01:36If we release it, it would then create a duplicate,
01:39which is a useful command.
01:41And on top of that, we could also use the Shift-Alt.
01:44So if I use the Shift-Alt, I could then drag it around,
01:47and it will be in a horizontal line or a vertical line.
01:50So we'll make sure that it's aligned nicely.
01:53All right, but we don't really need duplicates right now.
01:56Let's keep to anyways.
