Studying the issues of «programming in AS3»

Hello

Looking at the code below, I assume KeyCode and ENTRY are the two values (or should I say property?) of the Keyboard class.   Bear with me, I'm new to learn AS3.  So far, is easier to learn Flash itself, but still I want to make sure I learn this right.

function keyPressed(event:KeyboardEvent):void
{
If (event.keyCode is Keyboard.ENTER)
{
mainText.text = myGreeter.sayHello (textIn.text);
}
}

The manual mentions (see below) than the sample files to come with her, but he does not say where these files are located.  Any ideas where?

Work with examples of end of chapter

Like this chapter, most of the chapters in this manual include a significant example of the end of the chapter that links good number concepts discussed in the chapter. However, unlike the Hello World example in this chapter, the examples will not be presented in the form of a tutorial step by step. The ActionScript 3.0 in each one is highlighted and discussed, but will not provide instructions on running the samples in specific development environments. However, the sample files distributed with this manual will include all of the files needed to compile and run the examples easily in your chosen development environment.

Update 11

No idea on all files not included in your manual, but:

function keyPressed(event:KeyboardEvent):void
{
If (event.keyCode is Keyboard.ENTER)
{
mainText.text = myGreeter.sayHello (textIn.text);
}
}

keyCode is a property in the KeyboardEvent class - the event is of type... Enter a constant static in the Keyboard class. You know that it is static, because you can access it directly on the class - not as an instance of the class... and by convention, constants are uppercase.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for