Welcome back everybody.
All right.
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
really important concept here.
So what I'm going to do is I'm going to copy this and paste it a couple of times.
Now if you want to go ahead and type them out too.
It's actually really good to type it out.
But if you want to copy and paste it that's up to you too.
Now what we'll do is instead of my cool function we're just going to call this function one and we'll
also call this function to spell them out here and then we're going to go function three just like this.
OK.
So you'll notice here that we have this is a button.
This is a button.
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
one and then we'll do
two and then we'll do three.
And we do have to make sure there we go.
So now we have one two and three of course none of these work.
And why is that.
Why is this first but not work anymore is because when we click this button it's looking for function
one right it's not looking for my call function is looking for function 1.
In fact if we changed any of these to my cool function it would actually work.
So if we change this two function one guess what.
When you click this it says Awesome.
OK.
Now I'm going to go ahead and get a copy this.
A couple of times just like this and will call this function to and we'll call this function three.
OK.
And so if we click any of these here we know that they say awesome.
And then you can see that it's a you know prevent this dialog from coming up.
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
least that was exploited 10 15 years ago.
And the reason is is there's now something in there.
So let's go ahead and let's go we're just going to type in one two and three.
OK.
And there we go.
So button one we'll call function one which will in turn pop up one button two we'll call function two
and we'll pop up two and button three we'll call function three and pop up three.
OK.
So we got one two three.
OK.
And if you really wanted to have fun you can call this for right if you really wanted to.
But let's just make it three.
All right.
And so you can see that this can scale to whatever we want here we can have 100 buttons we can do whatever
we want here.
Now of course functions can do more than just pop up pop ups here and I'll talk a little bit about that.
Next the Turrill.
I just want to reinforce what we learned the last were Toral and I wanted to show that we could scale
it as well.
So you guys in nice tutorial.