1 00:00:00,790 --> 00:00:02,010 Welcome back everybody. 2 00:00:02,080 --> 00:00:02,850 All right. 3 00:00:02,890 --> 00:00:08,680 So I want to go ahead and let's redo some of the things that we've done lost of world because it's a 4 00:00:08,680 --> 00:00:11,380 really important concept here. 5 00:00:11,380 --> 00:00:16,180 So what I'm going to do is I'm going to copy this and paste it a couple of times. 6 00:00:16,270 --> 00:00:18,660 Now if you want to go ahead and type them out too. 7 00:00:18,670 --> 00:00:20,040 It's actually really good to type it out. 8 00:00:20,050 --> 00:00:23,350 But if you want to copy and paste it that's up to you too. 9 00:00:23,460 --> 00:00:33,230 Now what we'll do is instead of my cool function we're just going to call this function one and we'll 10 00:00:33,280 --> 00:00:44,080 also call this function to spell them out here and then we're going to go function three just like this. 11 00:00:44,090 --> 00:00:44,790 OK. 12 00:00:45,260 --> 00:00:48,050 So you'll notice here that we have this is a button. 13 00:00:48,050 --> 00:00:48,640 This is a button. 14 00:00:48,640 --> 00:00:55,410 This is a button what we can do here is we'll just copy this out and what we'll do is we'll just do 15 00:00:55,410 --> 00:00:58,250 one and then we'll do 16 00:01:00,710 --> 00:01:04,570 two and then we'll do three. 17 00:01:05,540 --> 00:01:10,490 And we do have to make sure there we go. 18 00:01:10,490 --> 00:01:13,490 So now we have one two and three of course none of these work. 19 00:01:13,490 --> 00:01:14,910 And why is that. 20 00:01:14,930 --> 00:01:20,600 Why is this first but not work anymore is because when we click this button it's looking for function 21 00:01:20,600 --> 00:01:24,740 one right it's not looking for my call function is looking for function 1. 22 00:01:24,770 --> 00:01:29,960 In fact if we changed any of these to my cool function it would actually work. 23 00:01:29,960 --> 00:01:34,730 So if we change this two function one guess what. 24 00:01:34,730 --> 00:01:37,070 When you click this it says Awesome. 25 00:01:37,070 --> 00:01:37,920 OK. 26 00:01:38,270 --> 00:01:40,990 Now I'm going to go ahead and get a copy this. 27 00:01:41,260 --> 00:01:54,720 A couple of times just like this and will call this function to and we'll call this function three. 28 00:01:54,760 --> 00:01:55,500 OK. 29 00:01:55,900 --> 00:02:00,080 And so if we click any of these here we know that they say awesome. 30 00:02:00,250 --> 00:02:05,800 And then you can see that it's a you know prevent this dialog from coming up. 31 00:02:05,800 --> 00:02:12,940 That's a safety feature you know if you've ever gone to any kind of site and it gives you a pop up at 32 00:02:12,940 --> 00:02:15,910 least that was exploited 10 15 years ago. 33 00:02:15,910 --> 00:02:17,620 And the reason is is there's now something in there. 34 00:02:17,620 --> 00:02:25,760 So let's go ahead and let's go we're just going to type in one two and three. 35 00:02:26,220 --> 00:02:26,780 OK. 36 00:02:26,810 --> 00:02:27,340 And there we go. 37 00:02:27,360 --> 00:02:35,790 So button one we'll call function one which will in turn pop up one button two we'll call function two 38 00:02:36,180 --> 00:02:41,250 and we'll pop up two and button three we'll call function three and pop up three. 39 00:02:41,250 --> 00:02:41,780 OK. 40 00:02:41,880 --> 00:02:45,500 So we got one two three. 41 00:02:45,630 --> 00:02:46,270 OK. 42 00:02:46,620 --> 00:02:52,970 And if you really wanted to have fun you can call this for right if you really wanted to. 43 00:02:53,070 --> 00:02:55,250 But let's just make it three. 44 00:02:55,290 --> 00:02:55,690 All right. 45 00:02:55,690 --> 00:03:00,990 And so you can see that this can scale to whatever we want here we can have 100 buttons we can do whatever 46 00:03:00,990 --> 00:03:01,710 we want here. 47 00:03:01,710 --> 00:03:06,780 Now of course functions can do more than just pop up pop ups here and I'll talk a little bit about that. 48 00:03:06,780 --> 00:03:07,660 Next the Turrill. 49 00:03:07,740 --> 00:03:12,180 I just want to reinforce what we learned the last were Toral and I wanted to show that we could scale 50 00:03:12,180 --> 00:03:12,870 it as well. 51 00:03:13,040 --> 00:03:14,580 So you guys in nice tutorial.